subject

(1) output a menu of automotive services and the corresponding cost of each service. (2 pts)ex: davy's auto shop servicesoil change -- $35tire rotation -- $19car wash -- $7car wax -- $12(2) prompt the user for two services. each service type is composed of two strings. (2 pts)ex: select first service: oil changeselect second service: car wax(3) output an invoice for the services selected. output the cost for each service and the total cost. (3 pts)davy's auto shop invoiceservice 1: oil change, $35service 2: car wax, $12total: $47(4) extend the program to allow the user to enter a dash which indicates no service. (3 pts)ex: select first service: tire rotationselect second service: -davy's auto shop invoiceservice 1: tire rotation, $19service 2: no servicetotal: $19**this must be in the c language**

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:00
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
question
Computers and Technology, 24.06.2019 22:10
Function name: poly parameters: int returns: int description: a polynomial of degree n with coefficients a0,a1,a2,a3, . . ,an is the function p(x) = a0+a1x+a2x2+a3 ∗ x3+ . . +an ∗ xn this function can be evaluated at different values of x. for example, if: p(x) = 1+2x+ x2, then p(2) = 1+2 ∗ 2+22 = 9. if p(x) = 1+x2+x4, then p(2) = 21 and p(3) = 91. write a function poly() that takes as input a list of coefficients a0, a1, a2, a3, . . , an of a polynomial p(x) and a value x. the function will return poly(x), which is the value of the polynomial when evaluated at x.
Answers: 3
You know the right answer?
(1) output a menu of automotive services and the corresponding cost of each service. (2 pts)ex: davy...
Questions
question
Mathematics, 05.02.2021 17:40
question
Mathematics, 05.02.2021 17:40
question
Mathematics, 05.02.2021 17:40
Questions on the website: 13722363