Design a raptor program that uses an array

Assignment Help Computer Engineering
Reference no: EM13854469

Part 1: Raptor Arrays

Here is a very short introduction to arrays using RAPTOR (also included in the Activity folder): https://web.cerritos.edu/jwilson/SitePages/cis_103/presentations/Arrays%20in%20RAPTOR.pdf

Here is a more comprehensive explanation of RAPTOR arrays (also included in the Activity folder):
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CB0QFjAAahUKEwjTz9PHmZbIAhVDmoAKHXqDAcM&url=http%3A%2F%2Fraptor.martincarlisle.com%2FG-Arrays.doc&usg=AFQjCNF7pEwSqNgcJfm9yS0RNTsfiytIuw&bvm=bv.103388427,d.eXY

In this handout, focus on the sections and examples discussing one-dimensional arrays. We will cover multi-dimensional arrays in Chapter 8. The section "Processing Array Variables Using Loops" has several good examples of processing arrays including: assigning values to an array variable, reading values into an array, writing array variable values out, totaling and computing the average of the values in an array, finding the largest value of all the values in an array, and finding the index of the largest value in an array.

After reading the above documentation, view the YouTube video RAPTOR21 - Introduction to Arrays by Brad Yourth: https://www.youtube.com/watch?v=kaSY1aT2zqw
Next, view the YouTube video RAPTOR22 - Arrays2 by Brad Yourth:https://www.youtube.com/watch?v=IRZumD0jQAE

The most important things to note about RAPTOR arrays is that they can be created dynamically. In other words, there is no formal declaration statement - you just start using them. Also, RAPTOR array indexing starts at 1 instead of 0. The first element in the array is at subscript [1] instead of [0].

Part 2: Displaying an array's values in reverse order

Design a Raptor program that uses an array to store 5 values entered by the user and then displays the numbers in reverse order. Use two loops: one for reading the user entered values into the array; and another for displaying the contents of the array in reverse order. Hint: the secondloop will use a counter that starts at the size (length) of the array, and is then decremented by 1 each pass of the loop(for example: counter = counter - 1).

Example output:

Enter a number: 34
Enter a number: 12
Enter a number: 8
Enter a number: 56
Enter a number: 25
25
56
8
12
34

Save a screen capture of the Raptor flowchart and a screen capture of the Master Console displaying an example run of the program. You might need to do two separate screen captures - one of the flowchart and one of the Master Console.

[ Insert the screen capture of your Raptor program with at least one example run]

Part 3: Finding the maximum value in an array

Design a Raptor program that uses an array called fmax to store 10 positive values entered by the user. Determine the maximum value entered and display it to the screen. The second handout has a similar example using the Section_GPA array which already contains values.

Hints: Use a loop with a nested if statement (decision structure).
Do not use the variable name ‘max', it is the name of a function in Raptor.

Example output:

Enter a number: 34
Enter a number: 23
Enter a number: 98
Enter a number: 56
Enter a number: 13
Enter a number: 5
Enter a number: 10
Enter a number: 49
Enter a number: 33
Enter a number: 76
The maximum value in the array is 98

Save a screen capture of the Raptor flowchart and a screen capture of the Master Console displaying at least one run.

Reference no: EM13854469

Questions Cloud

Compute the multiplication and comparison of them : Compute the multiplication and comparison of them. The main function should display the result.
A journalist was interested in college students : A journalist was interested in college students' knowledge of current events. The journalist compared a large group of college students to the general public using a questionnaire about recent items in the news. In this study, she tested large number..
Describe in detail a bad decision : Describe in detail a bad decision that you made at work in the past, or any work-related decision that you wish you could "do over." Be sure to indicate your career field, as you describe this decision. Analyze that bad decision using Steps 1-7 of th..
Financial statements and the closing process : The information needed to prepare the income statement is found in the Income Statement columns of the work sheet. Revenue is shown first, followed by an itemized and totaled list of expenses. Net income may be calculated or copied from the Income..
Design a raptor program that uses an array : Design a Raptor program that uses an array to store 5 values entered by the user and then displays the numbers in reverse order. Use two loops: one for reading the user entered values into the array
Explain the key ways in which the teachings of the vedas : Hindu Way of Life Please respond to the following- Explain the key ways in which the teachings of the Vedas influence the daily lives of Hindus.
Differences between the oracle database sysdba and sysoper : What are the differences between the Oracle database SYSDBA and SYSOPER privileges? Explain OS authentication and how that allows you to connect to the database as SYS without providing a password
External financial statements of an enterprise : 1. The primary measurement basis currently used to value assets in external financial statements of an enterprise is the
Benefit cost analysis and non-market valuation : benefit Cost Analysis and Non-Market Valuation

Reviews

Write a Review

Computer Engineering Questions & Answers

  Change the image to a black-to-green scale image

Call a method that will change the image to a "black-to-green scale" image - Call a method that will change the image to a version of a green scale image.(green to white).

  Make binary search tree that will accept integers in order

modify a C++ Binary Search Tree that will accept integers in this order: 35, 18, 48, 72, 60, 25. Ask user for input and search tree utilizing integer input. Return "True" if input integer is found or "False" if it is not found in tree.

  Implement a class address

Implement a class Address. An address has a house number, a street, an optional apartment number, a city, a state, and a postal code. Supply two constructors: one with an apartment number and one without.

  Are there any other examples of famous projects

Are LANs a stable technology or are they changing just as fastly as other forms of communication technologies?

  Why do systems deployments or implementations fail

Why do systems deployments or implementations succeed.

  Make use to effectively manage a team of system

Are different management techniques needed for managing technical personnel versus nontechnical personnel.

  The main reasons for it project failures

Why do you believe some projects do not meet their objective or scope.

  Write down a java program using arraylist

Based on the program in the first assignment. Drop each student's lowest score first before calcuting their average test scores. Submit source code and screen shot.

  Find out all doctors who went to harvard

Did the SQL programmer enforce the constraint that every doctor practices in a unique hospital? If so, how? If not, how do you know, and how, if at all, might this constraint have been implemented.

  Why is contingency planning important for management

Why is contingency planning important for management? Specifically in the Information Technology field or department.

  What is the effective access time in ns needed

assume the cache hit ratio is 0.8 and the main memory hit ratio is 0.7. What is the effective access time in ns required to access a referenced word on this system.

  Draw the logic diagram for a circuit

Draw the Logic diagram for a circuit that resolves priority among eight active-low inputs, 10_L-17_L, where 10_L has the highest priority.

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