Enter desired auto service: oil change You entered: Oil change (2) Output the price of the requested service. (4 pts) Ex: Enter desired auto service: oil change You entered: Oil change Cost of oil change: $35 The program should support the following services (all integers): • Oil change --$35 • Tire rotation - $19 • Car wash -S7 If the user enters a service that is not listed above, then output the following error message
Q: A movie in a local theater is in great demand. To help a local charity, the theater owner has…
A: PROGRAM STRUCTURE: Include the required header files for the program code: Header file iostream is…
Q: Factorial) The factorial of a nonnegative integer n is written n! (pronounced “n factorial”) and is…
A: C++ code: #include <iostream>using namespace std; int factorial( int n){ int i = 1, final = 1;…
Q: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as…
A: Required:
Q: A mobile phone service has three different data plans for its customers: PLAN A: For $19.99…
A: Note: - Since the programming language is not mentioned to write the program. The below code is…
Q: 21. GeeBees Clothiers is having a sale. The store manager wants a program that allows a salesclerk…
A: Corrected algorithm: The algorithm calculates the discount by multiplying the original price by…
Q: Question: Party budget planning - complex Prompt the user to enter their current budget and the…
A: You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: 2. Loan Repayment' Write a program that helps a loan company determine the payment schedule for…
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: A particular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each…
A: The complete code in python programming language is below:
Q: Q2: using java please type this code Code Problem 2 Book Sales Barnes and Nobles sells a package…
A:
Q: Guess-the-number-game: Write a program that pays the game of “guess the number” as follows: Your…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: 6. Positions on a chess board are identified by a letter and a number. The letter identifies the…
A: The program is implemented in C++ with object oriented approach. In the program we have first taken…
Q: 3.21 LAB: Smallest number Write a program whose inputs are three integers, and whose output is the…
A: Program Approach: Including essential header files and using namespace for standard I/O. Giving…
Q: 5.9 (Baggage Counter Charges) A baggage counter charges a $0.50 minimum fee to deposit a bag for up…
A: #include<stdio.h> float determineCharge(float hours){ //function to calculate charge per…
Q: (Calculating Credit Limits) Collecting money becomes increasingly difficult during periods of…
A: The above problem will make use of Scanner class defined under java.util package. It I used to take…
Q: 4.20 LAB: Warm up: Automobile service cost (1) Prompt the user for an automobile service. Output…
A: In this first of all user get the menu of automobile services then user has to input which service…
Q: (1) Prompt the user for an automobile service. Output the user's input. (1 pt) Ex: Enter desired…
A: Following program could be made using if else-if ladder.I used java language as language is not…
Q: Department Program Maps Student Services Academics Career Department 444 01 Week-7 Test-2 (10%…
A: Explanation of the code is given by the comments in the code itself. NOTE: The file name should be…
Q: Assignment Write a program that calculates the revenue of a trip of a train composed of several…
A: Dear Student, As no programming language is mentioned so, I am coding it in c++. I will also provide…
Q: Grade Point Average- GPA calculator: Write a program that asks the user to enter his letter grade in…
A: //Program to calculate GPA
Q: A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $0.50…
A: Program for the given problem :- #include <stdio.h> float getCharge(float hours){ float…
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: S. A company provides loans to new college graduates based on the following conditions: The…
A: The above question is answered in step 2 :-
Q: Question: Party budget planning - complex Prompt the user to enter their current budget and the…
A: Calculate and print out all the options of meals where the budget is used entirely(where possible)…
Q: Functions Exercise (Parking Charges) A parking garage charges a $2.00 minimum fee to park for one…
A: Source Code :-#include <iostream>#include <iomanip> using namespace std; /** * Creating…
Q: Morgan’s Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6…
A: import java.util.Scanner;class Test155 { public static void main(String args[]) { Scanner sc = new…
Q: Medication dosage by weight A machine administers medication dosage based on weight. Write an…
A: According to the question given:- we have to create program for Medication dosage by weight For that…
Q: 12: guess.cpp) Write a program that plays a guessing game with the user. The user should pick a…
A: Code : #include <iostream> using namespace std; int main() { /* Welcome the user and…
Q: 3.8: Software Sales A software company sells a package that retails for $99. Quantity discounts are…
A: Since the Programming language is not mentioned in the question, we will answer this question in…
Q: Complete the following program When a machine reads blood pressure from a human body it displays two…
A: C++ pass by reference: Pass by reference is the type of calling the function with the address of…
Q: Linear Program Exercise You need to write a program that solves the following the real-world…
A: We need to solve the given optimization problem using scipy in Python.
Q: (Parkıng Charges) A parking garage charges a $20.00 minimum fee to park for up to three 6.12 hours.…
A: 1) Below is C++ Program to calculate and display the parking charges of three customers who parked…
Q: Your program will prompt the user for the following information: current population number of…
A: 1) Below is python program to prompt the user for population, birth death and years to predict…
Q: C++ program Vs Coding please!! General Crates, Inc. builds custom-designed wooden crates.…
A: According to the information given:- We have to write code in C++ for General Crates, Inc. builds…
Q: Answer this question Write a program that calculates and displays a person’s body mass index…
A: Here language is not mention so we C language to fulfill the question requirement:…
Q: C programming language *include comments Inside the main function write code that estimates the…
A: The given problem is related to programming where the code is to be created in C language. The user…
Q: rite a program to help Buddy (the sheepdog) calculate the average age of all his sheep. The program…
A: #include <iostream>#include <iomanip>#include <string.h>using namespace std; int…
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: Given: We are given a problem where we have to design a cookie calorie counter. We are given total…
Q: How do you write the income tax calculator in python
A: Algorithm: Start Read amount If amount is valid, print 0.04*amount Else print error message and…
Q: Question 7
A: Following is the C++ program and its approach is given below: Declare necessary header files.…
Q: (Algebra: solve quadratic equations) The two roots of a quadratic equation ax + bx + c = 0 can be…
A: read a , b and c from user. pass value of a,b and c to function RootFind. check if a==0 display…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: In the computer programming, the concepts of the language that can be organized and managed as the…
Q: C Sharp case Problem 2-1 In Chapter 1, you created two programs to display the motto for the…
A: C# Program is given below - This program takes input from the user. The input is not validated as…
Q: enger. The user inputs the ticket type (business/economy), as well as the of the passenger…
A: Q.6 Form1.html <html><body> <form action="calculate.php" method="POST"> Tiket…
Q: Transient PopulationPopulations are affected by the birth and death rate, as well as the number of…
A: Program:#include <iostream>using namespace std;double population(double P, double B, double D,…
Q: KEMBOJA Hospital provides top-notched medical care with comfortable rooms. The following are the…
A: Note : as per company guidelines we are supposed to answer only first 3-sub parts . please repost…
Q: (Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to three hours and an…
A: double calculateCharges(double hours) { double charges = 2.00; if(hours > 3) { charges +=…
Q: 3. The formula for determining compound interest is: A represents the amount to earn; P is the…
A: According to bartleby guidelines we need to answer only one question so i have answered first…
Q: The monthly payment for a givenloan pays the principal and the interest. The monthly interest is…
A: Program code: //import the required packages import java.util.Scanner; //define a class public…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Activities at Lake LazyDays As activity directory at Lake LazyDays Resort, it is your job to suggest appropriate activities to guests based on the weather: temp >= 80: swimming 60 <= temp < 80: tennis 40 <= temp < 60: golf skiing temp < 40: Write a program that prompts the user for a temperature, then prints out the activity appropriate for that temperature. Use a cascading if, and be sure that your conditions are no more complex than necessary. 1. 2. Modify your program so that if the temperature is greater than 95 or less than 20, it prints "Visit our shops!". (Hint: Use a boolean operator in your condition.) For other temperatures print the activity as before.def main(): monthlySales = getSales() printbonus=print_bonus(storeAmount,empAmount) #This function gets the monthly salesdef getSales(): monthlySales = float(input('Enter the monthly sales $')) monthlySales = getSales() #call to get sales salesIncrease = getIncrease(monthlySales) return monthlySales #This function gets the percent of increase in salesdef getIncrease(monthlySales): storeAmount = storeBonus(monthlySales) salesIncrease = float(input('Enter percent of sales increase: ')) salesIncrease = float(salesIncrease) salesIncrease = salesIncrease / 100 return salesIncrease #This function determines the storeAmount bonusdef storeBonus(monthlySales): if monthlySales >= 110000: storeAmount = 6000 elif monthlySales >= 100000: storeAmount = 5000 elif monthlySales >= 90000: storeAmount = 4000 elif monthlySales >=80000: storeAmount = 3000 else: storeAmount = 0 return storeAmount #This function…Question Using Java programming language write a program to manage a hotel with 24 rooms;10 rooms are Executive, with price Gh ₵ 2500.00 per night,7 rooms are Chalets, with amounts Gh ₵ 1500.00 per night7 rooms are Ordinary, with amount Gh ₵ 500.00 per night The program should allow customers to book for rooms for a number of nights, and update the number of empty rooms available for each category when a customer has paid fully and has checked-in; also update the number of empty rooms available when customer checks-out.Customers should make bookings with their first names, telephone number A customer should be prompted to know if a room is booked (meaning a another customer has booked it but has not paid fully, or has not checked-in) A customer should be prompted to know if a room is occupied (meaning a booked room has been fully paid for, or the customer has checked-in) A customer should be prompted to know if a room is available (meaning a room has neither been booked nor…
- Mobile Service ProviderA mobile phone service provider has three different subscription packages for itscustomers:Package A: For $39.99 per month 450 minutes are provided. Additional minutes are$0.45 per minute.Package B: For $59.99 per month 900 minutes are provided. Additional minutes are$0.40 per minute.Package C: For $69.99 per month unlimited minutes provided.Write a program that calculates a customer’s monthly bill. It should ask which packagethe customer has purchased and how many minutes were used. It should then displaythe total amount due.Input Validation: Be sure the user only selects package A, B, or C.Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.JAVA CODE PLEASE Functions With No Parameters and Return Values Practice ll by CodeChum Admin Create a program that has a global integer variable assigned to a value of 1. Then, create a new function named increment that increments the global variable. In the main function, if the current value of the global variable is divisible by 3, print “Cody!”. Otherwise, print the value of that global variable. Repeatedly call the increment function until the value of the global variable is greater than 15. Output Multiple lines containing a string or an integer 1 2 Cody! 4 5 Cody! 7 8 Cody! 10 11 Cody! 13 14 Cody! Score:
- Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…Prompt Problem: A company wants a program that will calculate the weekly paycheck for an employee based on how many hours they worked. For this company, an employee earns $20 an hour for the first 40 hours that they work. The employee earns overtime, $30 an hour, for each hour they work above 40 hours. Example: If an employee works 60 hours in a week, they would earn $20/hr for the first 40 hours. Then they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr 40hrs)+($30/hr 20 hrs) $800+ $600 = $1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee's weekly paycheck. - Write pseudocode to design a programming solution by outlining a series of steps and using appropriate indentation and keywords. As you write your pseudocode, be sure to consider the following: What input does the computer need? What steps does the program need to follow to process the input? What output should…
- Q5/A- create a QBasic program that will determine the price of traveler ticket based on customer s age. The program must able to input the customer's age then set the conditions so the price is determined as follows: age 0-5 age 6-20 price-1 50001D(Iraqi dinar) price 25000LD(Iraqi dinar) price-40 000ID(Iraqi dinar) age >21 B-Indicate what is acceptable and what is not acceptable from the following Q-Basic sentences with a reason (Choose 5 only) 1. KB5 2. Schools 3. AB$3 4. Print 5. LETX YS 6. "$565" Q6/A-By using (Qbasic or MS Excel) write a program to compute X 1+2+3+ +100 X-1x2+2x4+3x6++100x200 B- Answer the following question: (Choose Sonly) 1. Explain how to add a transition effect to the PowerPoint file.? 2. Add worksheet in Ms-Excel? 3. Add the watermark in your name to your Word document? 4. List and explain the most popular computer storage units? 5. What is the difference between the Save and the Save as commands? 6. List methods for inserting New Slide in the Ms. Power point?The company discounted used cars pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary.Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salarymenu(): Takes no inputs and does not return a value. It prints the two options available to the user and asks them to enter a number corresponding to their desired option. It then asks the user for the required inputs and then calls the appropriate function and prints the return value with an appropriate message (see below). If the user enters a number corresponding to an invalid option, Invalid choice. should be printed and the program should end. When the program ends, Have a nice day! should be printed to the user. If the user asks the program to solve an equation, then the program should ask the user to type in the equation (without spaces). If a solution is found, then print Solution found: followed by the solution as a list. If no solution was found, print No solution found. If the user asks the program to create an equation, then the program should ask the user to enter the number of tries, length of the equation and percentage for a number to have additional digits. If an…