Question: 1. (30 pts) Write the steps for the following task: Write a program that takes a number in hours (e.g., 1.33) from the user, converts
1. (30 pts) Write the steps for the following task: Write a program that takes a number in hours (e.g., 1.33) from the user, converts it into minutes, and output it in minutes. (See the Sum Example in Lecture 03 as an example.) (30 pts) Write the steps for the following task: Write a program that takes two numbers from the user and outputs their product. 2. 3. (20 pts) Do an Internet search on keyword "Proofs of Program Correctness" and answer the following questions: a. What is the simplest technique generally accepted to prove program correctness empirically? b. In the absence of incorrect behavior in a, can we conclude that the program is correct? Why? 4. (10 pts) Declare a variable of type char and initialize it to the letter f using a single command. (10 pts) A program is used to convert from hours to minutes. Write the code for storing the conversion factor 60 as a constant that cannot be changed. 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
