i need help with raptor program In this portion of the lab y

i need help with raptor program....

In this portion of the lab you will analyze a problem and figure out what the problem statement is,
inputs, outputs and develop some pseudocode. Read the following:
Pick a company you are interested in. Research the stock prices for that company for the last
year. You can use Google Finance or Yahoo Finance to find your data. Create a program that
will store the dates and stock prices into two parallel arrays. Once you gather the data make
sure your program does the following:

1. Pre-load your arrays for your 12 months of data. This means that once you declare the
array you immediately fill it. There is a great example of how to do this in the demo
folder. The name of the file is StudentsAndScoresDataLoaded. Trust me, this helps you
when testing.
2. Using a loop print out the contents of the array.
3. Find the average selling price of your stock.
4. Find the highest selling month. Print out the price and the month.
5. Find the lowest selling month. Print out the price and the month.
6. Allow the user to enter a month and have the program find the corresponding stock
price.

In this portion of the lab you will analyze a problem and figure out what the problem statement is.

There will be NO pseudocode for this assignment. Read the following:

Make sure your program has the following procedures (you will not receive any credit for thislab if you do not use procedures):

LoadArrays == This procedure will load both of your arrays so that they are taken out of main

GetAverage == This procedure will calculate an average price

FindHighest == This procedure will find the highest stock price and its correspondingmonth

FindLowest == This procedure will find the lowest stock price and its correspondingmonth

SearchPrices == This procedure will allow the user to enter in a month and find itscorresponding stock price and display it to the user.

HINT: There is really not a whole lot of new coding going on with this assignment. Basicallyyou are repackaging it. Be mindful of the parameters you need to define and how theseparameters are being passed into and out of each of your procedures. Additionally make sureyou are adding procedures. Points will be deducted if you add subcharts rather thanprocedures.

Lab 6.2 – Raptor

In this portion of the lab you will take the pseudocode from above and test it using Raptor.

Step 1:  Code in Raptor. Open up Raptor and code this problem.
Step 2: Since there is no real test data (all of your programs will be unique), you will need to scanyour data and determine the highest and lowest values and

RAPTOR

Input

The highest stock price is: 577.3600 which accurred in Sep 2014

The lowest stock price is: 526.4000 which accurred in Dec 2014

The stock price for February 2015 is: 558.4000

Solution

#include #include #include using namespace std; // This program demonstrates the use of structures // structure declaration struct course { string discipline; int courseNumber; string courseTitle; short credits; }; continues 198 LESSON SET 11 Structures and Abstract Data Types int main() { course nextClass; // next class is a course structure int numCredits = 0; char addClass; do { cout << \"Please enter course discipline area: \"; cin >> nextClass.discipline; cout << endl << \"Pleae enter the course number: \"; cin >> nextClass.courseNumber; cout << endl << \"Please enter the course title: \"; cin.ignore(); // necessary for the next line getline(cin, nextClass.courseTitle); // use getline because course title may have a blank space cout << \"Please enter the number of credit hours: \"; cin >> nextClass.credits; numCredits = numCredits + nextClass.credits; // output the selected course and pertinent information cout << \"You have been registered for the following: \" << endl; cout << nextClass.discipline << \" \" << nextClass.courseNumber << \" \" << nextClass.courseTitle << \" \" << nextClass.credits << \"credits\" << endl; cout << “Would you like to add another class? (Y/N)\" << endl; cin >> addClass; } while(toupper(addClass) == \'Y\'); cout << \"The total number of credit hours registered for is: \" << numCredits << endl; return 0; } M

i need help with raptor program.... In this portion of the lab you will analyze a problem and figure out what the problem statement is, inputs, outputs and deve
i need help with raptor program.... In this portion of the lab you will analyze a problem and figure out what the problem statement is, inputs, outputs and deve

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site