subject

#include using namespace std;class RunnerInfo { public: void SetTime(int timeRunSecs); // Time run in seconds void SetDist(double distRunMiles); // Distance run in miles double GetSpeedMph(); // Speed in miles/hour __(A)__ int timeRun; double distRun;};void __(B)__::SetTime(int timeRunSecs) { timeRun = timeRunSecs; // timeRun refers to data member}void __(C)__SetDist(double distRunMiles) { distRun = distRunMiles;}double RunnerInfo::GetSpeedMph() const { return distRun / (timeRun / 3600.0); // miles / (secs / (hrs / 3600 secs))}int main() { RunnerInfo runner1; // User-created object of class type RunnerInfo RunnerInfo runner2; // A second object runner1.SetTime(360); runner1.SetDist(1.2); runner2.SetTime(200); runner2.SetDist(0.5); cout << "Runner1's speed in MPH: " << runner1.__(D)__ << endl; cout << "Runner2's speed in MPH: " << __(E)__ << endl; return 0;}Complete the missing parts of the figure above.(b) -> Ru?(c) -> Ru?::(d) -> Get?()(e) -> runner2.?

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:30, nourmaali
4.11 painting a wall (1) prompt the user to input integers for a wall's height and width. calculate and output the wall's area (integer). note that in this case there is a new line after each prompt. (submit for 1 point). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet (2) extend to also calculate and output the amount of paint in gallons needed to paint the wall (floating point). assume a gallon of paint covers 350 square feet. store this value in a variable. output the amount of paint needed using the %f conversion specifier. (submit for 2 points, so 3 points total). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet paint needed: 0.471429 gallons (3) extend to also calculate and output the number of 1 gallon cans needed to paint the wall. hint: use a math function to round up to the nearest gallon. (submit for 2 points, so 5 points total). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet paint needed: 0.471429 gallons
Answers: 3
image
Computers and Technology, 22.06.2019 20:00, bartlettcs9817
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
image
Computers and Technology, 23.06.2019 01:50, akornegay2
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, maryanapritchak1829
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
You know the right answer?
#include using namespace std;class RunnerInfo { public: void SetTime(int timeRunSecs); // Time run i...

Questions in other subjects:

Konu
Mathematics, 24.04.2021 07:00
Konu
Mathematics, 24.04.2021 07:00