In this portion of the lab you will analyze
a problem and create a Raptor program to solve it. Read the
Over the summer you have been asked to help manage a little league baseball team.
Specifically your job is to help maintain the various statistics of the players. Since a player?s
battling average is very important, you have decided to develop an application to help do themath. A batting average is calculated by taking the number of hits and dividing it by the numberof at bats. Your program, therefore, needs to prompt the user for the name of the player andjersey number, the number of hits and the number of at bats. The output will be the name andjersey number followed by the average.
Step 1: Open up Notepad or Notepad ++ and enter the following:
Remember the problem statement is just a brief summary of what you are trying to do with your code tosolve the problem. It should be no more than a sentence or two. Also remember that your inputs andoutputs just need to be a listing, such as: at bats, name, etc. As programmers, we define our inputsand outputs in order to start a list of variables we may have to use in the program.
Step 2:??While still in Notepad or Notepad++ type in the following:
Under your headings, start typing in your variables and what you think the datatypes should be. Yourchoice of datatypes are string, float and integer.
Step 3:??While still in Notepad or Notepad++ type in the following:
30,000 foot view
The 30,000 foot view is an outline of what the program needs to do. It should be a bulleted list. For thefirst couple of labs, you are not going to type in much here because not much is going on. For instancefor this program you will type in:
30,000 foot view
? Ask user for name of player, jersey number, at bats and number of hits? Calculate the batting average (number of hits/at bats)? Disply the name and jersey number of the player and the average
Step 4:??While still in Notepad or Notepad ++ take the outline from above or your 30,000 foot view and expandon it. This is your pseudocode. Once again this needs to be a bulleted list and not a paragraph. For instancefor this problem your pseudocode should start out as:
Pseudocode1). Ask user for the name of the player, jersey number, at bats and number of hits
Write ?Enter the name of the player: ?Input nameWrite
?Enter the jersey number: ?Input jersey_numWrite
?Enter the number of times this player has batted:
Page 2 of 2
Write ?Enter the number of times this player hit the ball: ?Input hits
This question was answered on: Apr 19, 2020Buy this answer for only: $15
This attachment is locked
Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
About this QuestionSTATUS
Apr 19, 2020EXPERT
YES, THIS IS LEGAL
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions:
- As a reference for in-depth understanding of the subject.
- As a source of ideas / reasoning for your own research (if properly referenced)
- For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
NEW ASSIGNMENT HELP?
Order New Solution. Quick Turnaround
Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.
WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.