1. Write a program to convert a user-supplied temperature from Fahrenheit to Celsius using the following formula. If C represents a temperature in degrees Celsius, and F represents a temperature in...


1. Write a program to convert a user-supplied temperature from Fahrenheit to Celsius using the following formula. If C represents a temperature in degrees Celsius, and F represents a temperature in degrees Fahrenheit, then C = 5 x (F – 32) / 9.


2. In a contest, a ticket number wins a prize if it is a multiple of 6. Write a program that reads a ticket number and indicates whether it is a winner. The program’s output could appear as follows:


Sample Output 1


Is your ticket a winner?


Enter your ticket number: 12


The ticket number 12 is a winner if the following value is zero: 0


Sample Output 2


Is your ticket a winner?


Enter your ticket number: 37


The ticket number 37 is a winner if the following value is zero: 1



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here