116849

PROGRAMMING SKILLS (UNIT 3): TEMPERATURE CONVERSION

Level: Level Two

In successfully completing this unit, the learner will haveEvidence needed

shown knowledge of

1. the importance of using meaningful variable and subroutine names throughout their code

Student completed work

demonstrated the ability to

2. use either C#, Python or VB.NET to write a computer program to complete this unit

Student completed work

3. write an appropriately named subroutine that takes a single real number parameter holding the temperature in Fahrenheit and returns the result of the formula celsius = 5 / 9 * (fahrenheit - 32)

Student completed work

4. write an appropriately named subroutine that takes a single real number parameter holding the temperature in Celsius and returns the result of the formula fahrenheit = (celsius * 9 / 5) + 32

Student completed work

5. write a subroutine called 'displayMenu' that has no parameters and displays three menu options, ie '1) Convert from Celsius to Fahrenheit', '2) Convert from Fahrenheit to Celsius' and '3) Exit'

Student completed work

6. use iteration to keep the program running until option 3 has been chosen from the menu

Student completed work

7. display the message 'Invalid option. Try again.' if any value other than 1, 2 or 3 is entered at the menu

Student completed work

8. call the appropriate subroutine to convert the temperature that has been entered by the user when option 1 is chosen

Student completed work

9. call the appropriate subroutine to convert the temperature that has been entered by the user when option 2 is chosen

Student completed work

10. display the result of the conversion using a suitable message.

Student completed work

Approved 25 Jan 2022

Want more information or got a question?

Want more information or got a question?

If you're interested in registering or would like information on how to expand UAS within your school or college, please complete this online form

Contact us

Call

01423 534 235

8am – 4pm Monday to Friday

Join the conversation

Updates and support 9:30am-3:30pm, Monday-Friday.

Follow us on Facebook Follow us on Instagram Follow us on LinkedIn Follow us on X