Write a program using above data file

Assignment Help C/C++ Programming
Reference no: EM13877181

Input file:

Event                    Task                       Number of Days

1                              15                           3

1                              27                           6

1                              36                           4

2                              15                           5

3                              18                           4

3                              26                           1

4                              15                           2

4                              26                           7

4                              27                           7

5                              16                           4

 

Write a program using above data file (must prompt user for file names- input and output) to read in the critical path information and write reports.  Print reports (3 reports) to an output file as below:

Print a project completion timetable that lists each event number, the maximum number of days for a task within the event, and the total number of days for the project completion.

Print the event number and task number for all tasks requiring more than 5 days. 

Print a report that lists the number of each event and a count of the number of tasks within the event.

** use only one input file and one output file

SAMPLE OUTPUT:

Enter input file name : cri.dat

Enter output file name:  criout.dat

(This is a sample of output file)


Event         Maximum Number Days for a Task
1                6
2                5
3                4
4                7
5                4

Project Duration : 26 days

Tasks requiring more than 5 days 
Event    Task     Days
1            27         6
4            26         7
4            27         7


Event and Number of Tasks
1          3
2          1
3          2
4          3
5          1

Reference no: EM13877181

Questions Cloud

Write the reduced form of the model : Assume G0 = 545 and write the reduced form of the model. Linearly approximate Y by expanding the reduced form around 3390.
The differences between aasb 8 and the old accounting : Write a report on The differences between AASB 8 and the old accounting standards on segment reporting.
Determine professional labor rate and efficiency variances : Determine the professional labor rate and efficiency variances for August 2010. What nonfinancial factors should Phoenix consider in evaluating the effectiveness and efficiency of professional labor?
Why the native operator will not work with classes : Why the native operator will not work with classes unless they have been properly overloaded
Write a program using above data file : Write a program using above data file (must prompt user for file names- input and output) to read in the critical path information and write reports.  Print reports (3 reports) to an output file as below:Print a project completion timetable that list..
Vision statements for ronald reagan ucla medical center : Obtain the mission and vision statements for Ronald Reagan UCLA Medical Center and The John Hopkins Hospital from their websites (see the links in the webliography)
Determine direct materials efficiency usage variance : Determine Direct materials efficiency (usage) variance and Direct materials joint price-quantity variance (defined as: (AP-SP) x (AQ-SQ)).
Determine the equilibrium values of the endogenous variables : Assume a Keynesian model for a closed economy with C = 506 + 0.9177Y - 0.0001355Y 2 I = 35 + 0.15Y If G0 = 545- determine the equilibrium values of the endogenous variables.
Why an expense is not to be recognized in january : For each of the transactions, if an expense is to be recognized in January, indicate the amount. If an expense is not to be recognized in January, indicate why.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Identify two key oo concepts and explain them as if you

1. discuss the advantages and disadvantages of both the structured and object-oriented oo paradigm in programming. why

  Prepare a a simple class fraction

Web tickets are purchased on the internet. Web tickets purchased a week in advance of the event are £30 and those purchased less than a week in advance are £40.

  Write an application that creates a quiz

Write an application that creates a quiz, which contains at least 5 questions about a hobby, popular music, astronomy, or any other personal interest.

  One function shows the user how to use the program

Declare two functions One function shows the user how to use the program. Other function is use to calculate power and square root of variables.

  Definite versus indefinite loops

Definite versus Indefinite Loops- Describe one (1) scenario not mentioned in the textbook in which it would be advantageous for you to use a definite loop as opposed to an indefinite loop when developing a program. Provide a rationale for your res..

  Wrtie a function called gen_rand_double_array

Wrtie a function called gen_rand_double_array that generates 900 samples of size 22500 random numbers from U(10, 12). For each of these 900 samples, write a main funciton that calculates the mean and finds the simulated probability that the mean is b..

  Prepare the function reverseit

Prepare the function reverseit that reverses the characters in a character array. You must also write main that calls reverseit.

  Provide a three-argument constructor

Create a class called Point that has two data members: x- and y-coordinates of the point. Provide a no-argument and a 2-argument constructor - Provide a three-argument constructor

  Write a c++ statement that multiplies the value

Write a program that prompts the user to input a decimal number and outputs the number rounded to the nearest integer.

  Make a function in dr racket

Make a function in Dr Racket that consumes a string and figures out if it starts with a specific letter of the alphabet - Can you help me how should I go about this? Please any ideas?

  Create valle products accdb database file

Create a new table named Orders using the table design below. You may create your table in design view or datasheet view. Save the Orders table as Orders Your Name. Define a one-to-many relationship between the Customer table and Orders table. Ri..

  Difference between a constant pointer

Explain the difference between a constant pointer to non-constant data and a non-constant pointer to constant data. Show the syntax to declare them.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd