Study the pseudocode and answer the following questions. Line numbers have been added to help you. a)
Question:
Study the pseudocode and answer the following questions. Line numbers have been added to help you.
a) Give the line number of:
i) An assignment statement
ii) A selection
iii) An iteration.
b) Complete an identifier table for the algorithm.
c) Extend the algorithm to only allow four tries for a correct choice.
Transcribed Image Text:
01 REPEAT 02 OUTPUT "Menu Temperature Conversion" 03 OUTPUT "Celsius to Fahrenheit 1" 04 OUTPUT "Fahrenheit to Celsius 2" 05 OUTPUT "Exit 3" 06 OUTPUT "Enter choice" 07 IF Choice 1 OR Choice = 2 08 THEN 09 OUTPUT "Enter temperature" 10 INPUT Temperature 11 IF Choice 1 12 THEN ConvertedTemperature + 1.8*Temperature + 32 13 14 ELSE 15 ConvertedTemperature + (Temperature 32) * 5 / 9 16 ENDIF 17 OUTPUT "Converted temperature is ", convertedTemperature 18 ELSE 19 IF Choice <> 3 20 THEN 21 OUTPUT "Error in choice" 22 ENDIF 23 ENDIF 24 UNTIL Choice = 3
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 70% (10 reviews)
ANSWER a i Line 16 ii Line 7 iii Line 1 b Identifier Type Purpose Choice Int...View the full answer
Answered By
Dennis Nyangau
I have been tutoring for several years now, and I absolutely love it! I love being able to help students one-on-one and see them succeed. It is so gratifying to see a student understand a concept that they were struggling with before. I also enjoy getting to know my students and helping them to reach their full potential.
0.00
0 Reviews
10+ Question Solved
Related Book For
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams
Question Posted:
Students also viewed these Computer science questions
-
Choose the true statement: a. Duration may not be used to determined the risk of a price change of the financial instrument due to the changes of interest rates b. The higher the duration of the...
-
a. After 3 points have been added to every score in a sample, the mean is found to be M = 83 and the standard deviation is s = 8. What were the values for the mean and standard deviation for the...
-
a. After 3 points have been added to every score in a sample, the mean is found to be M = 83 and the standard deviation is s = 8. What were the values for the mean and standard deviation for the...
-
Requirement 1 Two contribution format statements: current and proposed based on business decision. Requirement 2 For each option current and proposed business decision) calculate the following: a....
-
What percentage of hospitals provide at least some charity care? This problem is based on information taken from State Health Care Data: Utilization, Spending, and Characteristics (American Medical...
-
Omni Services Ltd., a Canadian public company, is a conglomerate involved in publication of newspapers, media services, and information technology consulting. It recently entered into an agreement to...
-
Recognized limitations of financial statement analysis include each of the following except: a. companies in the same industry using different accounting methods. b. inflation. c. different levels of...
-
At December 31, 2013, Stacy McGill Corporation reported current assets of $370,000 and current liabilities of $200,000. The following items may have been recorded incorrectly. 1. Goods purchased...
-
What would be a addocate response to the letter below? The information you are looking for is in the steps of each case study. For example, in Step 1 of WM1 (page 4) the instructions state the...
-
What advantages as a forecasting tool does exponential smoothing have over moving averages?
-
Computer programs have to evaluate expressions. Study the sequence of pseudocode statements. Write down the value assigned to each variable. a) Perimeter b) Area c) Z d) A DECLARE h, w, r,...
-
Abstract data types (ADTs) are collections of data and the operations used on that data. Explain what is meant by a) Stack b) Queue c) Linked list.
-
(Multiple Choice) 1. In liability fraud, liabilities are most often: a. Understated. b. Overstated. c. Recorded as assets. d. Recorded as expenses. 2. Which of the following is usually the hardest...
-
Consider (Figure 1) Letr 5.8 cm Part A What is the strength of the electric field at the position indicated by the dot in the figure? Express your answer in newtons per coulomb. View Available...
-
A borrower has been analyzing different adjustable rate mortgage (ARM) alternatives for the purchase of a property. The borrower anticipates owning the property for five years. The lender first...
-
Classify each account as an Asset, Liability, or Shareholders' Equity item. Accounts payable $16,848 Liability Accounts receivable 14,148 Asset Bank loan payable 34,560 Liability Cash 10,098 Asset...
-
A city has a deficit of $40.9 million. How much is this per person if the population of the city is 279,600?
-
Review Constants Here is a simple example. The inhabitants of a small island begin exporting beautiful cloth made from a rare plant that grows only on their island. Seeing how popular the small...
-
The Filling Department of Eve Cosmetics Company had 4,000 ounces in beginning work in process inventory (60% complete). During the period, 46,000 ounces were completed. The ending work in process...
-
A certain Christmas tree ornament is a silver sphere having a diameter of 8.50 cm. Determine an object location for which the size of the reflected image is three-fourths the size of the object. Use...
-
In this exercise, we will examine space/time optimizations for page tables. The following list provides parameters of a virtual memory system. 1. For a single-level page table, how many page table...
-
In this exercise, we will examine how replacement policies impact miss rate. Assume a 2-way set associative cache with 4 blocks. To solve the problems in this exercise, you may find it helpful to...
-
To support multiple virtual machines, two levels of memory virtualization are needed. Each virtual machine still controls the mapping of virtual address (VA) to physical address (PA), while the...
-
Johnson Company uses the gross method and a perpetual inventory system. Assuming the following entries, compute the amount that Johnson Company received on March 17. March 6 Sold goods costing $6,000...
-
what measures will use for the document in question . Recall that "measures" are quantifiable indicators, or proxies, Measure (independent variable 1) and source? Measure (independent variable 2) and...
-
Ellmann Systems is considering a project that has the following cash flow and cost of capital data. What is the projects NPV? Note that if a project's expected NPV is negative, it should be rejected.
Study smarter with the SolutionInn App