Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ please this is the lab i just need the .cpp,header file,input and output. thats all i want. thank you clear images are on down...

image text in transcribed
image text in transcribed
c++ please
image text in transcribed
image text in transcribed
this is the lab i just need the .cpp,header file,input and output.
thats all i want.
thank you
clear images are on down...
what do you mean my the text file?
ofstream
fstream
ifstream
Review of C++ Programming Constructs Structs and Arrays This thesignment is from Profi Sarah Zelikovit?) You are the manager of a team of ten programmers who have just completed a seminar in structured Haming und top-down design. To prove to your boss that these techniques pay off you decide to run the following contest. You number the programmers 1 throuch 10, based on their performance in the Samar ( poorest 1031 bes, and monitor their work. As each does his or her part of your project, you keep track of the number of lines of debugged code turned in by each programmer. You record this number a programmer turns in a debugged module. The winner of the contest is the first person to reach 1000 lines obchod.code. You hope this is programmer 19 or 10.) As further proof of the value of these new techniques, you want to determine how many poor grosimers it takes to surpass the winner's figure, that il find the smallest such that programmers through (excluding the winner he/she is in the first !) have fumed in more lines than the winner Input The ingut consists of sequence of triples of integers. The first integer in each pair is the programme mentesen rotold the second is the number of executable lines of code turned in, and the stein.com umed in These numbers occur in the same order that which I modules were formed in. Data is in http www.cs.csi.cuny.edu-umelec326/data/program. and SHu yume c336 data program!2x Processing Kend besuntil someone's total executable code goes over 1000. Print out (echo prind) each sets turi input after someone executable total exceeds 1000. Then print out a table listing the mets and their totals, with the winner flagged as shown in the example that follows. Finally, find me such that the sum of the totals for programmers 1-k exceeds the winner's total. Print kinan sulton sentence Partial Sample Output FERRANER PROGRESS regar lanes of Code Lines of Comments 230 200 30 100 Bines of Comment FILE TOTALS Program Vines Code 51 105 309 03 215 took programeri through wa to produce more than the Details Create a header.file with the declaration of a structure that holds two integers, one for lines of code and one for lines of comments Use an array of these structures to keep track the lines or code that have been landed in so far by each of the programmers Your main program should only open the mour dans Vile canctions and close the data file. All of the processing should be done by the beim . Hand in . Na listing of the protein A listing of the output Think about Suppose enda humb wow deguttende undone and CSC326 Program Review of C++ Programming Constructs Structs and Arrays (This lab assignment is from Prof. Sarah Zelikovitz.) You are the manager of a team of ten programmers who have just completed a seminar in structured programming and top-down design. To prove to your boss that these techniques pay off you decide to non the following contest. You number the programmers through 10, based on their performance in the seminar (L is poorest, 10 best and monitor their work. As each does his or her part of your project, you keep track of the number of lines of debugged code tumed in by cach programmer. You record this number as a programmer turns in a debugged module. The winner of the contest is the first person to reach 1000 lines of debugged.code. You hope this is programmer #9 or 10.) As further proof of the value of these new techniques, you want to determine how many peor programmers it takes to surpass the winner's figure that is, find the smallest k such that programmers 1 throuch (excluding the winner if he/she is in the first :) have turned in more lines than the winner. Input The input consists of a sequence of triples of integers. The first integer in each pair is the programmer's number an integer from to 10). and the second is the number of executable lines of code turned in, and the Third has the number of lines of comments tumed. These numbers occur in the same order as that in which The modules were turned in. Data is in http://www.sesi.cuny.eduwume/css326/data/programs and http://www.cs.cs.cuny.edul-yume esc326/data/program 12.txt Processing Read in integers until someone's total executable code goes over 1000. Print out (echo print) each set as you read it. Ignore any input after someone's executable total exceeds 1000. Then print out a table listing the ten programmers and their totals, with the winner flagged as shown in the example that follows. Finally, find the smallest k such that the sum of the totals for programmers - exceeds the winner's total. Print k in an explanatory sentence. Partial Sample Output: PROGRAMMER PROGRESS Programmer Lines of Code Lines of Comments 10 230 100 9 400 100 Lines of Comment PINAL TOTALS Programmer Lines of Code 1 51 2 105 309 3 4 101 5 215 It 1 through 7 to produce more than the took programmern vinner Details Create a header file with the declaration of a structure that holds two integers, one for lines of code and one for lines of comments Use an array of these structures to keep track of the lines of code that have been handed in so far by each of the programmers Your main program should only open the input data file, call functions, and close the data file. All of the processing should be done by the functions. Hand in: A listing of the program . A listing of the output file Think about: Suppose that instead of a triple of numbers, you had a programmer name, and then two numbers corresponding to executable code and comments. How would you set up the data structures in this case? Review of C++ Programming Constructs Structs and Arrays This thesignment is from Profi Sarah Zelikovit?) You are the manager of a team of ten programmers who have just completed a seminar in structured Haming und top-down design. To prove to your boss that these techniques pay off you decide to run the following contest. You number the programmers 1 throuch 10, based on their performance in the Samar ( poorest 1031 bes, and monitor their work. As each does his or her part of your project, you keep track of the number of lines of debugged code turned in by each programmer. You record this number a programmer turns in a debugged module. The winner of the contest is the first person to reach 1000 lines obchod.code. You hope this is programmer 19 or 10.) As further proof of the value of these new techniques, you want to determine how many poor grosimers it takes to surpass the winner's figure, that il find the smallest such that programmers through (excluding the winner he/she is in the first !) have fumed in more lines than the winner Input The ingut consists of sequence of triples of integers. The first integer in each pair is the programme mentesen rotold the second is the number of executable lines of code turned in, and the stein.com umed in These numbers occur in the same order that which I modules were formed in. Data is in http www.cs.csi.cuny.edu-umelec326/data/program. and SHu yume c336 data program!2x Processing Kend besuntil someone's total executable code goes over 1000. Print out (echo prind) each sets turi input after someone executable total exceeds 1000. Then print out a table listing the mets and their totals, with the winner flagged as shown in the example that follows. Finally, find me such that the sum of the totals for programmers 1-k exceeds the winner's total. Print kinan sulton sentence Partial Sample Output FERRANER PROGRESS regar lanes of Code Lines of Comments 230 200 30 100 Bines of Comment FILE TOTALS Program Vines Code 51 105 309 03 215 took programeri through wa to produce more than the Details Create a header.file with the declaration of a structure that holds two integers, one for lines of code and one for lines of comments Use an array of these structures to keep track the lines or code that have been landed in so far by each of the programmers Your main program should only open the mour dans Vile canctions and close the data file. All of the processing should be done by the beim . Hand in . Na listing of the protein A listing of the output Think about Suppose enda humb wow deguttende undone and CSC326 Program Review of C++ Programming Constructs Structs and Arrays (This lab assignment is from Prof. Sarah Zelikovitz.) You are the manager of a team of ten programmers who have just completed a seminar in structured programming and top-down design. To prove to your boss that these techniques pay off you decide to non the following contest. You number the programmers through 10, based on their performance in the seminar (L is poorest, 10 best and monitor their work. As each does his or her part of your project, you keep track of the number of lines of debugged code tumed in by cach programmer. You record this number as a programmer turns in a debugged module. The winner of the contest is the first person to reach 1000 lines of debugged.code. You hope this is programmer #9 or 10.) As further proof of the value of these new techniques, you want to determine how many peor programmers it takes to surpass the winner's figure that is, find the smallest k such that programmers 1 throuch (excluding the winner if he/she is in the first :) have turned in more lines than the winner. Input The input consists of a sequence of triples of integers. The first integer in each pair is the programmer's number an integer from to 10). and the second is the number of executable lines of code turned in, and the Third has the number of lines of comments tumed. These numbers occur in the same order as that in which The modules were turned in. Data is in http://www.sesi.cuny.eduwume/css326/data/programs and http://www.cs.cs.cuny.edul-yume esc326/data/program 12.txt Processing Read in integers until someone's total executable code goes over 1000. Print out (echo print) each set as you read it. Ignore any input after someone's executable total exceeds 1000. Then print out a table listing the ten programmers and their totals, with the winner flagged as shown in the example that follows. Finally, find the smallest k such that the sum of the totals for programmers - exceeds the winner's total. Print k in an explanatory sentence. Partial Sample Output: PROGRAMMER PROGRESS Programmer Lines of Code Lines of Comments 10 230 100 9 400 100 Lines of Comment PINAL TOTALS Programmer Lines of Code 1 51 2 105 309 3 4 101 5 215 It 1 through 7 to produce more than the took programmern vinner Details Create a header file with the declaration of a structure that holds two integers, one for lines of code and one for lines of comments Use an array of these structures to keep track of the lines of code that have been handed in so far by each of the programmers Your main program should only open the input data file, call functions, and close the data file. All of the processing should be done by the functions. Hand in: A listing of the program . A listing of the output file Think about: Suppose that instead of a triple of numbers, you had a programmer name, and then two numbers corresponding to executable code and comments. How would you set up the data structures in this case

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

schottky barrier diagram for WO3 variants

Answered: 1 week ago

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago