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...
-
What laws provide worker benefits?
-
True or False: Based on the principles of engineering economic analysis, you should bet on the horse with the lowest odds to win, because risk and returns tend to be positively correlated.
-
Problem 15, part f in Chapter 3 asks you to construct a five-year financial projection for Aquatic Supplies beginning in 2018. Based on your forecast or the suggested answer available through...
-
Critically discuss some ethical issues that Tom Ford might encounter in advertising its products to consumers. Your response should describe how these ethical issues might be perceived by various...
-
Income statement and balance sheet data for The Athletic Attic are provided below. Required: 1. Calculate the following risk ratios for 2021 and 2022: a. Receivables turnover ratio. b. Inventory...
-
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.
-
Show by substitution that Ψ 100 (r, θ, ) = 1/Ï(1/a 0 ) 3/2 e -r/a 0 is a solution of What is the eigenvalue for total energy? Use the relation a 0 = ε 0 h 2...
-
If $1.00 may be exchanged for 24.44 Mexican pesos in the spot market, and the annual riskless rate in the United States is 1.20% and the annual riskless rate in Mexico is 4.00%, what is the 90-day...
-
Define how stocks, bonds and investments play a role in the financial future of a for profit and non profit organization? How does the overall market play into this?
-
How does Hume define a "miracle"? What arguments does he offer against the occurrence of miracles and against believing any account ever given of a miracle? How would you critique his argument...
-
A company bought $450 of supplies and recorded these on the balance sheet on January 1. During the month of January the company used $100 of these supplies in the business? What amount should be...
-
What are the cash needs of Amazon? What is the value of the Amazon's cash and cash equivalents? What type of receivables does Amazon have?
-
Discuss the process of translating the financial statements of Opencut Inc. forconsolidation with Foreign Ltd.
-
Read Case Study Google: Dont Be Evil Unless and answer the following: Given its mission of providing information to the world, should Google censor searches in China?
-
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...
-
Betty purchased a 364-day $50,000 T-bill on issue date for $48,873.86. After holding it for 215 days, she sold it to a buyer to yield 1.57%. a) What was the original yield of the bill? b) For what...
-
5. Consider an auditorium with an echo problem. An initial acoustic impulse will be followed by attenuated versions of the sound at regularly spaced intervals. Hence, the acoustic behavior of the...
-
Martin Enterprises needs someone to supply it with 180,000 cartons of machine screws per year to support its manufacturing needs over the next five years, and you've decided to bid on the contract....
Study smarter with the SolutionInn App