Review Final Exam

User Generated

YbeqBqva

Computer Science

Description

Hello,

I have final exam and it is solved, but I want someone to review it and make sure that the answers are right. For the debugging question, please read the instruction carefully and do what is needed.


Thanks.

Unformatted Attachment Preview

GLO Event Bron 10 Name: End While Output Sum Output Count End 2. Trace through the following flowchart and give the values for the variables used: 7 a. A 2 ч 17 a 5453 & lar b. B S C. X s g non, L programs keyboar than a d. Y or Function Main ato bers. that Declare Integer A Declare Integer B Declare Integer X Declare Integer Y ting hold Assign A = 0 Assign B = 2 A Assign X = 4 lar Assign Y = 2 le ha ction Do While B < 4 If X < 5 оор du Assign X = X + 1 End If да Assign A = X *Y Assign Y = Y + 3 Name: Assign B = B + 1 Output A End While End 3. Trace through the following logic to find the answers to variables A, B & C. ke sical ste Function Main n. Declare Integer A Declare Integer B Declare Integer C files Files that can be located in Assign A = 1 access memory (RAM) Cary, internal computer neck The comparison to a series of values th ng ends of ranges. Assign B = 2 Assign C = 2 Do While A 15 Assign C = C - 10 up of fields stor unit because th single entity aparison operate xpresses Boolea Examples inclu Else: Assign C = C + 10 End If Feature of mo ensures a mod Output C proven to fu End While er name for a Assign C = C + B + A End ature of my ws individ Fall 2018 APA-347 Name: Value of Variable A: Value of Variable B: 국 Value of Variable C: 17. 되 ne out ed Name: Debugging Exercise Worth 55 Points 4. The following logic contains many mistakes. Some are obvious, while missing, specify what is missing. You must find a minimum of 5 diagram to figure out the rent. Also, if you think something is second. Study this carefully and draw the two-dimensional array others are not. The array is based on floor first and bedrooms mistakes. Enter answer on the next page. // Declare variables. idoma cords th der. 1 2 3 4 Set floor Numeric Set bedroom Numeric Set quit Numeric Set rent (5,3] 5 andom ac Temporary range check variable to a the limiting reading from data from a fil RAM. 7 //remember array is floor, bedroom //fill array rent[] with values. Make your array diagram to [350, 390, 435, 400, 440, 480, 475,530,575,600,650, 700,1000, 1075, wrong //help figure this out rent = 8 9 10 real numbers 1 11 1150] quit = 0 Do While floor "99" 12 13 real-time Descr quire a record mediately whi Output = "Enter building floor (0 5) or 99 to quit: " 14 d A group 15 Nunner 16 er as a unit out a single Input bedroom 17 18 11 comparis at express s. Exam Input floor missinu pumner or flour Output "Enter number of bedrooms 0 - 2. & nedroms Output "Rent is $" + rent[bedroom, floor] Input "Enter floor of building or 99 to quit: Output floor missing runner End Do Input "End of program" Stop 19 of floor 20 21 22 featur ensure 23 prove nam 2d Fall 2018 Name: vorons o Perator Question 5 Answers - Please write the line number and type of mistake: Do while floor- gg. v and missing Check for nunher of Flools. missin check input bedroom output slook number of flooks rember Array js blood, bedroom o set rent [s, 3] of а a pl access file that can B dom access me emporary, intern ange check The ariable to a series e limiting ends o Wing from a file from a file on What would the rent be for a 1 bedroom apartment on the 4th floor? Vocabulary - Worth 50 Points 5. Match the correct definition to the terms displayed nbers Floati Describes -ecord to y while a Answer Terms 1. Loop control variable Definitions A. copies data from a file on a storage device into RAM O Pup of fi unit be ngle e 2. Decrement s rison esses -ple I 3. Infinite Loop B. the symbols that express Boolean comparisons; examples include =, >, =,
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Find attached...I reviewed your exam and made brief notes and some explanations.Please get back to me if you got any questions.

Running head: Review Final Exam

Q1.Remember array index starts at 0
Times [4] = Ti...


Anonymous
Great study resource, helped me a lot.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags