Find the error in the given pseudocode

Assignment Help Programming Languages
Reference no: EM13691607

You have to find out error in the following pseudocode

Question 1. If the following pseudocode were an actual program, why would it not display the output that the programmer expects? Declare String favoriteFood Display "What is the name of your favorite food?" Input favoriteFood Display "Your favorite food is " Display "favoriteFood"

Question 2. 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, "."

Question 3. 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 the second value." Input value2 Display "Enter the third value." Input value3

Display "The sum of the number is ", sum

Question 4. Find the error in the following pseudocode. Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an object in free fall:" Display "Earth: ", GRAVITY, " meters per second every second." Set GRAVITY = 1.63 Display "Moon: ", GRAVITY, " meters per second every second."

Can you help me out I am stuck in middle.

Reference no: EM13691607

Questions Cloud

Write the string copy and string concatenation functions : Write the string copy and string concatenation functions and first version should use array subscripting, and the second version should use pointer arithmetic.
Write the balanced net ionic equations for the reactions : Problem- When 6 M Na NaOH is added dropwise to a solution of AlCL3, a white precipitate forms which dissolves when 6 M HCl is added, Explain each observation below as well as write the balanced net ionic equations for the reactions that occur.
Write the balanced net ionic equations : Problem- Explain each observation below and write the balanced net ionic equations for the reactions that occurs. Part 1) When 6 M NaOH is added dropwise to a solution of ZnCl2, a white precipitate forms which dissolves to form a colorless solution..
Trans-2-pentene given propyne and other reagents as needed : Problem- I want to make trans-2-pentene given propyne and other reagents as needed. I need to use retrosynthesis to get from my starting material (propyne) to my target material (trans-2-pentene).
Find the error in the given pseudocode : If the following pseudocode were an actual program, why would it not display the output that the programmer expects? Declare String favoriteFood Display "What is the name of your favorite food?" Input favoriteFood Display "Your favorite food is " ..
What mass of naoh is needed to precipitate the cd2+ ions : Problem- What mass of NaOH is needed to precipitate the Cd2+ ions from 34.0mL of 0.510M Cd(NO3)2 solution
Use retrosynthesis to get material from starting propyne : Problem- I want to make cis-2-pentene given propyne and other reagents as needed. I need to use retrosynthesis to get from my starting material (propyne) to my target material (cis-2-pentene).
Write a class house that correctly compiles and runs : Write a class House that correctly compiles and runs with the following TestHouse code. You cannot change a single thing in the TestHouse class,
Write a java statement to have the object from manage : Write a Java statement to have the object from manage its display area by dividing it into 3 rows which have 4 columns each.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write application to input numbers in one dimensional array

Use a one dimensional array to solve the following problem: Write an application that inputs five numbers, each between 10 and 100, inclusive.

  Binary search algorithm to search an array

The binary search algorithm that follows may be used to search array when elements are in order. This algorithm is analogous to following approach for finding name in telephone book.

  Write potential function to derive valid amortized cost

Consider base 3 counter and de ne actual cost of increment operation to be number of digits which get changed. Provide a potential function which enables you to derive smallest valid amortized cost.

  Write program which accepts input values-store tem in array

Write a program which accepts five input values and stores them into array. Program must display those five numbers in reverse order.

  Write program to find smallest-largest value from n numbers

Write down program which will determine the smallest, largest and average values in collection of N numbers. Get value of N before scanning each value in collection of N numbers.

  Perform a paired t-test to verify your claim

Which type of t-test is most appropriate to investigate your co-investigator's claim? Why is it most appropriate t- test? Please explain your answer in 1-2 lines.

  Technique of multiplexed switching of analogue signals

Explain briefly from what you notice about the digital output values in (a) why a digital output value of an A/D converter is rarely the exact same digital value as the analogue input value.

  Explain the project manuals for python and java

Overview: Understand TCP socket programing by developing a (multi-threaded) Web server. You may use Python, Java, or C++ as the programing language. The project manuals for Python and Java are attached to this document, which have provided partial..

  Write a lisp program to evaluate lisp arithmetic

Write a Lisp program to evaluate Lisp arithmetic expressions. Assume four operators may be used in expressions and they are +, -, *, and /. All these operators are binary, i.e., they are applied in an expression in this format

  Prepare a presentation on backgrounds and fonts

Can you still read the text? Is it too narrow or thick? Is an icon hidden by the background? You should also include tips for choosing backgrounds and fonts.

  Conduct experimental study on free and damped vibrations

Conduct an experimental study on the free and damped vibrations - Prepare a report with made for an experiment

  Design a flowchart displays item-s data

Design a flowchart or pseudocode for the following: displays the item's data only if it is a best-selling item. Best-selling items are those that sell more than 2000 pounds per month.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd