Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Part 1: Raptor Arrays

Here is a very short introduction to arrays using RAPTOR (also included in the Activity folder): http://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):
http://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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91424228
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Salesthe sales department is in a unique position customers

Sales The sales department is in a unique position: customers seek out Thermo-Chem because it has cornered the market with virtually no competition except in the chemicals market. Therefore, only limited sales effort is ...

Question recall that many programming languages use short

Question : Recall that many programming languages use short circuit evaluation when determining the result of a complex boolean expression involving add/or operations. What are the benefit of using short circuit evaluati ...

In a standard s - t maximum flow problem we assume edges

In a standard s - t maximum flow problem, we assume edges have capacities, and there is no limit on how much flow is allowed to flow through a node. In this problem, we consider the variant of the maximum flow and minimu ...

Question superfast software inc was founded last year by

Question : Superfast Software Inc. was founded last year by three young programmers. They all dreamed their company would become a really big one and would distribute a large number of software products all over the worl ...

Question body image please respond to the followingdebate

Question: "Body Image" Please respond to the following: Debate It - take a position on this statement: Media cause individuals to develop negative and unrealistic body images. Support your views with two or three reasons ...

There are sorted sequences l1 and l2 with 5 and 4 elements

There are sorted sequences L1 and L2, with 5 and 4 elements respectively. a) How many comparisons will it take to merge L1 and L2 in the best case? How many for worst case? Explain your answers. b)Let [54, 26, 93, 17, 77 ...

A firm produces product a and product b this years sales

A firm produces Product A and Product B. This years sales price of Product A have decreased tremendously, and the sale of Product B has increase by 10 percent. The firm has threeemployees that can produce Product A and f ...

Write a matlab code to solve thisit seems that the math

Write a matlab code to solve this It seems that the Math department at a rival university has once again dropped the ball, and forgotten the value of n. You are to write a script which consumes a number that specifies th ...

You have 2 tasks to createer-modeling in ms visio simple

You have 2 tasks to createER-Modeling in MS visio. Simple jab for the database expert that would take him 30 min to finish. My requirement not only for the expert to get the task done. I need to do it myself. Then he cor ...

Question summarize the human-computer interface hci of

Question : Summarize the human-computer interface (HCI) of Microsoft Word 2013 and Visio 2013. Explain the importance of HCI and usability of the software. Be sure to note any commonalities between the applications and n ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As