Question: The program you are designing will help to calculate determine the average number of putts at a 3 hole putting green competition. Your job is

 The program you are designing will help to calculate determine the

average number of putts at a 3 hole putting green competition. Your

The program you are designing will help to calculate determine the average number of putts at a 3 hole putting green competition. Your job is to use JavaScript to convert the following pseudocode into a working program. The contest prize is awarded to the golfer who has the lowest average total of putts for three holes. The program will ask the user to enter the name of the golfer and the number of putts for each hole and then it will display the average number of putts and the person with the lowest number of putts wins. Your program will display the results to look like this: Welcome to the MIT153 - Putting Calculator! Golfer: Happy Gilmore Average number of putts was 5.00 for the 3 holes. Thank you for using the Putting Calculator. The above example is example information. It shows that the golfer name entered was Happy Gilmore and the average putts came to 5.00. Your name and numbers will be completely different and be based on what the user entered. Download the blank HTML document located in the content folder to use as a starting point for your project. When you have completed the task, save this file as your FirstName Your Lastname_PuttC.html Zip your files and submit using the test submission point as a single zip file You MUST submit the file in this manner and verify that the files have been properly received prior to shutting down your computers (32 points) Page 1 of 3 Do only what is asked for using what we have learned. //Pseudocode //Program Name: //Program Purpose: //Created by: //Date Last Modified: Start //Declare variables and constants Declare Numeric putt1, putt2, putt3 Declare String golfer Declare Numeric total Declare Numeric avg Declare Constant NUM_PUTT = 3 //Display a welcome message Display "MIT153 - Putting Calculator" //Request user input Display "Enter the golfer's name" Input golfer Display "Enter the strokes on hole 1" Input putt1 Display "Enter the strokes on hole 2" Input putt2 Display "Enter the strokes on hole 3" Input putt3 //Calculate the total cost Do only what is asked for using what we have learned. //Pseudocode //Program Name: 1/Program Purpose: // Created by: //Date Last Modified: Start 1/Declare variables and constants Declare Numeric putt1, putt2, putt3 Declare String golfer Declare Numeric total Declare Numeric avg Declare Constant NUM_PUTT = 3 //Display a welcome message Display "MIT153 - Putting Calculator" //Request user input Display "Enter the golfer's name" Input golfer Display "Enter the strokes on hole 1" Input putt1 Display "Enter the strokes on hole 2" Input putt2 Display "Enter the strokes on hole 3" Input putt3 //Calculate the total cost // Calculate the average cost and average cost //Display results Display "Golfer:"+ golfer Display "Average number of putts was "+avg+" for "+NUM_PUTT+" holes." //Display end of program message Page 2 of 3 Display "Thank you for using the Putting Calculator" Stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!