Write a Python program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred. Cost price and selling price of an item is input by the user.
Q: Write a python program to get the profit amount of a company as input and calculate & print the…
A: The problem is based on finding the income based on the profit taken as input from the user.
Q: Write a python program that takes a sale amount as an input and print the discount given based on…
A: The variable sales_amount takes the input from the user Then the function is used to calculate the…
Q: Write a python program to display the output as shown below. A customer purchases five mobile…
A: Python Program:-n = 5mobile_name = []price = []for i in range(n):…
Q: Write a Python program that will ask the user for his/her weight (in kilograms), then compute…
A: Your Python program is given below as you required with an output.
Q: Write a Python Program to: •Prompt user for the tank's capacity in gallons •Prompt user for…
A: capacity=float(input("enter tank's capacity in gallons: "))miles_per_gallon=float(input("enter…
Q: Consider the value of x=29, y=29, a=29 & b=29, and give the output for the below python program…
A: I have given an answer in step 2.
Q: Write a python program to calculate the average of the student in 3 courses and display the grade…
A: sub1=int(input("Enter marks of the first subject: "))sub2=int(input("Enter marks of the second…
Q: Write a Python program that prompts the user for the cost of two items to be purchased. Then prompt…
A: #ask user to enter price of item 1 and 2 price1=float(input("Enter price of item 1 "))…
Q: Write a python program to get the daily sales amount of a company as input and calculate & print the…
A: sales = int(input()) if sales > 75000: print("Profit =",sales * 35/100) elif…
Q: Use Python Write a program to prompt the user for hours and rate per hour to compute gross…
A: Answer: Program:- #!/bin/python3 #it is python version (no need to write) Hours=int(input("Enter…
Q: Write a Python program that keeps a number from the user (between 1 and 7) and displays the name of…
A: GIVEN: 1- Write a Python program that keeps a number from the user (between 1 and 7) and displays…
Q: Write a python program to get input choice from the user and perform the operations according to…
A: """Python program to get input choice from user and perform operations""" #display menuprint("1 -…
Q: In Python: Given x= 5 and y= 5. Write a Python program to compute value of the expression: z = x°y?…
A: Write a Python program to compute the value of the expression z = x3y2 + x2y3 + x2y + xy2 + x + y.…
Q: Write a python program that takes a sale amount as an input and print the discount message as given…
A: This problem can be solved using basic conditional statements. Follow the code below for better…
Q: Write a python program to calculate speed of the car by taking distance and time and display the…
A: Please find the answer below :
Q: A charge particle goes undeflected in a cross electric and magnetic field. Write a Python program to…
A: Write a Python program to input the magnetic field(B) and print the electric field(E) in the output…
Q: Write the python program to calculate the speed(s=d/t) of the car by taking distance(d) and time(t),…
A: Below is the required python code. NOTE: If you want to run the program successfully, use the proper…
Q: Write a python program to get input amount from the user display the total bill amount after…
A: Program : amnt = int(input("Enter Amount: ")) if(amnt>0): if amnt<=100: disc =…
Q: Write a Python program to calculate student grades. It accepts a numerical grade as input and it…
A: Accept the numeric grade as input and then start checking from 60 which range does input falls and…
Q: C#, that reads the price and quantity from the user and calculate the amount due . If the amount due…
A: Start Print "Enter the price: " Input price Print "Enter the quantity: " Input quantity amt <-…
Q: Write a Python program to: ask the user to enter the price of an item. Note: use a whileloop to…
A: The following is the python code along with the comments to have a better understanding of the code.…
Q: A seller sells a product and your task is to make a python program that check whether the seller had…
A: #reading actual price of product from useractualPrice = float(input('Enter actual price of…
Q: Write a python program to get the profit amount of a company as input and calculate & print the…
A: START INPUT profit SET income = profit IF profit > 25000 then income *= 0.18 ELSE IF profit >…
Q: Write a Python program to read the temperature of the day and if the temperature is above 45, then…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: Write a python program that takes a sale amount as an input and print the discount percentage given…
A: algorithm:- take input from user. apply if elif else to check the range display the discount…
Q: Write a Python program to display cost according to the following table: Distance 0 through 100 More…
A: The above question is answered in step 2 :-
Q: Write a python program to take input for the amount spent and calculate the final amount after…
A: #to read inputamount=int(input('Enter the amount:'))#else if statements to calculate discount amount…
Q: Write a python program to calculate the average of the student in 3 courses and display the grade…
A: print('enter subject 1 marks')a=int(input())#inputting subject1print('enter subject 2…
Q: Write a python program in which user enters a value x and in output print the value of sin(x) +…
A: Take input the value of x using input() function as a float variable and then calculate the value of…
Q: Write a python program that will take the number of goals and the number of assists by a footballer…
A: Find Your Solution Below
Q: Write a python program to get an integer input from the user and do the following: Choice Task <= 20…
A: num = int(input("Enter an integer: ")) # taking an integer from user if num <= 20:…
Q: Write a python program to check whether the student passed the exams Or not. Assume the total marks…
A: Required:- Write a python program to check whether the student passed the exams Or not. Assume the…
Q: Write a Python which to calculate discount on an amount. If the entered amount is <= 100 OMR, print…
A: Given: Write a Python which to calculate the discount on an amount. If the entered amount is <=…
Q: Write a python program that takes a sale amount as an input and print the discount percentage given…
A: Algorithm Start Var amt, discount Input amt from user If (amt>=10 AND amt<90 )…
Q: Write a Python program to ask the user how many gallons of gasoline can their car hold and how far…
A: By the given problem, the coding example will take input from the user of tank capacity of the car…
Q: Question 2 Write a Python program to read the temperature of the day and if the temperature is above…
A: The Code is in step 2
Q: Write a python program that accepts as input the loan amount, the interest rate per year, and the…
A: loan = int(input("How much is the loan: "))rate = int(input("Enter interest rate:…
Q: Question Write a python program that takes a sale amount as an input and print the discount…
A: Here I have first of all asked the user for the sale amount and stored it into a variable. Then I…
Q: Write a python program to calculate the average of the student in 3 courses and display the grade…
A: Please see the step 2
Q: Write a python program to get the daily sales amount of a company as input and calculate & print the…
A: calculateProfite.py
Q: write a python code input: poll 5 for students thire garde on exam. outpu: print avarge score,…
A:
Q: In Python. Write a code to calculate profit or loss.
A: Program Approach – Prompt user to enter the cost price. Prompt user to enter the selling price. If…
Q: Write a Python which to calculate discount on an amount. If the entered amount is <= 100$, print…
A: Please find the answer below :
Q: Write a python program that will input a value in seconds and output in hours, minutes and seconds.
A: In this question, we are asked to write a python program to print the hours, minutes and seconds…
Q: The marks obtained by a student in 5 different subjects are input by the user. The student gets a…
A: Objective: This program reads the marks obtained by a student in 5 different subjects. The division…
Q: Write a python program to take input for amount spent and calculate the final amount after giving…
A: Algorithm: Start Enter amount n if n>=50 and n<=100 Calculate n = n-(0.05*n) print n elseif…
Q: Write a Python program that will receive as input the name and price of an unknown number of items.…
A: Let us consider a python program that will receive as input the name and price of unknown number of…
Q: Write a python program that determines the number of days, hours, minutes, and seconds based on the…
A: Program code: # Function convert second into day # hours, minutes and seconds def…
Q: Using Python, write a program that will check the employees years in service and office. The user…
A: Below is the required python program. Program Approach: Prompt a message to take the year and…
Q: Write a program that computes the rent in five years and the total rent for one year starting five…
A: Input Rent for a month and Calculate Rent for 5 years and also display rent per year
solve within 30 minutes
this is python code
Step by step
Solved in 2 steps
- Create a python program of the given problem. Problem # 4: Juan Tamad bought a toy for Php1, 500.00 and sold it to others for Php2, 500.00. Explain how we can find if Juan Tamad has made a profit or a loss with the following: a. Ask the user to prompt the Cost Price and the Selling Priceb. If selling price > cost price then calculate the profit and display the profit, Otherwise calculate the loss and print the loss.2 – Python program to prompt the user to enter the grades of 5 subjects (out of 100 points) and calculate the percentage of those grades. Finally, display the corresponding grades with respect to the marks obtained by the following criteria: a - 90 and above – A b – 80 to 89 – B c – 70 – 79 – C d – 60 – 69 – D e – 50 – 59 - E f – below 50 – F1. Write a Python program that will compute the final grade of a student. Final Grade is 30% average of quiz1, quiz2, and quiz3 plus 20% average of project 1, project 2, and project 3 plus 30% of final exam grade plus 10% of assignment grade plus 10% class standing
- Write a python program that will take the number of goals and the number of assists by a footballer in a season as inputs. Then the program should calculate the total number of goals and assists and print the information according to the provided chart below.Total Goal Contribution = number of goals + number of assists Total number of goals and assists Messagebetween 0 and 9 (inclusive) "Career might be in danger"between 10 and 20 (inclusive) "Average performance."between 21 and 30 (inclusive) "You were impressive."between 31 and 40 (inclusive) "Simply astounding."greater than 40 "Candidate for Footballer of the Season!"all other inputs "Invalid Input"Sample Input:Goals = 10Assists = 2 Sample Output:Total Goal Contribution: 12Average performanceWrite a program to accumulate the "x" deposits made in a month in a savings account, include in the cycle, enter the month and the amount of the deposit and at the end of the cycle show the total amounts. You must validate that it is the current month, if another month is entered, ignore it and at the end also show the total correct deposits. Subject: Python ProgrammingWrite a complete and syntactically correct Python program to solve the following problem: Write a program for Professor Polanco at Austin Community College that allows him to keep a record of the students’ average grade in his class. The program must be written in accordance with the following specs: 1. The input must be interactive from the keyboard. You will take input for 12 students. 2. You will input the students’ name and an average grade. The student cannot enter an average below zero or above 100. Your program must raise and handle an exception should this occur. (LO 5) a. The exception should cause the program to return and get a new grade 3. Write all output to a file named grades.txt (LO 1, 3, 4) 4. Close the output file. (LO 3, 4) 5. Open the file grades.txt for input. (LO 2) 6. Your program will raise and handle an exception if the file is not found. (LO 5) a. I will test this aspect by changing the file name and looking for your exception code (your exception should cause…
- Create a program in the Python programming language To calculate the value of the following equation: X = a3 + b2 + c calculate the value of x with a, b, c, as input valuesWrite a python program to calculate the electricity bill after taking units from user. The units which are less than 100 then cost will be $3.67 /unit And for all greater than this it will $ 5.00/ unitCreate a Python program that determines whether a shopping order is eligible for free shipping. An order is eligible for free shipping if the total cost of items purchased exceeds $100
- Write a python program and take two inputs from the user. The first input will be the number of canvases and the second input will be the number of paint tubes ordered. Based on the price of each item, calculate the total amount that Fiona needs to pay including the discount.create a PYTHON program that will make a m Sale Management system. The inventory must have 5 categories and each categories must have 5 items that have price. Use item code for items ex. Water $2 - A1 , Coffee $2- A2 Example of categories and items are: Drinks - Water $2, coffee $2 , softdrinks $3 , Tea $1 , Milktea $2 Main course- Sphagetti $3 , Burger $4 , Fries $2, Chicken $3, Pizza $4 requirement output: ~~test case example~~ Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased items [4] Exit User: 1 System: Here are the menu: Drinks: Water $2 = A1, coffee $2 = A2 , softdrinks $3 , Tea $1 , Milktea $2 Main course: Sphagetti $3 , Burger $4 , Fries $2, Chicken $3, Pizza $4 (please use item code for item) ~~ the user will press enter ~~ (If the user choose the Display menu, it must have a second choice once the user press the enter) Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased…Write a python program to check whether the student passed the exams Or not. Assume the total marks are 500 and passed percentage is 33.34% . Take all the required things from user.