Question Details

(Solved) I have some issue with this Raptor flowchart, so can you help me


I have some issue with this Raptor flowchart, so can you help me please?


IVY TECH COMMUNITY COLLEGE

 

SDEV 140 / Introduction to Software Development

 

S11 Raptor Assignment / Chapter 10: Files (15 points)

 

(From Programs 10-3 and 10-4, pages 390 and 392)

 

Student?s name ______________________ Section _______ Instructor?s name _________________

 

INTRODUCTION: Download this document (S11 Raptor Assignment.docx) from Blackboard, save it on your computer

 

(in a folder that you can easily locate), and then open it in Word.

 

PREREQUISITE: You need to have the Raptor 2014 program installed, and .NET version 3.5 or higher. Refer to S02

 

Raptor Assignment if you have not done this already.

 

TASKS: This assignment is taken from Program 10-3 and 10-4 on pages 390-392 in Chapter 10 of the textbook. In this

 

program, you will:

 

Create a Raptor program from pseudocode

 

Enter a series of daily sales amounts and write them to a text file

 

Close the text file for output and open it for input

 

Read the sales amounts from the text file until the end-of-file and display them in the Master Console

 

ASSIGNMENT: Start Raptor, and then do the assignment outlined in step 2. Save the Raptor file on your flash drive or

 

PC as S11.rap. Submit the Raptor file in Blackboard.

 

1) Watch the video titled ?Raptor 03: Files and Strings?, at: http://www.youtube.com/watch?

 

v=8Qx2w2CDKrk (this link is also in the Blackboard session).

 

2) Start Raptor, and create a Raptor program as follows. The program will ask the user for a number of days (which

 

becomes the loop control variable), opens an output file, prompts the user for sales amounts and writes them to

 

the file. Then it closes the file and reopens it for input, reads the numbers from the file and displays them.

 

a. Right-click the Start symbol and select Comment. Type comment lines for the Author, Date, and

 

Description, then click Done. Do this for all Raptor programs.

 

b. Call a built-in Raptor function named Clear_Console

 

c. Prompt the user for the number of days (line 14 on page 390), and store the result in numDays

 

d. Initialize the variable counter to 1.

 

e. Open a file for output by calling the Raptor function Redirect_Output(?sales.dat?). The file will be

 

created in the same folder as your Raptor files.

 

f.

 


 

Create a loop with the exit condition counter > numDays. Inside the loop:

 

i. Prompt the user to enter sales for the day indicated by counter (line 24 on page 390), and store

 

the input in sales

 

ii. Use an Output symbol to write the sales amount to the file (you have already redirected the output

 

to the file).

 

iii. Add 1 to counter

 


 

g. Outside the loop (the YES branch), close the output file by calling Redirect_Output(no)

 

h. Then open the file for input by calling Redirect_Input(?sales.dat?)

 

i.

 


 

Display the message ?Here are the sales amounts:?

 


 

j.

 


 

Format your output to 2 decimal places by calling a built-in Raptor function called Set_Precision(2).

 


 

k. Reset the counter to 1, and create a new loop with the exit condition End_Of_Input.

 

l.

 


 

Inside the loop use an Input symbol to read the sales amount from the file. Use the prompt ?Read

 

number:? (The prompt will not actually appear anywhere, since input is coming from the file.)

 


 

m. Use an Output symbol to display the amount in the Master Console with a ?$? + sales.

 

n. Add 1 to counter

 

o. Run the program with the input on page 390. Your output in the Master Console should show the same

 

output as at the bottom of page 392, although the amounts will not have commas. See the screen shot

 

below.

 

p. If there are any errors, recheck the instructions and correct them, then resave the file.

 

3) Submit the Raptor file S11.rap by clicking on the View/Complete Assignment link in Blackboard, and attaching

 

the file.

 

DEBUGGING THE PROGRAM: One of the greatest skills a programmer can develop is debugging, which means

 

locating and fixing errors in a program. Email your instructor and ASK QUESTIONS if you are having trouble. It would

 

be helpful if you could attach your Raptor file (S11.rap) to your email.

 

CHECKLIST FOR SUBMITTING THE ASSIGNMENT:

 

You have tested the Raptor program (S11.rap) and it works correctly

 

Then, Attach the Raptor file (S11.rap) and Submit it through Blackboard

 

SAMPLE SCREEN SHOT:

 


 

 


Solution details:

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Oct 15, 2019

EXPERT

Tutor

ANSWER RATING

YES, THIS IS LEGAL

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.

Order Now