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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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