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: 72% (11 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...
-
Critique the following statements: It would cost us $800,000 to build this system, but we can purchase an equivalent package for $125,000. Therefore, we can save the organization $675,000 by...
-
Identify the types of coverage provided by homeowners insurance.LO1
-
On January 1, Year 6, HD Ltd., a building supply company, JC Ltd., a construction company, and Mr. Saeid, a private investor, signed an agreement to carry out a joint operation under the following...
-
Old MathJax webview ! Required information [The following information applies to the questions displayed below.) Kubin Company's relevant range of production is 17,000 to 26,500 units. When it...
-
How does the balance in Allowance for Doubtful Accounts before adjustment affect the amount of the year-end adjustment under the percentage of sales method? Under the percentage of receivables method?
-
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.
-
On heating, cis-4-hydroxycyclohexanecarboxylic acid forms a lactone but trans-4-hydroxycyclohexanecarboxylic acid does not. Explain.
-
Waverly Company Ltd. currently produces 8,000 units per year of SB 200 (snowboard), which is a component of the company's major products. SB 200 has the following unit cots Direct materials - $35.50...
-
Norton Ltd manufactures a single product, which is sold for $150 per unit. The standard variable costs per unit of the product are: Direct material 4 kilos at $8 per kilo Direct labour 5 hours at $10...
-
QUESTION 4 Murni Selasih Bhd is considering investing in a project that will generate higher returns Currently, the company has two projects with forecasted outcomes under consideration. The possible...
-
ABC plans to sell 60,000 units of product 751 in June, and each of these units requires five sq. ft. of raw material. Additional data is as follows: Product Raw No. 751 Material Actual June 1 11,200...
-
Case: Tom has felt anxious and constantly on edge over the past 3 years. He has few social contacts because of his nervous symptoms. He is married with 3 children and worries about if he is a good...
-
On January 1, 2021, Sanderson Variety Store adopted the dollar-value LIFO retail inventory method. Accounting records provided the following information: Estimate ending inventory using the...
-
Imagine that your best friend knows you are taking a psychology course and wonders what psychology is all about. How would you define psychology for your friend? Write an essay on the discipline of...
-
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...
-
Deacon Company is a merchandising company that is preparing a budget for the three - month period ended June 3 0 th . The following information is available Deacon Company Balance Sheet March 3 1...
-
Mango Company applies overhead based on direct labor costs. For the current year, Mango Company estimated total overhead costs to be $460,000, and direct labor costs to be $230,000. Actual overhead...
-
Which of the following do we expect to be the horizon growth rate for a company (long term growth rate- say 30-50 years)? A) Inflation B) Industry Average C) Zero D) Market Beta
Study smarter with the SolutionInn App