subject

Users calculate their car miles per gallon. write a program to allow a user to enter the number of miles driven and the number of gallons of gas used. the output should be the miles per gallon. use a while (post-test) loop to allow users to enter as many sets of data as desired.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
Write a full class definition for a class named player , and containing the following members: a data member name of type string .a data member score of type int .a member function called setname that accepts a parameter and assigns it to name . the function returns no value.a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.a member function called getname that accepts no parameters and returns the value of name .a member function called getscore that accepts no parameters and returns the value of score .this is what i have, aparently this is wrong: class player{private: string name; int score; public: void player: : setname (string n){name =n; }void player: : setscore (int s){score = s; }string player: : getname (){return name; }int player: : getscore (){return score; }};
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
You know the right answer?
Users calculate their car miles per gallon. write a program to allow a user to enter the number of m...
Questions
question
Mathematics, 23.09.2021 02:40
question
Mathematics, 23.09.2021 02:40
question
Mathematics, 23.09.2021 02:40
question
Mathematics, 23.09.2021 02:40
question
Mathematics, 23.09.2021 02:40
Questions on the website: 13722367