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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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