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

  What each ddl and dml command does for each sql statement

Explain an application requirement that would necessitate the use of a view. Describe a specific scenario, situation, or application where using a foreign key would be necessary.

  Find the shortest sequence of mips instructions

Find the shortest sequence of MIPS instructions that extracts bits 16 down to 11 from register $t0 and use the value of this field to replace bits 31 down to 26 in register $t1 without changing the other 26 bits of register $t1

  Potential impact of the google glass on personal computing

The Potential Impact of the Google Glass on Personal Computing

  Choose a company intranet or portal and describe the object

choose a company Intranet or Portal and describe the object.

  Define the german transportation otto bonn

First assignment is: Problem Description: The German transportation Otto Bonn is expanding his trucking business into Florida, with shipping centers in Daytona Beach, Gainesville, Jacksonville, Miami, Tallahassee, and Tampa.

  Write down a sub query by using the books and publisher

write a sub query using the books and publisher table to list the isbn book title and the retail price for every book

  Review sectioncontemporary hardware platform trends and

review sectioncontemporary hardware platform trends and section contemporary software platform trends in of management

  Write down an application that displays a menu

Write down an application that displays a menu.

  Information systems project

Information Systems Project

  Different internet access systems

Different Internet access systems are asymmetric, with the higher downstream speeds rather than the upstream speeds. Is this better for the client PC access to web servers? Explain. Does it matter for the client access to the e-mail servers? Explain.

  Find out the capability of all computers

find out the capability of ALL computers

  Main differences between selection and switch structure

What do you need to analyze when directing flow of information in each case? Give code examples for if/else structure and switch structure that produce the same result.

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