Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CT1113 Homework 1 Problems Part A: kglbs Specification Write PSEUDOCODE for a pr

ID: 3707922 • Letter: C

Question

CT1113 Homework 1 Problems Part A: kglbs Specification Write PSEUDOCODE for a program that converts kg to lbs, and lbs to kg. one pound-0453592 klograms, so kg- 0.453592 x Ibs 0.453592 Requirements: The pseudocode should look much like the pseudocode we have done in class The flename for the script should gbs pcode oxx docx or "kg bs pcode oox.txt where oox are your initials How the program is meant to look once written: What is the mass in kg? The mass in lbs is 19.8416 What is the mass in ibs? 220 The mass in kg is 99.7903 See the next page for part B MacBook Air

Explanation / Answer

start

output "What is the mass in kg?"

input kgs

set lbs = kgs / 0.453592

output "The mass in lbs is "

output lbs


output "What is the mass in lbs?"

input Lb

set kilos = Lb * 0.453592

output "The mass in kg is "

output kilos

end

Without the prompting/output messages, the pseudocode will be:


start

input kgs

set lbs = kgs / 0.453592

output lbs


input Lb

set kilos = Lb * 0.453592

output kilos

end

b)

start


output "What is the temperature in fahrenheit?"

input fahren

set centigrade = (fahren-32) / 1.8

output "The temperature in celius is "

output centigrade


output "What is the temperature in celsius?"

input celsius

set fahrenheits = (celsius*1.8) + 32

output "The temperature in fahrenheit is "

output fahrenheits


end

Without the prompting/output messages, the pseudocode will be:


start


input fahren

set centigrade = (fahren-32) / 1.8

output centigrade

input celsius

set fahrenheits = (celsius*1.8) + 32

output fahrenheits


end

PLEASE UPVOTE IF THE ANSWER WAS HELPFUL