Why does the following pseudocode not perform as indicated in the comments? // This program gets a dollar amount from the user // and validates the input. Declare Real amount // Get the amount from...


Why does the following pseudocode not perform as indicated in the comments?


// This program gets a dollar amount from the user


// and validates the input.


Declare Real amount


// Get the amount from the user.


Display "Enter a dollar amount"


Input amount


// Make sure the amount is not less than zero. If it is,


// get a new amount from the user.


While amount < 0="" display="" "error:="" the="" dollar="" amount="" cannot="" be="" less="" than="">


Display "Enter a dollar amount."


End While




Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here