Why does the following pseudocode not perform as indicated in the comments? // This program asks the
Question:
Why does the following pseudocode not perform as indicated in the comments?
Transcribed Image Text:
// This program asks the user to enter a value // between 1 and 10 and validates the input. Declare Integer value // Get a value from the user. Display "Enter a value between 1 and 10." Input value // Make sure the value is between 1 and 10. While value < 1 AND value > 10 Display "ERROR: The value must be between 1 and 10." Display "Enter a value between 1 and 10." Input value End While
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 60% (10 reviews)
The provided pseudocode does not perform as indicated in the comments because it checks the value tw...View the full answer
Answered By
Anthony Ngatia
I have three academic degrees i.e bachelors degree in Education(English & Literature),bachelors degree in business administration(entrepreneurship option),and masters degree in business administration(strategic management) in addition to a diploma in business management.I have spent much of my life in the academia where I have taught at high school,middle level colleges level and at university level.I have been an active academic essays writer since 2011 where I have worked with some of the most reputable essay companies based in Europe and in the US.I have over the years perfected my academic writing skills as a result of tackling numerous different assignments.I do not plagiarize and I maintain competitive quality in all the assignments that I handle.I am driven by strong work ethics and a firm conviction that I should "Do Unto others as I would Like them to do to me".
4.80+
76+ Reviews
152+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
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...
-
Can you find the reason that the following pseudocode does not perform as indicated in the comments? // Find the error in the following pseudocode. Module main () Declare Real value, result // Get a...
-
Why doesnt the following pseudocode perform as indicated in the comments? // This program counts the characters in a string. Declare String word Declare Integer index Declare Integer letters = 0 //...
-
Bilboa Freightlines, S.A., of Panama, has a small truck that it uses for intracity deliveries. The truck is worn out and must be either overhauled or replaced with a new truck. The company has...
-
In August 1990, Iraq invaded Kuwait. For gasoline distributors, this meant that the price they paid for oil in the future could increase dramatically. For consumers, the effect was more immediate....
-
Suppose that in a particular area the consumption of water varies tremendously throughout the year, with average household summer use exceeding winter use by a great deal. What effect would this have...
-
What would be the main arguments for and against the introduction of such legislation?
-
Using the data in problem 7.5, determine the economical volume for each process. In problem 7.5, Meile Machine Shop, Inc., has a 1-year contract for the production of 200,000 gear housings for a new...
-
Bedford Company Ltd. operates a commercial fleet of fishing vessels off the southern shore of Nova Scotia. Bedford is considering a proposal to do some of its routine maintenance work itself rather...
-
Ms. Plant decided to purchase shares in Schvantz Ltd., a public company. She purchased 800 shares at $25 per share plus brokerage of $690 on May 24, 1998. The following additional transactions took...
-
This is a string inside of another string. a. Substring b. Inner string c. Mini string d. Component string
-
This type of error occurs when you try to assign a value of one data type to a variable of another data type. a. Type mismatch error b. Boolean logic error c. Relational error d. Bit conversion error
-
Determine whether the statement is true or false. If it is true, explain why. If it is false, explain why or give an example that disproves the statement. The Ratio Test can be used to determine...
-
On January 1, Mitzu Company pays a lump-sum amount of $2,700,000 for land, Building 1, Building 2, and Land Improvements 1. Building 1 has no value and will be demolished. Building 2 will be an...
-
Question: Divide.21r7-35r37r3r8-5r43r7-5r33r6-5r221r6-35r2 Divide. 2 1 r7 - 3 5 r3 7r 3r 8 - 5 r4 3 r7 - 5 r3 3 r6 - 5 r2 2 1 r6 - 3 5 r2 Divide. 21r7 - 35r 7r 38-54 3r7-53 3r6-52 216-3512
-
System of Equations: Value of a Value of b 9 a + 3 b = 3 0 8 a + 4 b = 2 8
-
An important practice is to check the validity of any data set that you analyze. One goal is to detect typos in the data, and another would be to detect faulty measurements. Recall that outliers are...
-
ve The re e Problem 3 Complete the following perpetual inventory form. Perpetual Inventory Total Product Name: Purchase Unit Size: Carried Forward: Date In Out 1/7 3 Balance 1/9 1/10 1/12 1/15 2 1 5...
-
On January 2, 2013, Parker Corporation invests in the stock of Quarry Corporation. Quarry's book value is $4 million and its assets and liabilities are fairly reported. Quarry reports income of $3...
-
What kind of rays are X-rays?
-
What class do you use to create a regular menu item? What do you pass to the class constructor?
-
To display an open file or save file dialog box, you use this class. a. JFileChooser b. JOpenSaveDialog c. JFileDialog d. JFileOptionPane
-
What are the standard GUI looks and feels that are available in Java?
-
Lacy is a single taxpayer. In 2020, her taxable income is $42,000. What is her tax liability in each of the following alternative situations? Use Tax Rate Schedule, Dividends and Capital Gains Tax...
-
PR 13-3A Selected Stock Transactions OBJ. 3 - Describe and illustrate the characteristics of stock, classes of stock, and entries for issuing stock., 4 - Describe and illustrate the accounting for...
-
The following sales and cost data (in thousands) are for two companies in the transportation industry: Company A Company B Amount Percent of Sales Amount Percent of Sales Sales $ 130,000 100 % $...
Study smarter with the SolutionInn App