A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. Write a program that asks for the month, the year, and the total amount collected at the cash register (that is, sales plus sales tax). Assume the state sales tax is 4 percent and the county sales tax is 2 percent. If the total amount collected is known and the total sales tax is 6 percent, the amount of product sales may be calculated as: S T 1.06 S is the product sales and T is the total income (product sales plus sales tax). The program should display a report similar to
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: "Since you have not mention any programming language, so we will write this program in C++…
Q: The body mass index is calculated as a person’s weight (in pounds) times 720, divided by the square…
A: BMI calculator program in pyhton where weight and height are taken input and BMI is calculated using…
Q: Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x…
A: Program code: //include the required header files#include <iostream>#include…
Q: A soft drink company recently surveyed 12,467 of its customers and found that approximately 14…
A: Given: A soft drink company recently surveyed 12,467 of its customers and found that approximately…
Q: Many companies pay time-and-a-half for any hours worked above 40 in a given week. Write a program to…
A: Step 1: Prompt and accept number of hours worked and the pay rate. Step 2: Check whether number of…
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: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Below is the required code and sample output:
Q: Write a program that asks the user for the number of miles driven and the gallons of used. It should…
A: The formula to calculate the miles per gallon of the vehicle is as follows Miles per gallon,…
Q: Use python ( Converting a given date to the day number in the year) Write a program that…
A: Here is the code for you: #! /usr/bin/pythonprint 'Enter the date in the format mm dd yyyy: ',import…
Q: write a program c++ If the temperature is above 100 degrees, display the message “above the boiling…
A: #include<bits/stdc++.h>using namespace std;int main(){ int temp; cout<<"Please…
Q: A circular racetrack is composed of four portions: concrete, mud, sand and asphalt. Sly Slick's car…
A: - The question want to know the position of the car according to the time. - We need to code this…
Q: money is left in a particular bank for more than 5 years, the bank pays interest at a rate of 4.5%…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C++ FOR THE SOLUTION Define…
Q: Points on a two-dimensional plane are specified uniquely using two numbers, the point’s distance…
A: The program declares the 2 points of double type and reads the values from the user. Call the…
Q: Create a program that will distinguish the age of the student. If the student is 13 to 19 years old,…
A: Step-1: Start Step-2: Declare a variable age and take input from user Step-3: If age is greater than…
Q: Write a program that converts Celsius temperatures to Fahrenheit temperatures. The formula is as…
A: Given: Write a program that converts Celsius temperatures to Fahrenheit temperatures. The formulais…
Q: Suppose you own a tourism company for and would like to calculate the fees to be paid by a client.…
A: The answer is given below.
Q: An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular…
A: PROGRAM: #Getting input for hourly wage hourlyWage = int(input("Enter the hourly wage: "))…
Q: Qi- Write a program to print (very high) if the windspeed is more than 220, or print (high) if…
A: IF/else statement expands the if statement if / else statement if (true / false expression) is…
Q: A metric ton is 35,273.92 ounces. Write a program that reads in the weight of a package of breakfast…
A: In the given problem solution, we first read weight of breakfast cereal, then convert into metric…
Q: Assume a runner runs 14 kilometers in 45 minutes and 30 seconds. Write a program that displays the…
A: Code: public class Main { public static void main(String[] strings) { double kilometers…
Q: Write a program that determines the additional state tax owed by the employee. The State charges a…
A: We need to provide C code for tax owned by Employee.
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: Program code: #include <iostream> #include <cmath> using namespace std; //main method…
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: Please help me solve this problem
A: Note: The Python program is coded as the user requirements.In Python, code indentation is very…
Q: A mass m is attached to the end of a rope of length r = 3 meters. The rope can only be whirled…
A:
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: Write a code for the following problem: “If the day of the week is Monday through Friday, then a…
A: There are several ways to implement this code structure. We can use if / Then / Else and conditional…
Q: You can get a booster dose of a vaccine 152 days after your second dose. Write ac program that reads…
A: /*#include <stdio.h>#include <string.h>#include <stdlib.h>#include <time.h>…
Q: During the past decade ocean levels have been rising faster than in the past, an average of…
A: Given:- During the past decade ocean levels have been rising faster than in the past, an average of…
Q: A company rents three types of cars. The rental charge for cars is based on type of car, mileage and…
A: The inputs will be type, mileage and number of days The output will be type, daily rental, number of…
Q: n employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours…
A: STEPS - Declare variables to calculate total weekly pay. Take input from user named with wages per…
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: Note: C++ language Write a program that determines the price of an item after discount according to…
A: PROGRAM INTRODUCTION: Include the required header files. Start the definition of the main function.…
Q: Write a program that will ask the user to enter salary amount. And then compute for the TAX amount.…
A: As the language is not specified answer written in c++ 1)Read input 2)Using if else check…
Q: This program accepts the height of a person in centimeter and categorise the person according * .to…
A: A. 1-ElseIf((p >= 150) And (p < 165)) Then 2-ElseIf((p >= 165) And (p <= 195)) Then…
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Hello Student. Warm welcome from my side. Hope you are doing great. Here's your answer. Since you…
Q: Suppose the voltmeter voltage is constrained to the range Vmin = 12 volts ≤ Vm ≤ Vmax = 18 volts.…
A: Hello Student. Warm welcome from my side. Hope you are doing great. I will try my best to answer…
Q: Assume that a runner runs 15 kilometers in 50 minutes and 30 seconds. Write a program that displays…
A: #include<iostream> using namespace std; int main(){ int distanceTravelledInKMS=15;…
Q: A county collects property taxes on the assessment value of property, which is 60 percent of the…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read actual value…
Q: Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length…
A:
Q: Use Python to : Write a program that asks the user for a number in the range of 1 through 7. The…
A: Detailed answer in the below step.
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Write a program that asks for the number of calories and fat grams in a food. The program should…
Q: If cost price and selling price of an item are input through the keyboard, write a program to…
A: I have provided C CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS------------
Q: Assuming the level of the Earth’s oceans continues rising at about 3.1 millimeters per year, write a…
A:
Q: (Converting a given date to the day number in the year) Write a program that prints the day number…
A: Algorithm: Start Store the number of days of a normal year in a list named regYear and number of…
Q: Create a program that will distinguish the age of the student. If the student is 13 to 19 years old,…
A: INTRODUCTION: Here we need to tell create a program that will distinguish the age of the student.
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.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 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.The short-term, 0-24 hours, parking fee, F, at an international airport is given by the following formula: Where int(h + 1) is the integer value of h + 1. For example, int(3.2) = 3, int(4.8) = 4. Write a program that prompts the user to enter the number of hours a car is parked at the airport and outputs the parking fee.Write a program that reads the amount of a monthly mortgage payment andthe amount still owed—the outstanding balance—and then displays theamount of the payment that goes to interest and the amount that goes toprincipal (i.e., the amount that goes to reducing the debt). Assume that theannual interest rate is 7.49 percent. Use a named constant for the interest rate.Note that payments are made monthly, so the interest is only one twelfth ofthe annual interest of 7.49 percent.
- Write a program that calculates the attendance percentage for students, there are total 120 working days in a semester, you are required to ask 100 students the days they attended university, then calculate the percentage it makes. If the percentage is above 75, then display that he is eligible to sit in examination, if not display that he will not get admit card to sit in exams. In the end calculate how many students were eligible to sit in exams.The New Telephone Company has the following rate structure for long-distance calls: The regular rate for a call is P8 per minute. Any call started after 6:00P.M. (1800 hours) but before 8:00 A.M (0800 hours) is discounted 50%. Any call longer than 60 minutes receives a 15% discount. All calls are subject to 4% federal tax on the cost after any discounts. Write a program that takes the start time for a call based on a 24-hour clock and the length of the call in minutes. The gross cost (before any discounts or tax) should be displayed followed by the net cost (after discounts are deducted and tax is added).Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows (with red…
- In C++ , Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows…A county collects property takes on the assessment value of property, which is 60 percent of the property's actual value. For example, if an acre of land is valued at #10,000, it assessment value is $6,000. The property tax is then 72 cents for each $100 of the assessment value. The tax for the acre assessed at $6,000 will be $43.20. Write a program that asks for the actual value of a piece of property and displays the assessment value and property tax.Write a program that calculates the change due a customer by denomination; that is, how many pennies, nickels, dimes, etc. are needed in change. The input is to be the purchase price and the size of the bill tendered by the customer ($100, $50, $20, $10, $5, $1)
- Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is as follows: f = p * (1 + i)^t • f is the future value of the account after the specified time period. • p is the present value of the account (the account's current balance). • i is the monthly interest rate. • t is the number of months. Write a program that takes the account's present value (current balance), monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should print the account's future value. Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of…Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles.Write a program which prompts the user for their age. If they are 19 or younger inform them that qualify for student discounts. If they are between 20 and 65 inform them that they qualify for no age discounts. If they are 65 or over inform them that they can receive senior discounts.