Display the highpints variable

Assignment Help Basic Computer Science
Reference no: EM13756829

Start Raptor the .rap file extension will be added automatically. Start by adding a Comment box that declares your variables. Add your loop to run multiple times and your module calls in the main module.

Add the getPints( ) module in main. Go to the getPints() module and add the following inside the module:

Add an assignment statement that sets counter to 1. Remember, counter has to be set to one because Raptor arrays must start at 1, not 0.

Add a loop that runs as long as counter is less than 7. Remember, this should be written as counter > 7 because if yes, then the loop ends.

Add an input statement that asks the user to enter number of pints, storing the answer in the array. The input should be entered as below.

Add an assignment statement that will increment counter by 1.

Add the getTotal( ) module in main. Go to the getTotal() module and add the following inside the module:

Add an assignment statement that sets counter back to 1.

Add an assignment statement that sets totalPints to 0.

Add a loop that runs 7 times.

Add an assignment statement that accumulates the value of the array. The input should be as below:

Add an assignment statement that will increment counter by 1.

Add the getAverage( ) module in main. Go to the getAverage() module and add the following inside the module:

Add an assignment statement that sets counter back to 1.

Add an assignment statement that sets averagePints to totalPints divided by 7

Add the getHigh( ) module in main. Go to the getHigh() module and add the following inside the module:

Add an assignment statement that sets counter to 2. This refers to the second location in the array.

Add an assignment statement that sets highPints to the 1 index of the pints array.

Add a loop that iterates 7 times.

Inside the loop, add a selection statement that determines if pints in the counter location is greater than highPints.

If that is true, then set highPints to pints in the counter location.

Increment counter by 1.

Add the getLow( ) module in main. Go to the getLow() module and add the following inside the module:

Add an assignment statement that sets counter to 2. This refers to the second location in the array.

Add an assignment statement that sets lowPints to the 1 index of the pints array.

Add a loop that iterates 7 times.

Inside the loop, add a selection statement that determines if pints in the counter location is less than lowPints.

If that is true, then set lowPints to pints in the counter location.

Increment counter by 1.

Add the displayInfo( ) module in main. Go to the display() module and add the following inside the module:

Display the averagePints variable

Display the highPints variable

Display the lowPints variable

Using the following input values, check your results. If there are errors, verify steps 1 through 10.

Element

34 39 25 18 43 31 12

Output should be as follows:

The average pints collected: 28.8571

The highest amount was: 43

The lowest amount was: 12

Reference no: EM13756829

Questions Cloud

What does the term european union mean : What does the term "European Union" mean? What is the European Union's ultimate objective? Comment on its success in the international business sector.
Developing a marketing plan for an export : Create an action plan with a list of at least five tasks, timelines, and deliverables for implementing your plan. Justify your plan - developing a marketing plan for an export / import business, assess the two most important factors to consider and..
Prepare entries in general journal form : Prepare entries in general journal form to record the transactions for the quarter ended June 30, 2013.
Explain significance of futurology and exponential growth : explain the significance of Futurology, Ossip Flechtheim or John von Neumann or Alan Turing, Mathematical probability (in connection with future predictions), Science Fiction and Exponential growth.
Display the highpints variable : Add an assignment statement that sets counter to 1. Remember, counter has to be set to one because Raptor arrays must start at 1, not 0.
Define the process of accounting : 1. Define the process of accounting. 2. What are the three major divisions in the accounting field?
Decision between two types of payment streams : Describe your answer for each item below in complete sentences, whenever it is necessary. Show all of your calculations and processes.
The heading of steps as in the eight steps : The book discusses eight major concepts under the heading of steps as in the eight steps for implementing change initiatives. Events from life experiences relating to the two to four major concepts from the book

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What can data mining do to help tej electronics

What can data mining do to help Tej Electronics? From the example in the case, do you think Tej be more likely to use rool up or drill down navigation? Why?

  Analyze the use of gestures in ipads

Analyze the use of gestures in iPads. Address how users feel about gestures and evaluate how users feel about the user input when it comes to filling out complicated forms on the iPad and assess the usability of back buttons and thumbnails on the iPa..

  Create a script that presents a movie guessing game

Use a single script file named Week5.php to display and process the form Can this be done with the movies 8 mile and black swan.

  4 bit binary representation using excess 7

Assuming a 4 bit binary representation using excess 7 list all bit sequences for integers -7 to +8

  Different software packages to different departments

Did you explain how they would deploy different software packages to different departments?

  Consider a scenario where the contingency planning

consider a scenario where the contingency planning management team cpmt of your organization has designated you as the

  Different methods that freedom of expression is limited

Describe three different methods that freedom of expression is limited in spite of unequivocal language of First Amendment.

  Create a new file called testwork

Create a new file called TestWork.scr Change the permissions on this new file to add the execute bit for user, group, and owner.

  What are some other uses for the break statement

How about using a break in a switch statement, show how you can really have a problem if you skip the break statement in a switch.

  Learn the combined use of timer and the tracking of user

Lab 10 - The Student Game - Learn the Combined use of Timer and the tracking of user interactions Deliverables app.java, myJFrame.java, myJPanel.java, and other necessary Java files

  Corporate or government agency policy on instant messaging

What specific questions must a corporate or government agency policy on "Employee use of Instant Messaging (IM) using corporate computers" address?

  What is the total cost for replacement

If you cannot find a good match for your current system, what might have to be purchased (processor, memory, etc.)? What is the total cost for replacement?

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