Reference no: EM13718071
Because all users may not have 10 scores and we want to keep the scores they entered for use at a later date, the above program will have to be modified to add a menu that lets the user decide how many scores they will enter, and a process to save the scores to a file. Set up a menu that will ask the user to enter a score, slope and rating, or to enter 0 for the score when they are done.
The program will then need to check for a value of 0 entered by the user to exit the input loop.
You will need to increment a counter each time the user does not enter 0 so that you know how many entries they have made.
Prior to the loop you previous created to populate the array, add logic to create a new file with the user's name as the file name. Within the loop you previously created to populate the array, add logic to save each score to the user's file. Once the user enters a 0 you will exit the loop, close the file and execute the code as previously designed until you have displayed all of the scores and the average handicap.
Extra Credit: Add logic to the program to search for an existing file with the user's name. If you find the file, welcome the user back and then add the new scores to the existing file. If you don't find a file with the user's name, welcome them to the program and create a new file.
What is odontology
: Explain in detail how the following will be used in facial reconstruction: Odontology What is odontology? How is this process used in facial reconstruction?
|
Recognize the elements and correct use of thesis statement
: Recognize the elements and correct use of a thesis statement - Write a research proposal that states the claim and scope of the research project.
|
How long has nasa been studying plants in space
: How long has NASA been studying plants in space? How do plants grow in space defer from being grown on earth?
|
The virulence and pathogenicity of streptococcus pneumoniae
: Design an experiment to increase the virulence and pathogenicity of Streptococcus pneumoniae (Hint: S. pneumoniae that is transferred for several passages in vitro loses its capsule and virulence for mice.) Would an increase in virulence confer..
|
How many scores they will enter
: Because all users may not have 10 scores and we want to keep the scores they entered for use at a later date, the above program will have to be modified to add a menu that lets the user decide how many scores they will enter
|
Continuous with built-up edge and discontinuous
: Which one of the four types of chip would be expected in a turning operation conducted at low cutting speed on a brittle work material: (a) continuous, (b) continuous with built-up edge, (c) discontinuous, or (d) serrated.
|
What is the price of the option if it is a european call
: What will be your profit/loss on this position if Dell is selling at $42 on the option maturity date and what will be your profit/loss on this position if Dell is selling at $38 on the option maturity date?
|
The amount of entropy produced within the tank
: A 2.64 kg copper part, initially at 400 K, is plunged into a tank containing 4 kg of liquid water, initially at 300 K. The copper part and water can be modeled as incompressible with specific heats of 0.385 kJ/kg. K and 4.2 kJ/kg. K, respectively.
|
The net work developed per cycle and thermal efficiency
: 1 kg of a gas in a piston-cylinder assembly undergoes a Carnot power cycle for which the isothermal expansion occurs at 800 K. The change in specific entropy of the gas during the isothermal compression, which occurs at 400 K is -25 kJ/kg. K.
|