Al-Hadidi hypermarket offers a variety of food, household, electronics, and garments items. They determine the retail price based on the markup percentage that is different for each item's category. The following table shows the markup percentage of various item categories. Item Category Grocery Markup Percentage 5% Fresh-Food 8% Electronics 10% Lifestye Home-living 20% 15% Write a Python program named retailprice.py that asks the user to enter an item's wholesale cost and category and calculate the retail price for the item according to the following formula: Retail price = wholesale price + (wholesale price * markup percentage) Run and test your program. Once done, submit the file named retailprice.py at the link below.
Q: Create the Taxes Application. The application computes taxes for the schedule given in Table 1. The…
A: Answer Code: #include <stdio.h> // library for input output function int main() {…
Q: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as…
A: Required:
Q: Survey Data Analysis Computers are commonly used to compile and analyze the results of surveys and…
A: ***THE BELOW CODE IS IMPLEMENTED IN C BY USING DYNAMIC ARRAY***
Q: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a…
A: Answer :
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: Program: #get the input from the user num = float(input("Enter the number of packages purchased: "))…
Q: Using Python The application should provide the sum of all sales totals for each entered department…
A: Programming instructions: Declare the required arrays and variables. Use while-loop to take input…
Q: Question 1[15 pts]: Write a java program to help an employee calculate the price of a product after…
A: this is a simple logical coding question in java the complete code and its output is attached in the…
Q: Type a Python calculator-like program (program idea: asks the user to enter two numbers, then the…
A: Given: Q: Type a Python calculator-like program (program idea: asks the user to enter two numbers,…
Q: python code Input: Name of a person Age of that person…
A:
Q: only in python Wonder Shopping wants to calculate the Commission given their employee. The program…
A: Based on python
Q: LULU Shopping wants to calculate the Commission given their employee. The program should ask the…
A: The problem is based on the calculation of total bill and commission of the employee using python…
Q: he Billy Goat Fast-Fast Food restaurant sells the following products: Product Price ($)…
A: items = ['Cheeseburger','Pepsi','Chips']price = [2.49,1.00,0.59]print('Items\t\t\tPrice($)')for i in…
Q: (Financial application: calculate future investment value) Write a program**(PYTHON)** that reads in…
A: First, we will input the investment amount, annual interest rate, and the number of years. Then…
Q: An ISBN-10 (International Standard Book Number) consists of 10 digits: The last digit, is a…
A: Java code: import java.util.Scanner; public class Main{ public static void main(String[] args){…
Q: My Solutions > Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: We need to write a function using Matlab to compute income tax.
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: USING C++ PROGRAMMING LANGUAGE A mobile phone service has three different data plans for its…
A: Given Plans are: PLAN A: For $19.99 per month, 2 gigabytes are provided. Additional usage…
Q: Program in python Specifications Develop a program to allow the user to interactively enter…
A: Python program for above : # get the order print("Enter your order: ", end =" ") order =…
Q: The Konditorei coffee shop sells coffee at $10.50 a pound plus the costof shipping. Each order ships…
A: We need to find cost of the coffee order, given $10.50 a pound + the cost of shipping and the…
Q: A) The following program is used in a bookstore to determine how many discount coupons a customer…
A: Task : Considering the above code in C++, the task is required to produce the equivalent output of…
Q: Create an investment-value calculator) Write a program that calculates the future value of an…
A: It is defined as a powerful general-purpose programming language. It is used in web development,…
Q: Gino's Pizzaria wants an application to compute the price of pizza orders, based on the following:…
A: Actually, the given information is: If the size/toppings are:�small� with 2 or fewer toppings,…
Q: Machine Problem:(Computing Body Mass Index)Body Mass Index (BMI) is a measure of health on weight.…
A: Your python program is given below as you required with an output.
Q: Need help with Python.....paste indented code here Implement the following: 1) Request a float…
A: PROGRAM CODE: # take the value of price from the userprice = float(input("Enter the search price:…
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: Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or not…
A: Given Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or…
Q: Al-Hadidi hypermarket offers a variety of food, household, electronics, and garments items. They…
A: Python used to answer this question
Q: An ATM contains Indian currency notes of 100,500 and 2000. To withdraw cash from this ATM, the user…
A: As you have not provided the sample output in the question. So, we have provided the output in the…
Q: Solve it using pseudocode (no python syntax allowed) Code it in Python - must use decision structure…
A: Initialize rate variable to store value later: rate=0 Initialize while loop to keep checking for…
Q: Using Dev c++ Create an application containing 5 prices, such as $2.34, $7.89, and so on. The…
A: Here is the c++ code: See below steps for code.
Q: Prompt the user to enter in lengths and widths for the following rooms Living Room Master Bedroom…
A: In the above program, first we need to take input from user length and width of living room, family…
Q: in python 3.2 Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a…
A: Import local function to use currency formatting in the program.prompt user to enter the type of…
Q: Develop a body mass index (BMI) calculator program that reads body weight and height as inputs and…
A: Alogthrim Steps in the form of flowchart :
Q: PYTHON PROGRAMMING Reza Enterprises sells tickets for buses, tours, and other travel services.…
A: ALGORITHM:- 1. Take choice from user. 2. Take input for ticket number. 3. Check if it is valid…
Q: Develop a body mass index (BMI) calculator program that reads body weight and height as inputs and…
A: (1)Read the person weight and height (2)Compute the BMI as per the given formula (3)Determine the…
Q: 4.20 LAB: Warm up: Automobile service cost (1) Prompt the user for an automobile service. Output…
A: Step 1: Get input from user Step 2: Print the entered input Step 3 : Check the entered input for…
Q: Oman electricity wants to calculate the discounts of its citizens for their electricity…
A: Start Input name, units, amount Calculate Bill Apply discount Print details Stop
Q: Text-based adventure game: Pretend you are creating a text-based adventure game. At different points…
A: def choice(c): if c == 1: print("Fight") elif c == 2: print("Run") elif c ==…
Q: DESCRIPTION Please make sure you use python 3+ version to do all of your homeworks. Please use…
A: Program: def main(): less_than_30000_count=0 between_30K_50K_count=0…
Q: You are a Burger and Fries stall owner that would want to automate the computation of your orders.…
A:
Q: this assignment you will write a computer program from scratch using the Python programming…
A: Code: def add(a,b): return a+b def subtract(a,b): return a-b def multiply (a,b): return a*b def…
Q: Omani Electricity Company is an electric energy company. It generates and distributes electric power…
A: I give the code in Python along with output and code screenshot
Q: rite an algorithm that will calculate the salary of an employee for the month, and then display on…
A: The given details are related to calculating the salary of employees working for a Car company. The…
Q: The monthly payment on a loan may be calculated by the following formula: Rate-(1+Rate)N Раутеnt 3D…
A: #include<iostream>#include<math.h>using namespace std;int main(){ int n; float…
Q: rite a program to accumulate the "x" deposits made in a month in a savings account, include in the…
A: Given Question, Write a program to accumulate the "x" deposits made in a month in a savings account,…
Q: Enter desired auto service: oil change You entered: Oil change (2) Output the price of the requested…
A: The answer is
Q: My Solution Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: function…
Q: Using Java create a craps game prompting users to play bets, tracking win / lose records. keeping…
A: import java.util.*;import java.lang.*;import java.io.*;class Craps{ static int roll2Dice(Random…
Q: The company « Super discounted used cars inc.» pays their employees according to this chart: 250$…
A: Introduction The given details are related to calculating the salary of employees working for a Car…
Q: (Fraction calculator) | Write a program that lets the user perform arithmetic operations on…
A: Program code: //include the required header files #include<iostream> using namespace std;…
Step by step
Solved in 3 steps with 1 images
- The International Standard Book Number (ISBN) is a number that uniquely identifies a book. Publishers can buy or receive ISBNs from the International ISBN Agency. There are two types of ISBNs: ISBN-13 and ISBN-10, which are 10- and 13-digits long, respectively.ISBN-10 has a pattern, where the last digit can be found using the first 9. Additionally, ISBN-10 can also be used to calculate its ISBN-13 equivalent (and vice versa). Write two functions in ISBN.java. The main method is implemented for you so you can test your functions. Instructions on how to run this file to make use of the test.txt file are detailed below. calculateISBN10(int[] isbn) computes the last digit of the ISBN-10 number. The first 9 of the 10 digits of the ISBN will be passed to the function as the parameter isbn integer array of size 10. The last integer in the array will be -1. Your job is to calculate the last digit (called the check digit), and update the last index of the isbn array with the computed…The International Standard Book Number (ISBN) is a number that uniquely identifies a book. Publishers can buy or receive ISBNs from the International ISBN Agency. There are two types of ISBNs: ISBN-13 and ISBN-10, which are 10- and 13-digits long, respectively.ISBN-10 has a pattern, where the last digit can be found using the first 9. Additionally, ISBN-10 can also be used to calculate its ISBN-13 equivalent (and vice versa). Write two functions in ISBN.java. The main method is implemented for you so you can test your functions. Instructions on how to run this file to make use of the test.txt file are detailed below. calculateISBN10(int[] isbn) computes the last digit of the ISBN-10 number. The first 9 of the 10 digits of the ISBN will be passed to the function as the parameter isbn integer array of size 10. The last integer in the array will be -1. Your job is to calculate the last digit (called the check digit), and update the last index of the isbn array with the computed…Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 p.m., 7 p.m., or 9 p.m.Design a program that accepts reservations for specific tables at specific times; the user entersthe number of customers, the table number, and the time. Do not allow more than four guests pertable or invalid table numbers or times. If an attempt is made to reserve a table already taken,reprompt the user. Continue to accept reservations until the user enters a sentinel value or allslots are filled. Then display all empty tables in each time slot. Pseudocode and flowchart (RAPTOR please) if possible. Do not write it in any particular language, that is not required.
- Given:item1 = 'Boots'item2 = 'Hats'price1 = 99price2 = 19.99 Print two string format statements to display the following according to the rules below:1) Item prefixed with 'Special:'2) Price prefixed with 'MarkDown: $'3) Item always has 10 characters of space.4) Price is always displayed with two decimal places. (PYTHON) Example OutputSpecial: Boots MarkDown: $99.00Special: Hats MarkDown: $19.99When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)(Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.
- (Data processing) Your professor has asked you to write a C++ program that determines grades at the end of the semester. For each student, identified by an integer number between 1 and 60, four exam grades must be kept, and two final grade averages must be computed. The first grade average is simply the average of all four grades. The second grade average is computed by weighting the four grades as follows: The first grade gets a weight of 0.2, the second grade gets a weight of 0.3, the third grade gets a weight of 0.3, and the fourth grade gets a weight of 0.2. That is, the final grade is computed as follows: 0.2grade1+0.3grade2+0.3grade3+0.2grade4 Using this information, construct a 60-by-7 two-dimensional array, in which the first column is used for the student number, the next four columns for the grades, and the last two columns for the computed final grades. The program’s output should be a display of the data in the completed array. For testing purposes, the professor has provided the following data:IN PYTHON PLEASE AND FLOWCHART DRAWING COPUTERIZED PLEASE!! In many businesses across the country, people are buying food and goods using cash. Whenever a purchase is made with cash, it is usual that change must be back to the customer. Business point of sales software help to ensure that the correct change is return to a customer by providing detailed information of the change that should be returned to the customer. using the fewest number of bills and coins. In this assignment, you are asked to design and implement a program that writes out what bills (ones, fives, tens, twenties) and coins (pennies, nickels, dimes, and quarters) that should be returned to the customer given two inputs from the user: A total cost of a sale. The amount that was paid by the customer. Ensure that your output is grammatically correct. If the customer does not provide adequate payment, you should print the following statement, the program should end. Did not receive enough cash from the customer.…Gino's Pizzaria wants an application to compute the price of pizza orders, based on the following: If the size/toppings are:�small� with 2 or fewer toppings, charge is $7. �small� with more than 2 toppings, charge is $9. �medium� with 3 or fewer toppings, charge is $12. �medium� with more than 3 toppings, charge is $15. �large� with any number of toppings, charge is $23. Write pseudocode for a program that accepts data for an order:order number size of pizza number of toppings Display the order number and the final price for the pizza. EXAMPLES: If "284, medium, 3" is entered, then display "Order #284 costs $12"If "117, large, 0" is entered, then display "Order #117 costs $23"If "509, small, 6" is entered, then display "Order #509 costs $9"
- Python XYZ store plans to give a festival discount to its customers. The store management has decided to give discount on the following criteria: Shopping Amount Discount Offered >=500 and <1000 5% >=1000 and <2000 8% >=2000 10% An additional discount of 5% is given to customers who are the members of the store. Create a program using user defined function that accepts the shopping amount as a parameter and calculates discount and net amount payable on the basis of the following conditions:Net Payable Amount = Total Shopping Amount – Discount.# Write python codes here.print("Total E-Customer:", ECustomer.count)c1 = ECustomer("James")c1.setProductDetails("TV",35000,"Air Cooler", 9000)c2 = ECustomer("Mike")c2.setProductDetails("Mobile",20000,"Headphone",1200,"Fridge", 45000)c3 = ECustomer("Sarah")c3.setProductDetails("Headphone", 1200)print("=========================")c1.printDetail()print("=========================")c2.printDetail()print("=========================")c3.printDetail()print("=========================")print("Total E-Customer:", ECustomer.count)Output:Total E-Customer: 0=========================Name: JamesProducts: TV, Air CoolerTotal cost: 44000=========================Name: MikeProducts: Mobile, Headphone, FridgeTotal cost: 66200=========================Name: SarahProducts: HeadphoneTotal cost: 1200=========================Total E-Customer: 3ISBNThis problem is slightly more difficult than the above problem. This one requires a data type that stores 10 digits. BackgroundPublishers and bookstores use a number system called the International Standard Book Number (ISBN) system to identify books. At the start of publication, each book is assigned a unique ISBN. An ISBN, once assigned, can never be re-used. Click here for detailed information on this numbering system.An ISBN consists of exactly 10 digits. The rightmost digit is the check digit. The check digit is validated modulo 11.• multiply each digit from the first to the ninth by a weight from 10 to 2 respectively (the first digit by 10, the second by 9,.., the ninth by 2).• the sum of the products plus the check digit should be divisible without remainder by 11.• if there is a remainder, the whole number is not a valid ISBN SpecificationsDesign a program that validates an ISBN. Your program keeps accepting a whole number and determining if that whole number is a valid…