Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please explain this and answer in a mathematical way, rather than computer science way. Part 1. Problem Solving p. 96 ex. 11 (Algorithm Workbench)- 5

image text in transcribed

Please explain this and answer in a mathematical way, rather than computer science way.

Part 1. Problem Solving p. 96 ex. 11 (Algorithm Workbench)- 5 points If the following pseudocode were in an actual program, what would it display? Declare Integer a = 5 Declare Integer b = 2 Declare Integer c = 3 Declare Integer result Set result = a + b c p. 76 ex. 3, 4, 6 (Debugging Ex.) - 15 points 3. The following code will not display the results expected by the programmer. Can you find the error? Declare Real lowest, highest, average Display "Enter the lowest score." Input lowest Display "Enter the highest score." Input highest Set average = lowest + highest / 2 Display "The average is", average, "." 4. Find the error in the following pseudocode Display "Enter the length of the room." Input length Declare Integer length 6. Find the error in the following pseudocode Declare real pi Set 3.141 59265 = pi Display "The value of pi is = ", pi

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions