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 pseudocode for worm moving toward apple

Worm is moving toward an apple. Each time it moves, worm cuts distance between itself and apple by its own body length until worm is close enough to enter the apple. Give pseudocode for this.

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a program that asks the user for the values of x and

in engineering thermodynamics it is sometimes necessary to balance chemical reaction equations specifically for the

  Create a multi-view program for the iphone

Compress the entire XCode project folder as a single zip, rar or other file format using an "archive file" or compression utility like PKZIP.

  Program which calculate and displays fifteen percent tip

Write a program which calculate and displays a 15 percent tip when the price of a meal is input by the user. (Hint: the tip is computed by multiplying the price of the meal by 0.15.).

  Write program which uses while loops to input two integers

Write the program which uses while loops to perform the following steps: prompt the user to input two integers: firstNum and secondNum.(firstNum must be less than secondNum.

  Write a program to read student data from standard input

Write a program to read student data from standard input, sort it by last name / first name, and print result to standard output.

  Recursive method to search a string for a byrd

Write a recursive method that searches a string for a Byrd. A Byrd has the following properties. Its first character is an 'A'. If it is a two character Byrd then its second and last character is an 'H'.

  Write application to store three tests grades of students

Write the application to store three tests grades of 20 students in two dimensional array GRADES. Then program must prompt user to select from the menu.

  Write script to declare and sets variable equal to balance

Write a script that declares and sets a variable that's equal to the total outstanding balance due. If that balance is greater than $10,000.00, the script should return a result set consisting of VendorName.

  Application to print the sum of cubes

Write down the application to print the sum of cubes. Prompt for and read two integer values and print sum of each value raised to third power.

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