subject

Your program will read in a file name from cin. it will then open the input file. your program must also open an output file called saleschart. txt. you will write the bar char headings and data to this file. your program needs to have the following general flow: read in the file name open the input file for this file name display a message if the input file does not open and quit your program open the output file ("saleschart. txt") display a message if the output file does not open, close the input file, and quit your program while (readfile into store number and sales for store display an error if the store number or sales are invalid if the data is good output the bar char to the output file end while close the input and output files the processing loop will read the input data and process it until it gets and end of file indication from the file read operation assuming you have read in valid data and this is the first sales data being processed your program should output some headings to the output file before processing the data. the headings are as follows:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 23.06.2019 10:20
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
George heard about the benefits of a data warehouse. he wants to try implementing one for his organization. however, he is afraid that transferring data to the data warehouse will affect transaction time. which element ensures that transactions are not affected when moving data to a warehouse? when data is transferred to a data warehouse, the a area frees the source system to continue transaction processing.
Answers: 2
You know the right answer?
Your program will read in a file name from cin. it will then open the input file. your program must...
Questions
question
Mathematics, 28.06.2019 03:00
question
World Languages, 28.06.2019 03:00
question
Computers and Technology, 28.06.2019 03:00
question
Mathematics, 28.06.2019 03:00
question
Social Studies, 28.06.2019 03:00
Questions on the website: 13722361