Question: HW #2 Solution Pdf file only, with heading: HW #2 Your first Name, Your last Name Section No, Your MSU ID Due: 11:00 pm, Saturday
HW #2 Solution Pdf file only, with heading: HW #2 Your first Name, Your last Name Section No, Your MSU ID Due: 11:00 pm, Saturday Jan. 18, 2019 at Google Classroom 1. (30 pts) Write the steps for the following task: Write a program that takes a number in minutes (e.g., 85.5) from the user, converts it into hours (e.g., 1.425),, and output it in hours. (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 2. the user and outputs their difference: the first number subtracted by the second number. 3. (20 pts) Do an Internet search for a wikipedia page on keyword "flowchat" and answer the following questions: a. What is the definition of flowchat on the wikipedia web page? b. How can you convert a flowchat into the steps in your program? The following problems are added after the Wednesday class: (5 pts) Declare a variable myNum of type int and initialize it to value 5 using a single command. 4. 5. (5 pts) Declare two variables myVal and yourVal, respectively, of type float and initialize them to value 2.33 and 2.45 using a single command. (5 pts) Declare a variable xlabel of type char and initialize it to the letter c using a single 6. command. 7. (5 pts) A program is used to convert from minutes to seconds. Write the directive for defining the conversion factor called MINUTE_TO_SECOND_FACTOR as a constant that cannot be changed and define it as a string 60
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
