A C++ program is requited to calculate the value of distance. in miles. given th
ID: 3636036 • Letter: A
Question
A C++ program is requited to calculate the value of distance. in miles. given this relationship: distance= average times speed For this programming problem, how many outputs are required? h. How many inputs does this problem have? Write an algorithm for converting the input items into output items. Test the algorithm written for Exercise 2e using the following sample data: speed is 55 miles per hour and time is 2.5 hours. How must the algorithm you wrote in Exercise 2ebe modified if the elapsed time is Riven in minutes instead of hours?Explanation / Answer
1)a) For this program only one output is required 2)a)Inputs are speed and time 3) Algorithm : 1)start 2)Accept the input for speed and time 3)Read the input 4)calculate distance = sped * time 5)display the distance 6)end 4)#include void main() { int s,t,d; couts>>t; d=s*t; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.