Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems X Special Issue On Database And Expert Systems Applications Lncs 8220

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2013th Edition

3642412203, 978-3642412202

More Books

Students also viewed these Databases questions

Question

1. What is going on? What do you notice?

Answered: 1 week ago