Write a program using above data file

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

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: EM13859025

Questions Cloud

Aid is not effective in increasing incomes : We can see that aid to Africa has increased significantly over the last 40 years and that incomes in Africa have stagnated. Explain why these two facts do not constitute proof that aid is not effective in increasing incomes in Africa.
Advantages and disadvantages of distributed systems : Discuss the advantages and disadvantages of distributed systems in a business environment.
Accurate measure of economys production than nominal GDP : Real versus, nominal GDP Consider a simple economy that produces two goods: apples and envelopes. The following table shows the prices and quantities for the goods over a three-year period. The inflation rate in 2010 was. Why is real GDP a more accur..
Implement skills and knowledge gained through course : To implement the skills and knowledge gained through the course and to achieve greater awareness of the latest security tools and techniques for computer systems security.
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..
Detailed description of the young adult physical development : Write a 3- to 4-page detailed description of the young adult's physical, cognitive, and psychosocial development. What would developmental theorists say about the cognitive and the psychosocial development of the young adult
Using the scarce resource clean air : From an economist's perspective, an important consideration for policies to address global warming is: When a producer cannot get all consumers of their product to pay for enjoying it, such as in the case of a fireworks display, then we'd have a dema..
Analyze the key effects of labor market : Analyze the key effects of labor market
Generates california lotto numbers for the mega millions : You want to create a program to get the first name, last name, address, city, state and zip code, and display the information with the city name followed by a comma, a space, the state name, one space, and the ZIP code. The program also generates Cal..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a statement to call the function

Write an if statement that will assign 7 to p if the variable q is outside the range 100 through 1000. (Use single spaces between operators, operands and statements)

  Contains a design with a while loop

This problem contains a design with a while loop. Assume that sum references a doubleword in the data segment and that count is in the ECX register. Give a fragment of 80x86 assembly code that implements the design.

  Write a program that asks user to enter

Write a program that asks user to enter the size of the matrix (rows and column) then, it asks the user to enter the elements of two matrices and finally it adds two matrix and displays the result in C language.

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month.

  Calculates how much money you''ll end up

Write a C program that calculates how much money you'll end up with if you invest an amount of money at a fixed interest rate, compounded yearly.

  Counts all occurrences of a given string from such a bag

Write a C++ function that removes and counts all occurrences of a given string from such a bag.

  Your project must use and demonstrate understanding

Your project must use and demonstrate understanding of:a. Variables b. Loops c. Decision statements d. File I/O e. Screen output f. Keyboard input g. Functions h. Arrays i. Searching and sorting j. Classes k. Objects l. Methods

  Programming questions

Derive a class Programmer from Employee. Supply a constructor Programmer(string name, double salary) that calls the base-class constructor. Supply a function get_name that returns the name in the format "Hacker, Harry (Programmer)".

  Calculates the factorial value of its single int parameter

Write a method called fact that recursively calculates the factorial value of its single int parameter.

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  Write a program that generates all the factors of a number

Write a program that generates all the factors of a number entered by the user. For instance, the number 12 has the factors 2 * 2 * 3.

  Design a program read the following information from the

design a program read the following information from the keyboard in which base class consist of employee name code and

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