Display basic salary, bonus and net salary
Q: TASK 3: Write a program that accepts the input code from the user and print according to the input…
A: in c: #include <stdio.h>int main(){ int n1; printf("enter the number: ");…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: Java
A: Program: //Import necessary packages import java.util.Scanner; //Define a class named Months public…
Q: there are three seating categories at a stadium. for a softball game, class A seats are $30, Class B…
A: In the above code, it has been asked to print the how many tickets for each class of seats were sold…
Q: Exercise 2: Write a program that uses input to prompt a user for their name and then welcomes them.…
A: Explanation: You did not mention programming language so I did this program using c,c++, java, and…
Q: 6. (Display the first days of each month) Write a program that prompts the user to enter the year…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
Q: Average acceleration is defined as the change of velocitydivided by the time taken to make the…
A: Program code: //include the header files #include <iostream> using namespace std; //define…
Q: Write a program that inputs year and month number, it then display the number of days in that month…
A: The given problem is to be solved in programming language where the user will input the year and…
Q: Question 1 Write a program that finds the new salary of an employee after several years of work…
A: Note: Programming language not mentioned in the question. C++ is chosen for implementation.…
Q: Exercise 5: The Konditorei coffee shop sells coffee at $10.50 a pound plus the cost of shipping.…
A: The required python program for the coffee shop will be, # Required functiondef OrderCoffee(weight):…
Q: program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas…
A: Introduction of Program: In this C++ program, the User enters the car consume how many miles in 1…
Q: by using c++ solve following questions. 1. Write a program that inputs salary and grade, It adds…
A: Here, you need to take input from user for salary and grade. So to store input values, you need to…
Q: Expression for calories burned during workout The following equations estimate the calories burned…
A: #Code in Python Input :age (years)weight (pounds)heart rate (beats per minute)time (minutes) Output…
Q: 3.5 LAB: Exact change Write a program with total change amount as an integer input, and output the…
A: Here I am using Java language to solve this question. Java Code: import java.util.*; public class…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Algorithm: 1. Input unit sold 2. Check if quantity is not negative. 3. Check the condition for…
Q: A weapon shop sells arrow for $3 each. Currently, there is an ongoing buy 7 free 1" promotion, where…
A: #include <iostream>using namespace std; int main(){ int price = 3; int num;…
Q: Part E Question 1 Part E Question 2 Part E Question 3 Part E Question 4 Part E Question 5 Part E…
A: Since no programming language is mentioned, I am using c++ Algorithm: Start Initialize total to 0…
Q: A county collects property takes on the assessment value of property, which is 60 percent of the…
A: Since the coding language is not mentioned, I have done the code in C++. Algorithm : Step 1 :…
Q: Q2: Write a program to compute and display a person's weekly salary as determined by the following…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read no.of hours n…
Q: 1. In this program you will produce an output of the total tax based on your income and marital…
A: In the below steps you can find the complete code in python. Since there is no language given in the…
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: C++ Code for the given Question #include<bits/stdc++.h>#include <iostream> using…
Q: 2.12 LAB: Driving costs Driving is expensive. Write a program with a car's gas mileage…
A: LAB: Driving costs - functions Driving is expensive. Write a program with a car's miles/gallon and…
Q: Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output…
A: import java.util.*;class Test89 { public static void main(String args[]) { Scanner sc = new…
Q: //////////// //////////// //////////// how do i solve this problem in java. please do not use…
A: Program Instructions:Use scanner class object to get the user input.Use if-else statements to print…
Q: Q2a) A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk…
A: 2a) The code is given below: #include <iostream>#include <iomanip> using namespace…
Q: A customer in a store is purchasing five items. Design a program that asks for the price of each…
A: Note: since programming language is not mentioned we are providing solution in c++ . please repost…
Q: /* This program should play a game with the user asking her to guess a target number (randomly…
A: As no programming language is mentioned, it is solved using Java
Q: The average cost of a college textbook is $125. There is a premium of 20% on hardcover text and a…
A: conditions :- In case of hardcover text if n>4 total=n*avg_cost+ (premium*(n*avg_cost)/100)…
Q: 1. A software company sells a package that retails for $99. Quantity discounts are given according…
A: logic:- take quantity as user input. apply if else to find out discount. at last subtract…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: //import the required package import java.util.Scanner; //create a main class public class Gallon {…
Q: Rosa's Roses are $1.69 each but discounts are available for larger numbers. 1 dozen roses or more @…
A: Note: As no langauge is mentioned, therefore answering the given question in python. Input : The…
Q: Exercise 6: Two points in a plane are specified using the coordinates (x1, y1) and (x2, y2). Write a…
A: Since it is unclear which question you want, my code below is answer to both questions 6 and 7.
Q: 6. (Display the first days of each month) Write a program that prompts the user to enter the year…
A: Program: import java.util.Scanner; public class Main { // months name[] // 0 index is empty so…
Q: A person is eligible to be a US senator if they are at least 30 years old and have been a US citizen…
A: PROGRAM EXPLANATION Take personage and years of citizenship as input from the user. Now, using the…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: #Get the loan amount loan_amount=float(input("Loan Amount: ")) #Get the number of years…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: question :- Program using C++ language without the use of logical operators (&&, || ,!) To…
Q: 1. A 10% discount is applied to purchases over $10.00. Write a program that asks for amount…
A: The program is created as follows: Declare variables for purchase amount, discount and discounted…
Q: 6. (Display the first days of each month) Write a program that prompts the user to enter the year…
A: import java.util.Scanner;public class Exercise7 { public static void main(String[] strings) {…
Q: 1. Federal law requires that hourly employees be paid "time-and-a-half" for work in excess of 40…
A: #ask user for hourly wage hourly_wage = float(input('\nEnter hourly wage: ')) #ask user for Number…
Q: Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length…
A:
Q: Question # 8: Write a program that inputs a number and checks whether it is a perfect number or not.…
A: Answer 8: Objective: The program reads the user input and verifies if the number falls under the…
Q: The New Telephone Company has the following rate structure for long-distance calls: The regular…
A: Solution:
Q: // This program gets student names continuously until XXX is entered. Then, for each student, quiz…
A: All the return boxes should be connected under one box.
Q: A customer in a store is purchasing five items. The prices of the five items are: Price of item 1 =…
A: Use an array to store the 5 prices and then we can iterate using loop and print those values
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: An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular…
A: Actually, the code has given below:
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: Given The answer is given below.
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:
Step by step
Solved in 2 steps with 1 images
- The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.Box Office: A movie theater only keeps a percentage (20%) of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater’s gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $10.00 and a child’s ticket is $6.00.) Input: the name of the movie, number of adult tickets sold, number of child tickets sold Output: as specified below Object: cin, cout, getline, format output Note: 1. Movie names contain spaces 2, the report is aligned. 3. The decimal number is displayed with 2 decimal places.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…
- Car sales commission problem - For each used car a salesperson sells, the commission paid is as follows: $20 plus 30% of the selling price in excess of the cost of the car. Typically, the minimum selling price of the car is the cost of the car plus $200 and the maximum selling price is the cost of the car and $2,000. Write a program that prompts the user to enter the salesperson’s fixed commission, the percentage of the commission, the purchasing cost of the car, the minimum and the maximum amount to be added to the purchasing cost to determine the minimum and the maximum selling price, and outputs minimum and maximum selling price of the car and the salesperson's commission range. As a suggestion, pay particular attention to the formulas would your being requested. I would recommend that you perform the calculations on paper or in Excel prior to programming the solution. Paint usage calculator -A room has one door, two windows, and a built-in bookshelf and it needs to be painted.…Exercise I- Medicine Write a program that asks the user to enter the name of the medicine (t for ThroX, f for FeliX), his mass. The user should enter as well if he has a prescription or not. The program will calculate the dosage using: age and his ThroX without prescription -The max dosage should be 0.75 mL -The dosage = mass / 150 -The number of pills per day to take is 1 ThroX with prescription -The dosage =mass * 3 / 150 -The number of pills per day to take is 5 FeliX with prescription -The dosage = 0.77 mL FeliX without prescription -The dosage should be between 0.3 and 0.7 -The dosage = mass * 0.009 -The number of pills per day to take is 2 -The number of pills per day to take is 6 The program should display the dosage and the number of pills to be taken per day if the requirements are full filled, otherwise it display "Please check your doctor for a prescription". In case the medicine does not exist in the database, the program display “Your medicine is not in our database!"…Remaining Time: 54 minutes, 49 seconds. * Question Completion Status: QUESTION 19 Write a Java program that prompts the user to enter the School Grade Level of a student and then calculate their discount amount in the regular fees structure offered during this pandemic situation. By using the below table, calculate their discount amount from the amount of the regular fee and then print the discount amount in OMR by using the appropriate selection structure. (Assume the user is entering a maximum Grade level is 12) discount amount = Regular Fees * percentage of discount rate School Grade Level Regular Fees in OMR Discount Rate >9 and 6 and 3 and 0 and <=3 30.500 5% otherwise 20.400 No discount T T T Arial 3 (12pt) v T -E E- 只i ン Click Save and Submit to save and submit. Click Save All Answers to save all answers. Save All Answers TOSHIBA F5 F6 F7 F8 F9 F10 F11 F12 INS SCNULL LOCK AD & 67 7 V 8A9 4 0
- Program2: Box Office A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the distributor. Write a program that calculates a theater's gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $6.00 and a child's ticket is $3.00.) It should display a report similar to the following: NOTE: Movies' name should be enclosed within the double quotation. Movie Name: "Wheels of Fury" Adult Tickets Sold: 382 Child Tickets Sold: 127 $ 2673.00 $ 2138.40 $ 534.60 Gross Box Office Profit: Amount Paid to Distributor: Net Box Office Profit: Assume the theater keeps 20 percent of the gross box office profit.Exercise II Write a program that finds the positive integer solutions of the following equation ax³ + bx² + cx' + d = 0. The user enters the values of coefficients a, b, c and d. The program should test each integer starting from -50 to 50, and each time the equation is equal to zero, it prints its value as well as "is a solution". At the end, it displays the total number of positive integers found. Note that if the equation has more than one solution, the plural word “solutions" is used in the output. Sample run 1: Enter the coefficient of a, b, c, d: 1 -8.5 21 -13.5 1 is a solution 3 is a solution The equation has 2 integers as solutions Sample run 2: Enter the coefficient of a, b, c, d: 6 48 103.5 67.5 The equation has no integer solutions Sample run 3: Enter the coefficient of a, b, c, d: 1 -1 -12 0 4 is a solution The equation has 1 integer solutionComputer Fundamentals and Programming 2 Write a program that determines a student’s grade. The program will accept 3 scores and computes the average score. Determine the grade based on the following rules: - If the average score is equal or greater than 90, the grade is A. - If the average score is greater than or equal to 70 and less than 90, the grade is B. - If the average score is greater than or equal to 50 and less than 70, the grade is C. - If the average score is less than 50, the grade is F. Source Codes and Print Screen of the Output
- Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…Running the program Your program should take 5 arguments: start annual years return inflation where start is the initial investment amount annual is the amount that is added to the investment every year years is the number of years that the investment is held return is the annual investment return expressed as a percentage inflation is the annual inflation rate expressed as a percentage So, to calculate the future and present value of $1000 investment after 10 years where you add $100 every year with a 7% return and 2% inflation, you give the following arguments and get this output: $ ./fv 1000 100 10 7 2 Future Value: $3445.51 Present Value: $2826.52 Writing the code Starter code is provided for you below int main(int arge, char **argv ) { int a, n double value, present, I, is value= atof(argv[1]); a = atoi (argv [2]); natoi (argv[3]); r = atof (argv[4])/100; i = atof(argv[5])/100; // TODO write your code here printf("Future Value: $%.2f\n", value) printf("Present Value: $%.2f\n",…Running the program Your program should take 5 arguments: start annual years return inflation where start is the initial investment amount annual is the amount that is added to the investment every year years is the number of years that the investment is held return is the annual investment return expressed as a percentage inflation is the annual inflation rate expressed as a percentage So, to calculate the future and present value of $1000 investment after 10 years where you add $100 every year with a 7% return and 2% inflation, you give the following arguments and get this output: $ ./fv 1000 100 10 7 2 Future Value: $3445.51 Present Value: $2826.52 Writing the code Starter code is provided for you below int main(int arge, char **argv ) { int a, n double value, present, I, is value= atof (argv[1]); a = atoi (argv[2]); natoi (argv[3]); r = atof (argv[4])/100; i = atof(argv[5])/100; // TODO write your code here printf ("Future Value: $%.2f\n", value) printf("Present Value: $%.2f\n",…