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

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Write a program to solve to find loan on tv

Write a program to solve follwoing problem: A TV set is bought with loan of $563 to be paid off with 5 monthly payments of $116. Interest rate is 1 percent per month.

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Create a script file that generates a row vector

Create a script file that generates a row vector of 10 random numbers from 5 to 15 - Call your function using your array of random numbers and the scalar value of 22.

  Write program in mips to compute average of series of number

Write program in MIPS which computes average of a series of entered numbers. User will enter a sequence of integers. When the user enters a negative number.

  Write pseudo code to put scores until e button is hit

The program will keep on prompting you to put more scores until you hit E button on your keyboard. Write one page statement to examine this problem.

  Make confirmation page using xhtml portion of script

Use XHTML portion of the script to make confirmation page to be viewed by visitor. Confirmation page must display the text of email message.

  Write program to will read unspecified number of positive

Write a program which will read the unspecified number of positive numbers from keyboard and determine the sum and average of these numbers.

  Use a two dimensional array to solve problem

Use a two dimensional array to solve the following problem. A company has four salespeople ( 1 to 4) who sell five different products ( 1 to 5).

  Problematic programming situation

Suggest one example of a problematic programming situation or scenario that the use or implementation of a loop structure could resolve. Justify your response.

  Write application to input numbers in one dimensional array

Use a one dimensional array to solve the following problem: Write an application that inputs five numbers, each between 10 and 100, inclusive.

  Design and write payroll program-employee-s hourly pay rate

Design and write a payroll program that will prompt the user to enter an employee's hourly pay rate and the number of hours worked.

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