(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**

Answers

Answer 1

Answer:

Follows are the code to this question:

#include <stdio.h>//header file

#include <string.h>//header file

int main()//main method

{

char f_service[100], s_service[100];//defining character array

int total;//defining integer variable

do

{

   total = 0;//assign value in total variable

   printf("Davy's auto shop services\n");//print message

   printf("Oil change -------- $35\n");//print message

   printf("Tire rotation ------ $19\n");//print message

   printf("Car wash ---------- $7\n");//print message

   printf("Car wax ----------- $12\n");//print message

   printf("Enter first service: \n");//print message

   fgets(f_service, 100, stdin);//use get function for input value

   f_service[strlen(f_service) - 1] = '\0';//use length function for calculate total length

   printf("Enter second service: \n");//print message

   fgets(s_service, 100, stdin);//use get function for input value

   s_service[strlen(s_service) - 1] = '\0';//use length function for calculate total length

   printf("\nDavy's auto shop invoice\n\n");//print message

   if(strcmp(f_service, "Oil change") == 0)//defining if block that check first input Service

   {

     printf("Service 1: %s, $%d\n", f_service, 35);//print service name with rate

     total = total+ 35;//calcaulte value in total variable

   }

   else if(strcmp(f_service, "Tire rotation")== 0)

   {

     printf("Service 1: %s, $%d\n", f_service,19); //print service name with rate

     total = total + 19;//calcaulte value in total variable

   }

   else if(strcmp(f_service, "Car wash") == 0)

   {

     printf("Service 1: %s, $%d\n", f_service, 7);//print service name with rate

     total = total + 7;//calcaulte value in total variable

   }

   else if(strcmp(f_service, "Car wax") == 0)

   {

    printf("Service 1: %s, $%d\n", f_service, 12); //print service name with rate

     total = total + 12;//calcaulte value in total variable

   }

   else

   {

     printf("Service 1: Empty\n");//print message

   }

   if(strcmp(s_service, "Oil change") == 0)

   {

     printf("Service 2: %s, $%d\n", s_service, 35);//print service name with rate

     total= total+ 35;//calcaulte value in total variable

   }

   else if(strcmp(s_service, "Tire rotation")== 0)

   {

     printf("Service 2: %s, $%d\n", s_service, 19);//print service name with rate

     total = total + 19;//calcaulte value in total variable    

   }

   else if(strcmp(s_service, "Car wash") == 0)

   {

   printf("Service 2: %s, $%d\n", s_service, 7);//print service name with rate

   total = total + 7;//calcaulte value in total variable

   }

   else if(strcmp(s_service, "Car wax") == 0)

   {

   printf("Service 2: %s, $%d\n", s_service, 12);//print service name with rate

   total= total+ 12;//calcaulte value in total variable

   }

   else if(strcmp(s_service, " ") == 0)

   {

   printf("Service 2: No service\n");//print service name with rate

   }

   else

   {

   printf("Service 2:No service\n");//print message

   }

   printf("Total: $%d\n", total);//print total value

   }

   while(strcmp(s_service, "_"));//defining while that compare second service value

return 0;

}

Output:

Please find the attached file.

Explanation:

In the given C language code, the two-character array "f_service and s_service" and one integer variable "total" is declared, in which character array is used for user input, and the total is used for calculating value.

In the next step, the do-while loop is used, in which we used multiple conditional statements, that check "first and second" both array input value and add values into the total variable.If the first array doesn't take any input value, it will print an "empty" message. Similarly, in the second array, if it can't take any value, it will print a message "No service", and for the exit from the program, we pass the "underscore (_)" symbol.  
(1) Output A Menu Of Automotive Services And The Corresponding Cost Of Each Service. (2 Pts)Ex:Davy's

Related Questions

Please help!! Thank youu

Answers

Pinky I think?!!????
i think it’s B: first

because if you’re right handed then it’s most likely for your first finger to touch those highlighted areas!

Why is file extension important when naming the file

Answers

Answer:

Extensions are important because they tell your computer what icon to use for the file and what application can open the file

Explanation:  For example, the doc extension tells your computer that the file is a Microsoft Word file.

Name three organic materials that technology turns into products.

Answers

Answer:

Useful forms of energy that can be produced include

heat

steam

electricity

renewable natural gas

and fuels.

jordan needs to create an employee handbook. the handbook will have several written pages with bold text, plain text, and numbered lists. jordan should use a (n)
A) Spreadsheet
b) database
c) e-mail
d) word processor

Answers

D

is most likely the correct answer

1. What is JavaScript?
2. Who designed the Apple 1 Computer?
3. Who founded Apple?

Help me, it would be a pleasure if you could.

Answers

Answer:

1. JavaScript is a dynamic computer language used to primarily code and create system functions.

2. The people who designed the Apple 1 Computer were

Steve WozniakSteve Jobs

3. The founder of Apple was Steve Jobs. He passed away from pancreatic cancer.

Hope this helps you!

Which statements describe the use of sound in presentations?

Sound cannot be used in presentation programs.
Sound can distract the audience when it is overused.
Sound can only be used with transitions.
Sound can only be used with animations.
Sound can be used with both animations and transitions.

Answers

Answer:

b and e

Explanation:

The statements that best describe the use of sounds in the presentation are as follows:

Sound can distract the audience when it is overused.Sound can be used with both animations and transitions.

Thus, the correct options for this question are B and E.

What do you mean by Presentation?

The Presentation may be defined as the type of process through which an individual who is known as the speaker conveys information on a particular topic to the number of people known as the audience.

As normally sound makes the presentation more attractive and understandable but the excess sound in the presentation makes the mood of the audience saturated and finally distracts. A standard level of sound must be required in both animations and transitions to make the presentation more influencing one.

Therefore, the correct options for this question are B and E.

To learn more about the Advantages of presentations, refer to the link:

https://brainly.com/question/11972945

#SPJ2

HELP HELP BRAINLIEST A student learns that a classmate is being cyberbullied. He wonders if it is a serious situation and how it is affecting his classmate.

What areas of his classmate’s life may be impacted by cyberbullying? Check all that apply.

physical health
recent memories
school performance
emotional health
athletic ability

Answers

Answer:

physical health

school performance

emotional health

Does anyone know how to use a while loop and ask a user to input positive integers until the user enters 0 and print the sum so far after each input, then print final sum at the end in edhesive?

Answers

In python:

total = 0

while True:

   num = int(input("Enter a number: "))

   if num == 0:

       break

   total += num

print(f"The final sum is {total}")

Jeff took a picture of his dog that he wants to include in his paper titled “Rescue Dogs of Florida.” What tab should Jeff choose to place the picture in his document?

Home
Insert
Layout
View

Answers

Insert use the insert tab then click pictures and insert pic

Answer:

insert

Explanation:

HOW MEANY PEOPLE PLAY AMONG US

Answers

Answer:

up to 1.5 million people are playing Amoung Us

Explanation:

Answer: I Play Among Us But this is a website for learning and questions so please ask that somewhere else. Thank You Have A Nice Day!

Explanation:

Which term refers to a fact that naturally occurs in the universe?
A.
scientific law
B.
scientific inquiry
C.
conclusion
D.
hypothesis

Answers

Answer: a scientific law

Explanation:

It’s A.Scientific law

Which type of document would be best created in Word? HELLP!!!!
Spreadsheet

Resume

Presentation

Animation

Answers

Answer:

presentation

Explanation:

because maths

Answer:

I think spreadsheet

Explanation:

Please correct me if I am wrong!

Mary is writing an article about the animal kingdom. She wants to place an image below the text. Which menu should Mary choose for this purpose?

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This question is about how to insert caption or text below the image. Marry have to follow the following steps:

Open the article in MS WordSelect the image to insert the text below it.Then go to the References menuUnder the reference group, click on the insert caption buttona popup, windows will get open, fill in it the required detail.

If you want to insert the image below the text, then you have to follow the following option.

Select the text where you want to insert the imageGo to insert menUnder the Illustration group of menu, click on pictures button, or online pictures button and select the image and click ok.

Mary needs to choose the REFERENCE menu in order to place the text in a desired fashion around the image.

Why does a computer need primary and secondary memory ?

Answers

Primary memory are generally faster but costlier
And secondary memory are slower but cheaper
You need a combination of both
So need most frequently used apps in your primary memory and least ones like videos photos images in secondary

Jennifer works as a programmer. She has fixed certain bits of code in a program while developing it. She has purposely left specific code in the program so she can access the program later and obtain confidential information. Which programming threat has she created?
A. logic bomb
B. trap door
C. Trojan horse
D. virus

Answers

Answer:

B. trap door

Explanation:

It's also referred to as the back door

Which of the following BEST describes the differences between sequential and event-driven programming?

Answers

Answer:

In sequential programming, commands run in the order they are written. In event-driven programming, some commands run in response to user interactions or other events.

Explanation:

Event-driven program : A program designed to run blocks of code or functions in response to specified events.

Sequential programming: The order that commands are executed by a computer, allows us to carry out tasks that have multiple steps. In programming, sequence is a basic algorithm: A set of logical steps carried out in order.

The missing options are;

A) In sequential programming commands run one at a time. In event-driven programming all commands run at the same time.

B) In sequential programming commands run faster than in event-driven programming.

C) In sequential programming each command is run many times in sequence. In event-driven programming all commands are run a single time as an event.

D) In sequential programming commands run in the order they are written. In event-driven programming some commands run in response to user interactions or other events.

This question is about sequential programming and event-driven programming.

Option D is correct.

To answer this question, we need to first of all define what the two terminologies in computer programming are;

Event-driven programming; This is a programming pattern whereby the program flow is determined by a sequence of events that arise from activities/interaction of the user or the system.

Sequential programming: This is a programming pattern whereby the program flow is determined by the sequence in which it was written.

Looking at the given options, the only one that fits perfectly into the description I have given above about sequential and event-driven programming is Option D.

Read more at; brainly.com/question/17970226

Film directors generally earn more money than theater directors. True False

Answers

Yes, it’s true they earn more. Film directors earn between $250,000 to 2 million per project. New directors typically earn between $250,000 to $500,000 per film, while film directors earn about $1 million per movie.
Theatre directors in the UK earn on average £10,759 a year from their craft- well below the £27,000 take home annual salary national average- with some directing jobs paying less than £1 an hour, new research has revealed.

Answer:

Yes, it's true on edge 2022.

What is an enterprise system

Answers

Answer:

Explanation:

Enterprise system is a cross- functional information system that provides organization-wide coordination and integration of the key business processes. Enterprise system helps in planning the resources of an organization.

some critics aruge that excessive media consumption can encourage______.
A. deeper reading
B. taking breaks from using digital media
C an unhealthy lifestyle
D. healthy friendships

Answers

c. an unhealthy lifestyle

In most presentation software, custom animations are added from the _____.

Slide pane
Normal view
Task pane
Insert menu

Answers

Answer:

Explanation:

the answer is.....normal view

Answer:

Task pane is the answer

Explanation:

Which of the following actions is most likely to raise legal or ethical concerns?
A
An analyst writes a program that scans through a database of open-access scientific journals and creates a document with links to articles written on a particular topic.
Sut
B
A computer scientist adds several features to an open-source software program that was designed by another individual.
с
A musician creates a song using samples of a copyrighted work and then uses a Creative Commons license to publish the song.
D
A public interest group alerts people to a scam that involves charging them for a program that is available for free under a Creative Commons license
Q

Answers

Answer:

C. A musician creates a song using samples of a work and then uses a Creative Commons license to publish the song.

Explanation:

Copyright law can be defined as a set of formal rules granted by a government to protect an intellectual property by giving the owner an exclusive right to use while preventing any unauthorized access, use or duplication by others.

A copyright can be defined as an exclusive legal right granted to the owner of a creative work (intellectual property) to perform, print, record, and publish his or her work. Also, the owner is granted the sole right to authorize any other person to use the creative work. The copyright law which protects the sharing and downloading rights of music is known as the Digital Millennium Copyright Act (DMCA).

Furthermore, an intellectual property can be defined as an intangible creation of the human mind, ideas, thoughts or intelligence.

In this scenario, a musician creates a song using samples of a copyrighted work and then uses a Creative Commons license to publish the song. This is an action that is most likely to raise legal or ethical concerns because he didn't get a license from the other musicians who he used their work.

A Creative Commons license is simply a public copyright license that allows for the free distribution of a copyright protected material and it can only be used by the intellectual property owner.

5 steps in cleaning and sanitizing smokehouse​

Answers

Answer:

Scrape or remove food bits from the surface. Wash the surface. Rinse the surface. Sanitize the surface. Allow the surface to air-dry.

Explanation: These are steps for cleaning and sanitizing.

The steps in cleaning and sanitizing smokehouse include:

Scrape or remove food bits from the surface.Wash the surface.Rinse the surface.Sanitize the surface.Allow the surface to air-dry.

Sanitization simply refers to the disinfection and cleaning of an area. This is vital on order to prevent humans from being infected or contaminated.

When sanitizing a smokehouse, it's essential to remove food bits from the surface, wash the surface. rinse the surface, sanitize the surface and then allow the surface to air-dry.

Read related link on:

https://brainly.com/question/18996117

critics of media consumption
A. do not believe we should do away with media altogether
B. agree that our society would be better off without media
C. argues that all media is a deterrent to the growth of society
D. do not want obese children to use technology and media

Answers

Answer:

b

Explanation:

make me brainlyest plzz

sorry if i got it wrong

Answer:

b i think

Explanation:CHECK IT FIRST

Use the drop-down menus to complete statements about importance and sensitivity levels. The Low Importance level is rarely used, and the High Importance level should be used . The sensitivity levels are personal, private, and . Sensitivity levels are basically only , as they appear on the Info Bar in the message.

Answers

Answer:

first blank- cautiously

second blank- confidential

third blank- informational

Explanation:

i got it correct on edge 2020

The Low Importance level is rarely used, and the High Importance level should be used cautiously.

What is cybersecurity?

Cybersecurity can be defined as a preventive practice that involves the protection of computers, networks, software programs, servers and data (information) from unauthorized access, potential theft, attack, or damage, especially by using a body of technology, frameworks, processes and network engineers.

In Cybersecurity, the use of the various security levels include:

The sensitivity levels are personal, private, and confidential. Sensitivity levels are basically only informational, as they appear on the Info Bar in the message.

Read more on Cybersecurity here: https://brainly.com/question/14286078

#SPJ2

what is marc railberts goal for the robots his company (Boston Dynamics) builds?

Answers

Answer:

. We wanted to build a robot that could go where people go

Explanation:

Consider the following numeric values.

Binary 1011
Binary 1101
Decimal 5
Decimal 12
Which of the following lists the values in order from least to greatest?

Answers

Answer:

d 5, b 1011, d 12, b 1101

Explanation:

If you convert the binary, 1011 is 11 and 1011 is 13.

The ordered list of values from least to greatest is Decimal 5, Binary 1011, Decimal 12, and Binary 1101.

Binary refers to the numbers consisting of only "0" (zero) and "1" (one), while decimals are digits from "0" to "9".

In computation, binary numbers are used in order to store any type of data, these numbers consist of binary digits (bits).

A sequence of binary numbers must be read in a digit-by-digit manner, conversely to decimal numbers, which are read by ten, hundred, etc.

The decimal numbers can be estimated as the sum of the binary numbers times their power of 2 (2n).

In conclusion, the ordered list of values from least to greatest is Decimal 5, Binary 1011, Decimal 12, and Binary 1101.

Learn more in:

https://brainly.com/question/16612919

people with healthy media diets:
A.do not have problems with addictions, obesity, or other health issues
B. make good choices about what media to use and when not to use them
C. do not eat while engaging in media and avoid unnecessary weight gain
D. choose to leave media and technology out of their lives entirely

Answers

Answer:

b

Explanation:

HERES A RIDDLE!!

What is more useful when it’s broken??

Answers

Answer:

an egg

Explanation:

Which of the following may be purposes of packaging?
O Help the product stand out from the competition
O Make the product easier to use
O Protect the product and the people who buy it
O All of the above

Answers

JakauehahshvasuwvevaiN

Answer:

D

Explanation:

who presented pakistan resolution​

Answers

Search Results
Featured snippet from the web
Fazlul Huq, the Prime Minister of Bengal, was a formal political statement adopted by the All-India Muslim League on the occasion of its three-day general session in Lahore on 22–24 March 1940.

I got it from google!
Other Questions
What does boycott mean? When calling a support line to request help with a computer problem, it is best toprovide as many details and information as possible.keep information to a minimum to avoid confusion.avoid attempting to name or identify the problem.avoid first attempting simple fixes to the problem 4. Tanya has the equation x - 2 = 2x - 4. She states that adding x + 2 to both sides will keep thesolution set the same because of the additive property of equality. Diego states that you couldalso multiply both sides of Tanya's equation by x+2 and have the same solution set because ofthe multiplicative property of equality.a) is tanyas statement correct?b)is diegos statement correct ? If 2 inches on a map represents 25 miles, how many inches would represent 225 miles? Salvadores Swing SetExplain how the author shapes and refines the development of the text's theme. Be sure to use two details from the text. Which statements are part of a biogeochemical cycle?Select all answers that are correct. .Carbon movements among the earth system spheres.Energy movements among the earth system spheres.Phosphorus movements among the earth system spheres.Oxygen movements among the earth system spheres. A softball is thrown with 145 Joules of kinetic energy. If the ball is moving at 20.0 m/s, what is the mass of the ball in kg? 50 POINTS PLS HELP WHAT THE CONJUCTION FOR THIS VERB Mara y yo ___ (pensar)PLEASE HELP NOWW ASAP What is the capital of Japan? Question 3 of 10What quality of writing are you expected to produce in a timed essayassignment or exam?A. Revised and polishedB. First draft qualityC. Just basic notesD. CreativeE. Outline format CAN ANYONE HELP KE WITH THESE TWO QUESTIONS AND SOLVE I WILL GIVE BRANIEST Find the volume of the cylinder. Find the volume of a cylinder with the same radius and double the height. For each diagram below, write and solve an equation. What is the measure of x?Angles are not necessarily drawn to scale. Definition: restrict someone's right to voteTerm: Can Anyone Help Me ??!? 50 is what percent of 275 KT is tangent to circle L and the central angle mZTLK = 55. What is mZLKT? K T L Yolande's mother is looking for her car keys. She finally sees them on the kitchen table. What does she says when she finds them? Check all possible answers.A. Il y a mes clefs sur la table.B. Voici mes clefs, sur la table!C. Voil mes clefs, sur la table! after a 20% increase, there was 48 marbles in the bag. how many marbles was in the bag originally? As a result of the Missouri Compromise.Missouri was required to free its slaves when they reached full adulthood.slavery was outlawed in all states.there were more slave than free states in the Union.slavery was banned north of 36 30 in the Louisiana Purchase territory.