How many scores they will enter

Assignment Help Programming Languages
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.

Reference no: EM13718071

Questions Cloud

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.

Reviews

Write a Review

Programming Languages Questions & Answers

  Prepare class to include three data member

Prepare Class called Employee that includes three pieces of information as data members - first name (type string), last name (type string) and monthly salary (type float).

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

  Write the application using the one-dimensional array

Write the application using the one-dimensional array which inputs ten numbers from user, each number can be between and 100, inclusive.

  Calculator to do the suitable matrix exponentiation

Every company makes particular restrictions for passwords, but employees of ABC have particularly strange restrictions. Their passwords may only consist of the lowercase letters

  How to create a custom command in unix

How to create a custom command in Unix. Then writing a man page for my command.

  Write program which translates letter grade into grade

Write a C++ program which translates the letter grade into a number grade. Letter grades are A B C D F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0.

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

  Write program to prompt number of rooms in house

Write down the program which prompts for number of rooms in house. Use input, n, to declare array of rectangles dynamically. In loop, input dimensions for n rooms.

  Determining suitable parameters if pass-by-reference is used

Subprocedures in VBA utilize pass-by-reference. Which function or sub procedure alters its parameter?

  Program calculate average number of days employee are absent

Write a program that calculates the average number of days a company's employees are absent. The program should have the following functions: a function called main that asks the user for the number of employees.

  Smallest and largest values in element floating-point array

Copy 11-elemts array source into first portion of 34-element array sourceCopy. Find out the smallest and largest values in 99-Element floating-point array data.

  Architecting web-applications using web-services

Architecting web-applications using web-services has advantages. Forexample, you can gain increased security. Describe other advantages otherthan security gained by using web-services.

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