Find the error in the following pseudocode.
Declare Integer value1, value2, value3, sum
Set sum = value1 + value2 + value3
Display “Enter the first value.”
Input value1
Display “Enter t he second value."
Input value2
Display “Enter t he third value.”
Input value3
Display “The sum of numbers is”, sum
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
EBK STARTING OUT WITH PROGRAMMING LOGIC
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Computer Systems: A Programmer's Perspective (3rd Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Starting Out with C++: Early Objects (9th Edition)
Artificial Intelligence: A Modern Approach
- Find the error in the following pseudocode. Declare Real pi Set 3.14159265 = pi Display "The value of pi is ", piarrow_forwardUsing pseudo code Write a design to calculate and display the sum, subtraction, division or multiplication of 2 prompted numbers Prompt the user for a type of calculation ( + - * / )Prompt the user for 2 numbersCalculate and display the answerarrow_forwardDirection : Make a guessing game program that will generate a random number and ask the user to guess the generated value with at most three (3) attempts: Problem/Required : The system should have the corresponding feature/s: Generate a random value between 1 to 10. Give the user at most 3 attempts to input a value between 1 to 10. Display “Higher” or “Lower” depending on the user’s input compared to the generated value. Display “Sorry, 3 attempts already.” after 3 incorrect attempts, “Congratulations! You got it in n attempt/s” Show the generated number.arrow_forward
- Capitalize initial keyword – This is a rule while writing a pseudo code. T/Farrow_forwardPEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. // This pseudocode is intended to determine whether students have// passed or failed a course; student needs to average 60 or// more on two tests.start Declarations num firstTest num secondTest num average num PASSING = 60 while firstTest not equal to 0 output "Enter first score or 0 to quit " input firstTest output "Enter second score" input secondTest average = (firstTest + secondTest) / 2 ouput "Average is ", average if average >= PASSING then output "Pass" else output "Fail" endif endwhilestoparrow_forward:Constant value must be Number O Character .Number or Constant .One of abovearrow_forward
- Q2: - Design In Visual Basic a form and write a code to find the largest value of N numbers using Do While Loop. Use InputBox function to read numbers.arrow_forwardProgramming logic and designarrow_forwardInstructions Instructions Write a program that prompts the user to enter two integers. The program outputs how many numbers are multiples of 3 and how many numbers are multiples of 5 between the two integers (inclusive).arrow_forward
- Draw hierarchy charts or flowcharts that depict the programs described below. Sales TaxDesign a hierarchy chart or flowchart for a program that calculates the total of aretail sale. The program should ask the user for:– The retail price of the item being purchased– The sales tax rateOnce these items have been entered, the program should calculate and display:– The sales tax for the purchase– The total of the salearrow_forwardValidy options is: Valid / Invalidarrow_forwardSoftware Sales A software company sells a package that retails for $99. Quantity discounts are given below: Quantity Discount 10–19 20% 20–49 30% 50–99 40% 100 or more 50% Design a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,