12. Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 10% 20-49 20% 50-99 30% 100 or more 40% Write a program that asks the user to enter the number of packages purchased. The pro- should then display the amount of the discount (if any) and the total amount of the gram purchase after the discount.
Q: (Algebra: solve 2 * 2 linear equations) A linear equation can be solved using Cramer’s rule given in…
A: code:
Q: Program IV: The Tuition Part Write a program that prompts the user to enter the number of courses…
A: C++ used to answer this question
Q: Celsius to Fahrenheit: Write a program that converts Celsius temperatures to Fahrenheit…
A: Step 1:- Program Approach:- (i)Include two header file (ii) iomanip header file is used for fixed()…
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: 7. Test Average and Grade Write a program that asks the user to enter five test scores. The program…
A: /*Java Program that ask user to enter 5 test scores and displays letter grade for each score and…
Q: Party-On sells individual hot/cold cups and dessert plates for parties. SueChen wants a program that…
A: The Party-On sells individual dessert plates and hot/cold cups for the parties. Create a program to,…
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: Programming Exercise 2-8 // Declare variables for food charges, tip, tax, and total. Declare Real…
A: Here I have created constants using the final keyword to store the value of tip and tax rate. Then,…
Q: urbo c++ code for The utilities commission has decided that the electric company overcharged its…
A: Include necessary header file. In main function declare a integer variable kilowatt and float…
Q: (Geometry: great circle distance) The great circle distance is the distance between two points on…
A: The Java program is written where it takes the latitude and longitude degrees from the user for 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: This is python programming question.
A: A Python program for the given criteria is as follows, File name: “main.py” #Import the package…
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: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Since you have not mentioned programing language I'm doing this in Python.
Q: (Find the lowest price) Write a program that prompts the user to enter the number of items and each…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //get the…
Q: 7. Pennies for Pay (Make it fast!!!) Write a program that calculates the amount of money a person…
A: Below is a required C++ code. Approach of a program: Include necessary header files and use…
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: 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: 7. Software Sales A software company sells a package that retails for $99. Quantity discounts are…
A: IPO CHART Input Processing Output 1 number (number_of_packages) Get 1 number Calculate…
Q: Problem 3 Write a program that will calculate the volume of a box. The user is required to enter 3…
A: code snippet:
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Given: The monthly payment for a given loan pays the principal and the interest. The monthly…
Q: Java Script Questions from number 2 to number 4
A: (2) Complete program: <! DOCTYPE html> <html> <body> <p>Question…
Q: IPO Chart/ Flow Chart/Pseudocode Write a guessing game where the user has to guess a secret number.…
A: Input Process Output Guess Repeat the below process: Increment Count If Guess<Number…
Q: UO wants a program that displays the amount of money charged for a seminar. The fee per person is…
A: // Code in java import java.util.*; public class Main{ public static void main(String[] args) {…
Q: A prime number is a whole number greater than 1 whose only can be divided by itself and 1. Thus,…
A: code in c++ #include <iostream> using namespace std; int main() { int n, i, m = 0, flag…
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: 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: Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units:…
A: Since you have posted a question with multiple sub-parts, we will solve first three subparts for…
Q: (Algebra: solve 2 x 2 linear equations) You can use Cramer's rule to solve the following 2 X 2…
A: Java code: //import Scanner classs from util packageimport java.util.Scanner; public class Main{…
Q: (Financials: currency exchange) Write a program that prompts the user to enter the exchange rate…
A: EXPLANATION: - The integer variables are declared for reading the amount and the user choice for…
Q: 1. Write a program that prompt the user to enter product unit price and quantity purchased. The…
A: The given problems are to be solved in C++ programming language where required inputs will be taken…
Q: Evaluation (Factorial of a Number) Write a program that calculates the tactorial of a number using…
A:
Q: 7. Pennies for Pay Write a program that calculates the amount of money a person would earn over a…
A: Below is a required C++ code. Approach of a program: Include necessary header files and use…
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: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: Hey there, I am authorised to answer any one question at a time when there are multiple questions…
Q: 8. Pennies for Pay Write a program that calculates the amount of money a person would earn over…
A: Below is a required C++ code. Approach of a program: Include necessary header files and use…
Q: (Health application: BMI) Body Mass Index (BMI) is a measure of health on weight. It can be…
A: Code import java.util.Scanner;public class test{ public static void main(String args[]){…
Q: Exercise II Write a program that finds the positive integer solutions of the following equation ax³…
A: Sample Response: //C++ program to find teh solution of a cubic equation by testing each integer from…
Q: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking your…
A: Given: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking…
Q: 1- If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: The C programming language is a computer programming language that was developed to do system…
Q: 7. (Medium) (Financial application: initial deposit amount) Suppose you want to deposit a certain…
A: c++ program #include<math.h>#include <iostream>using namespace std; //driver functionint…
Q: Program IV: The Tuition Part Write a program that prompts the user to enter the number of courses…
A: ****Note: As programing language is not mentioned in the question, using C++ language to solve…
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: 3. The longevity pay of employees is based from the number of years the employee has worked in the…
A: To Do: To draw the flow chart.
Q: Question 3 Design a program that allows a user to enter any quantity of numbers until a negative…
A: Since no programming language is mentioned, I have implemented the given requirement in python. The…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: public static void main(String[] strings) { Scanner input = new Scanner(System.in);…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Since you have not mentioned the programming language, we have provided the code in Python language.
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…
Q: (Slope of a line) Write a program that prompts the user to enter the coordinates of two points (x1,…
A: Here is the Python program: x1 = float(input("Enter the x-coordinate for point1: "))y1 =…
Introduction to Python
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images
- 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }3.8: Software SalesA software company sells a package that retails for $99. Quantity discounts are given according to the following table:Quantity Discount10-19 20%20-49 30%50-99 40%100 or more 50%Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. For instance, to calculate 20% of a value N, you can use the formula:(20 / 100.0) * N (or 0.2 * N).Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to5). Once per day, each agent passes in a slip for each different type of product sold. Every agentpasses in between 0 to 5 slips each day. Each slip has the following information on it: The agent number The product number Total rupees of that product sold that day.Write a program in C++ that will read all this information for last month’s sales and brief thetotal sales by agent by product. The output should be in tabular form.
- Activity 20 Electric Bill: Using Switch Statement, write a program that will calculate and show bills of the Manila Electric Company. The rates vary depending on whether the use is residential (R), commercial( C) , or industrial (I). Any other code should be treated as an error. The program should accept the subscriber ID, Subscriber Name, his total electrical consumption in a month, and the code of the consumer type. The rates are computed as follows: R: 50 plus .50 per kwh used C: 100 for the first 1000 kwh and 0.45 for each additional kwh I: 180 for the first 1000 kwh and 0.75 for each additional kwhAn Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance Note: Use switch cases when you check the total number of accidents.Please due in C++ The first picture has information about the code. The second picture is example on how the code should looks like. The user should give the company name and numbers. Thank you kindly A sample run is as follows: Enter the company name: TC Energy Enter TC Energy's stock symbol: TRP.TO Enter TC Energy's current stock price: 55 Enter TC Energy's annual dividend per share: 3.24 Enter the company name: Canadian Utilities Enter Canadian Utilities's stock symbol: CU.TO Enter Canadian Utilities's current stock price: 31.70 Enter Canadian Utilities's annual dividend per share: 1.76 Enter the company name: Bank of Nova Scotia Enter Bank of Nova Scotia's stock symbol: BNS.TO Enter Bank of Nova Scotia's current stock price: 70.08 Enter Bank of Nova Scotia's annual dividend per share: 3.60 Enter the company name: TransAlta Renewables Enter TransAlta Renewables's stock symbol: RNW.TO Enter TransAlta Renewables's current stock price: 21.75…
- // This program calculates profits and sales prices for a furniture company. #include <iostream> #include <string> using namespace std; int main() { string itemName = "TV Stand"; double retailPrice = 325.00; double wholesalePrice = 200.00; double salePrice; double profit; double saleProfit; // Write your assignment statements here cout << "Item Name: " << itemName << endl; cout << "Retail Price: $" << retailPrice << endl; cout << "Wholesale Price: $" << wholesalePrice << endl; cout << "Profit: $" << profit << endl; cout << "Sale Price: $" << salePrice << endl; cout << "Sale Profit: $" << saleProfit << endl; return 0;4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User input should be used to find the quantities sold of Smores, Thin Mints, Caramel DeLites, Shortbread, and Peanut Butter Patties. Use a selling price of $5 per box for Smores and Caramel DeLites, $4 per box for Thin Mints and Peanut Butter Patties, and $3 per box for Shortbread cookies. Print the total number of boxes sold, the total revenue for each flavor, and the total amount collected for all cookies. Use the main function and a function to calculate the sales. python 3 or above please.C CODE PLEASE 3.28 Fixed LAB: Warm up: Automobile service cost (1) Prompt the user for an automobile service. Each service type is composed of two strings. Output the user's input.Ex: Enter desired auto service: Oil change You entered: Oil change (2) Output the price of the requested service. Ex: Enter desired auto service: Oil change You entered: Oil change Cost of oil change: $35 The program should support the following services: Oil change -- $35 Tire rotation -- $19 Car wash -- $7 If the user enters a service that is not listed above, then output the following error message: Error: Requested service is not recognized
- Nested-if structure Book Club Memberships Yes No Non Student 300 200 Student 60 50 Write a code segement to read the status of the types of book club members their memberships and to output their membership fee. Assume that the members staus is encoded by the charchter value Y for student and N for nonstudent. Also that the type of membership is encoded by an integer value (1 for bookclub membership, and 0 for non bookclub membership.int main() { int i, salary[10], range[9]={0, 0, 0, 0, 0, 0, 0, 0, 0}; double gross[10], total[10]; string amount[9]={"$200 - $299", "$300 - $399", "$400 - $499", "$500 - $599", "$600 - $699", "$700 - $799", "$800 - $899", "$900 - $999", "$1000 and over"}; for (i=0; i<10; i++){ cout<<"Please enter gross sales of salespeople "<<i+1<<": "; cin>>gross[i]; total[i]=200+(gross[i]*0.09); salary[i]=total[i]; if (salary[i]>=200 && salary[i]<=299) range[0]=range[0]+1; else if (salary[i]>=300 && salary[i]<=399) range[1]=range[1]+1; else if (salary[i]>=400 && salary[i]<=499) range[2]=range[2]+1; else if (salary[i]>=500 && salary[i]<=599) range[3]=range[3]+1; else if (salary[i]>=600 && salary[i]<=699) range[4]=range[4]+1; else if (salary[i]>=700 && salary[i]<=799) range[5]=range[5]+1; else if (salary[i]>=800 && salary[i]<=899) range[6]=range[6]+1; else if (salary[i]>=900…Nested-if structure Book Club Memberships Yes No Non Student 300 200 Student 60 50 Write a code segement to read the status of the types of book club members their memberships and to output their membership fee. Assume that the members staus is encoded by the charchter value Y for student and N for nonstudent. Also that the type of membership is encoded by an integer value (1 for bookclub membership, and 0 for non bookclub membership. C++