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

  Program read a text file-average and then inputing average

First the program must read a text file (The user must be able to write the name of the text file) , the text file contains the following: a title, an companyname, an teacher name, the duration of the project, key words, and the expenses the compa..

  Write a recursive function squares

Write a recursive function squares that takes a list of numbers, and returns a new list of the squares of those numbers.

  Implement program which performs basic arithmetic operation

Write a complete C program that prompts for two integer numbers (one number at a time, or both at once, as you wish), reads them into two variables of type int find then calculates and prints the following five values

  How many times will the inner loops s be executed

How many times will the inner loop's S be executed? Show HOW you got that answer.

  Write a function named short_path

Write a function named 'short_path' which has two input parameters {M, N} and one output parameter T.

  Code a linked list with a node class

Code a linked list with a node class. The node class should keep a key and pointer as private variables. Make the needed getters and setters.

  Write an application that can hold five integers in an array

Write an application that can hold five integers in an array. Display the integers fromfirst to last, and then display the integers from last to first.

  Write a program that reads a list of integer

Write a program that reads a list of integer and stores the integers in an array and write a function compact that eliminates all zeroes from its array parameter

  Display a report showing the energy produced

Open the data file Energy.dat and read each column into an array - Display a report showing the energy produced and the percentage of the grand total energy for each of the 13 types of energy for a given year. Prompt the user to enter the year.

  Write a code that finds the average of all the elements

An array of double-precision (64-bit) floating-point numbers is located in the memory starting at address 1000. It contains 40 elements.

  Evaluates statements of an expression language

Completing and extending the C++ program that evaluates statements of an expression language.

  Design and implement a c program and structure diagram for

design and implement a c program and structure diagram for the subsequent specification.show writing and calling

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