PROGRAMMING final
STARTING OUT WITH VISUAL C 2012 DESCRIPTION
STARTING OUT WITH VISUAL C 2012 DESCRIPTION
A C program can be used to compute and display results of a divingcompetition involving fifty divers, nine judges and five rounds ofdives. The score is computed by discarding the lowest and the highestscore, adding the remaining then multiplying with the degree of thedifficulty of the dive.
The class levelvariables in the program are
string[] diveArray = new string [100] //Array diver’s names
double[] overallarray = new double[100] //Array diver’s overall score
intnumdivers //number of divers
int numrounds //number of rounds
Intnumjudges //number of judges
int round=0 //current round
streamReaderinput file //input file pointer
The data shouldbe saved in an excel spread sheet file and saved as CSV .In thefomload event of the program we can read the initialization sectionof the input file and the variables. In the fomload event clickingthe ”compute next round “button will process the rounds of thediving competition up to the third round .The output results buttonwill output the diver names and overall scores of the competition toan output file in CSV format. The display output of the programconsists of a series of tables displaying the sorted results of eachround.
We can use theinformation to
Write the pseudo code for each event assuming we are using arrays to store diver names and scores
Write a c program to process the test data file
Implement the output results to file event
Execute the program with the data file
No related posts.
PROGRAMMING final
STARTING OUT WITH VISUAL C 2012 DESCRIPTION
STARTING OUT WITH VISUAL C 2012 DESCRIPTION
A C program can be used to compute and display results of a divingcompetition involving fifty divers, nine judges and five rounds ofdives. The score is computed by discarding the lowest and the highestscore, adding the remaining then multiplying with the degree of thedifficulty of the dive.
The class levelvariables in the program are
string[] diveArray = new string [100] //Array diver’s names
double[] overallarray = new double[100] //Array diver’s overall score
intnumdivers //number of divers
int numrounds //number of rounds
Intnumjudges //number of judges
int round=0 //current round
streamReaderinput file //input file pointer
The data shouldbe saved in an excel spread sheet file and saved as CSV .In thefomload event of the program we can read the initialization sectionof the input file and the variables. In the fomload event clickingthe ”compute next round “button will process the rounds of thediving competition up to the third round .The output results buttonwill output the diver names and overall scores of the competition toan output file in CSV format. The display output of the programconsists of a series of tables displaying the sorted results of eachround.
We can use theinformation to
Write the pseudo code for each event assuming we are using arrays to store diver names and scores
Write a c program to process the test data file
Implement the output results to file event
Execute the program with the data file
No related posts.