Write a program that asks user to input the number of miles

Assignment Help Programming Languages
Reference no: EM131225324

Engineering programming

I need this now please accurate answers and must be high rated

Problem #1

Write a program that asks the user to input the number of miles and convert the miles to kilometers, and then print the output to the screen. (Recall that 1 mi = 1.6093440 km.)
Follow the Engineering problem solving methodology.

- Problem Statement
- Input/Output
- Solve by hand
- Create pseudo-code Algorithm and C++ code in Visual Studio
- Test Code with some data and verify

Problem #2

Create a flow-chart of the Algorithm in the previous problem

Problem #3

Find the Value of h in each of the following problems (Show work when necessary):

Given a = 3.5 b=1.5 c=9 d=6

a) h = d < c
b) h = a >b// b >c
c) h = d - a > b && a * b < d

Problem #4

Draw a flowchart for the following statements:

a) if (b <= 4)

y = 2;

else

{

y = 4 + x;

x++;

}

b) if (y < 5)

z = 0;
else if (y < 10)
z = 1;
else
z = 2;

Reference no: EM131225324

Questions Cloud

Determine the maximum possible input resistance : Determine the maximum possible input resistance and minimum possible input resistance to the feedback circuit.
What steps are needed to select a brand and model : How will you describe the rationale for your choices and the benefits to the students, teachers, and school?
Determine the type of feedback configuration : Determine the type of feedback configuration that should be used in a design to achieve the  low input resistance and low output resistance.
Calculate the total cost function for location : a) Calculate the total cost function for each location? b) Plot the total cost functions on the same graph? c) On the graph, identify the range of output for which each location has the least cost?
Write a program that asks user to input the number of miles : Write a program that asks the user to input the number of miles and convert the miles to kilometers, and then print the output to the screen.
What should be the size of the order : A large firm expects to require this product for the next 10 years at a rate of at least 140 per year. Fixed ordering cost is $30 and holding costs are based on 18-percent annual interest rate. What should be the size of the order?
Determine the closed loop input resistance : For the current-to-voltage converter circuit in given Figure, the parameters are as described in Problem l2.30. If Ri = 10 k Ω, determine the closed loop input resistance Ri f.
Analyze the effects and applications of various organization : Based on the article, consider the approaches to organizational design. Analyze the effects and applications of the various organizational structures and levels of authority. Given the benefits and motivations mentioned in the article, share an an..
Form of government-number of political parties : Politics: Form of government, number of political parties, stability (i.e., political risk), major political goals of the present administration, and quality of government services/bureaucracy

Reviews

Write a Review

Programming Languages Questions & Answers

  Explain why is a flowchart helpful in developing and

q1. why is a flowchart useful in developing and documenting software? why is the interactive visual logic flowchart

  What is the output of the statement

Given the subsequent array declaration, if the array is stored starting at address 2500, what is the output of the following statement?

  Find the date format is valid or not

Display the date and message that indicates whether it is valid. If it is not valid, also display a message explaining why it is not valid.

  Develop console application utilizes while loop to count

Develop a C++ console application which utilizes a while loop to count, total, and average series of positive integers entered by a user.

  Write program to compute volume flow rate

Write program to compute volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second.

  Create program which lists total points scored

Create program which lists total points scored for each of 30 classrooms. Include invalid input check if a proper room number is not entered.

  Find the maximum and minimum of a list of numbers

Write a prolog program to find the maximum and minimum of a list of numbers.

  Construct a diagram using rationaleto map the arguments

Construct a diagram using Rationaleto map the arguments about a moral claim that you have identified in the article/case study

  Write code for invoking method named sendtwo

Write the code for invoking a method named sendTwo. There are two arguments for this method: a double and an int.

  Describe the most challenging aspect of the assignment

Describe the most challenging aspect of the assignment. Describe the most difficult aspect of the assignment to understand. Provide any suggestions for improving the assignment in the future.

  Program that creates a series of random 2d objects

Create a program (OpenGL, or DirectX) that creates a series of random 2D objects, (or 3D objects that only move in 2D), about 25 is probably good but you may need more or less and has them move around on the screen, they should wrap around the edg..

  Write script in fedora to automate complex system task

Write a script in fedora 10 that will automate a complex system task. The task I have chose is one that will determine the processes that are consuming system resources.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd