maroonlol
✅ Solve please delete this post
I have made my console application to calculate the project duration, the earliest start time and the latest start time
Project Duration✅
Earliest Start Time✅
Latest Start Time❌ - Partially works
Link to code - https://github.com/AbdulRaheemNazir/CPM/blob/main/Program.cs
=================================================================================================================================================
V9 is equal to 18 as total project duration then to calculate the activity leading form and too latest finish time for V1..V4 we would have to go backwards through this path:
V9->V8->V6->V4->V1 = 4+4+2+5 =15
If we do the calculation 18-15 it should give 3 as the latest finish time for V1..V4 but my output gives me 1
------------------------------------------------------------------------------------
V1..V3 we would have to go backwards through either these paths:
V9->V8->V5->V3->V1 = 4+7+1+4 =16
V9->V7->V5->V3->V1 = 2+9+1+4 =16
Since we have 2 paths we see which one is the longest duration but since we have the same we can just use 16. If we do the calculation 18-16 it should give 2 as the latest finish time for V1..V3 but my output gives me 1
------------------------------------------------------------------------------------
V1..V2 we would have to go backwards through either these paths:
V9->V8->V5->V2->V1 = 4+7+1+6 =18
V9->V7->V5->V2->V1 = 2+9+1+6 = 18
Since we have 2 paths we see which one is the longest duration but since we have the same we can just use 18. If we do the calculation 18-18 it should give 0 as the latest finish time for V1..V2 but my output gives me 1
=================================================================================================================================================
Only V1..V2, V1..V3 AND V1..V4 have this issue the latest Start time is calculates=d correctly for the rest
62 replies
Critical Path Method - Issue with Latest Start Times
I have made my program to calculate the project duration, the earliest start time and the latest start time
Project Duration✅
Earliest Start Time✅
Latest Start Time❌ - Partially works
Link to code - https://github.com/AbdulRaheemNazir/CPM/blob/main/Program.cs
=================================================================================================================================================
V9 is equal to 18 as total project duration then to calculate the activity leading form and too latest finish time for V1..V4 we would have to go backwards through this path:
V9->V8->V6->V4->V1 = 4+4+2+5 =15
If we do the calculation 18-15 it should give 3 as the latest finish time for V1..V4 but my output gives me 1
------------------------------------------------------------------------------------
V1..V3 we would have to go backwards through either these paths:
V9->V8->V5->V3->V1 = 4+7+1+4 =16
V9->V7->V5->V3->V1 = 2+9+1+4 =16
Since we have 2 paths we see which one is the longest duration but since we have the same we can just use 16. If we do the calculation 18-16 it should give 2 as the latest finish time for V1..V3 but my output gives me 1
------------------------------------------------------------------------------------
V1..V2 we would have to go backwards through either these paths:
V9->V8->V5->V2->V1 = 4+7+1+6 =18
V9->V7->V5->V2->V1 = 2+9+1+6 = 18
Since we have 2 paths we see which one is the longest duration but since we have the same we can just use 18. If we do the calculation 18-18 it should give 0 as the latest finish time for V1..V2 but my output gives me 1
=================================================================================================================================================
Only V1..V2, V1..V3 AND V1..V4 have this issue the latest Start time is calculates=d correctly for the rest
4 replies
My code is stuck in a infinity loop [Answered]
https://github.com/AbdulRaheemNazir/MiniApps/blob/main/Just%20need%20random%20Symbol
When I try to run it runs infinitly it was working fine untill i started making it to use random plus or minus operations
10 replies
My code is stuck in a infinity loop
https://github.com/AbdulRaheemNazir/MiniApps/blob/main/Just%20need%20random%20Symbol
When I try to run it runs infinitly it was working fine untill i started making it to use random plus or minus operations
7 replies