Main

Write Python code that asks the user for total amount of purchase and computes the tax (assume the tax rate is 7%). Also, ask the user if the product is being shipped to New York. If yes, add an additional shipping fee of $9.99 to the final cost. Display the total cost (20 pts) 2. Write Python code to ask the user for a letter andFor this challenge you are going to write a Python script that prompts the user to enter a price in pounds (or in your own currency) (e.g. £90) and a discount rate to apply (e.g. 20%). Your program will then calculate and display the discounted price. We will use the following algorithm for our program: Python CodeMost of the discount rate is given in percentage rate. Here is the formula to calculate the discount: Discount = List price x Discount Rate For example : A pen costs 50$ and it is been sold at a discount of 12%, what is the discount price of the pen? A: = 50 x 12/100 = 50 × 0.12 = $ 6 Discount price of the pen is : 44$. Hope you get it. Okay fine!WebSep 29, 2018 · # input sale amount amt = int (input ("Enter Sale Amount: ")) # checking conditions and calculating discount if (amt > 0): if amt <= 5000: disc = amt * 0.05 elif amt <= 15000: disc = amt * 0.12 elif amt <= 25000: disc = 0.2 * amt else: disc = 0.3 * amt print ("Discount : ", disc) print ("Net Pay : ", amt-disc) else: print ("Invalid Amount") Enter price of product: 550 Enter quantity: 4 Bill amount: 2200 Discount: 440.0 Your net bill amount is 1760.0 Question 2. The marks obtained by a student in computer science is input by the user. Your program should display the grade. The student gets a grade as per the following rules: marks Grade 90-100 A 80-89 B 70-79 C 60-69 D 0-59 F. ProgramAug 19, 2022 · Python Basic - 1: Exercise-36 with Solution Write a Python program to compute the amount of the debt in n months. The borrowing amount is $100,000 and the loan adds 5% interest of the debt and rounds it to the nearest 1,000 above month by month. Input: An integer n (0 ≤ n ≤ 100) Input number of months: 7 Amount of debt: $144000 Sample Solution: Discount price of the pen is : 44$. Hope you get it. Okay fine! Let’s get into the programming for the above equation is different formats. Discount Java Code. 1. Java program to calculate Discount ( Using standard values ) By using standard values consider this program is universal code.

rimworld multiplayer scenariosis long beach ghettocorbettmaths changing the subject exam style questions answersopenmediavault 6 reviewrv lots for sale weiss lakebone strengthening activitieschristian tour guides in israelalgebra 2 multiple choice test pdf

Nov 23, 2021 · Click here 👆 to get an answer to your question ️ Program to provide flat to 500 if the particular amount is greater than 2000 ameer5936 ameer5936 23.11.2021 Introduction to the if Statement We’ll start by looking at the most basic type of if statement. In its simplest form, it looks like this: if <expr>: <statement> In the form shown above: <expr> is an expression evaluated in a Boolean context, as discussed in the section on Logical Operators in the Operators and Expressions in Python tutorial. Click here 👆 to get an answer to your question ️ Program to provide flat to 500 if the particular amount is greater than 2000 ameer5936 ameer5936 23.11.2021WebComputer Science questions and answers. Question 6 An electronics shop has announced the following seasonal discounts on the purchase of certain items. Purchase Amount Discount on Laptop Discount on Desktop PC 0-250 0.0% 5.0% 251 - 570 5.0% 7.6% 571 - 1000 7.5% 10.0% More than 1000 10.0% 15.0% Write a program based on the above criteria to ...WebThe Exit of the Program. Below is the implementation: # Give the income as static input and store it in a variable. givenincome = 670000 # If your income is less than or equivalent to Rs. 2,50,000,the taxAmount=0. if givenincome <= 250000: taxAmount = 0 # the taxAmount will be 5% of your total income over Rs. 2,50,000. elif givenincome <= 500000:If amount > Rs. 15,00,000 then Rs. 187500 + 30% of total income exceeding Rs. 15,00,000 Let's see how we can write a Python program for it: Firstly we will start our program with a while loop where we can take inputs from the user about their income.Hence the correct option is A) 0.63%. Example 2: An uneducated retailer marks all his goods at 50% above the cost price and thinking that he will still make 25% profit, offers a discount of 25% on the marked price. What is his actual profit on the sales? A) 2% B) 12% C) 6.3% D) 12.5% Answer: Let C.P. = Rs. 100. Then, marked price = Rs. 150. The discount rate is calculated using the following formula: Discount (percentage) = (List Price - Selling Price)/ List Price x 100 Discount % = (Discount/List Price) times; 100 SellingPrice = ListPrice−Discount ListPrice = SellingPrice+Discount Rate of Discount=Discount%= Discount/ListPrice×100 ListPrice = SellingPrice (100/100−discount%)Jun 13, 2022 · To Calculate Profit or Loss using Elif Statement. In this python program, the user enters the sale amount and actual cost of the product. then calculate the loss amount and profit amount using the elif statement. # Python Program to Calculate Profit or Loss actual_cost = float (input (" Please Enter the Actual Product Price: ")) sale_amount ... WebYou'll get 5% discount on total Shopping amount" ; discount = (amount*5)/100; topaid = amount-discount; } else if (amount>200 && amount<=400) { cout << " \n Congrats! You'll get 10% discount on total Shopping amount" ; discount = (amount*10)/100; topaid = amount-discount; } else if (amount>400 && amount<=800) { cout << " \n Congrats!Here is a possible approach: def discount (size, count): price_8oz = 1.20 price_12oz = 1.75 price_12oz_discount = 1.35 if size == 8: return price_8oz * count elif size == 12: if count <= 4: return price_12oz * count elif count > 4: # divmod () divides one number by another and returns both the number of times # the second number fits into the ...Aug 28, 2022 · The mathematical formula to calculate the Discount Percentage for the product is: Discount = Marked Price - Selling price Therefore, Discount Percentage = (Discount / Marked Price) * 100 Below is the program to find the discount percentage for a product: C++ Java Python3 C# PHP Javascript #include <bits/stdc++.h> using namespace std; Solution price =float(input("Enter Price : ")) dp =float(input("Enter discount % : ")) discount = price * dp /100 sp = price - discount print("Cost Price : ", price) print("Discount: ", discount) print("Selling Price : ", sp) Output Enter Price : 4500 Enter discount % : 12 Cost Price : 4500.0 Discount: 540.0 Selling Price : 3960.0