Question
General: All three prompts need to be written in python. Total Price: Lets get you writing more code to drive home the basics of the
General: All three prompts need to be written in python.
Total Price:
Lets get you writing more code to drive home the basics of the language before we start to get creative with our development goals. Make sure to adhere to style and include meaningful comments. Your assignment is to implement the following programs:
The first program is Total Price. The program should find the total price of an item given the price and sales tax. The program should prompt the user for the purchase price of an item and the sales tax rate, it should display the total price of the item.
Celsius:
The second program is Celsius. The program should prompt the user for the temperature in Celsius. It should then convert this temperature into Fahrenheit and display the temperature in Fahrenheit.
Quadratic:
The thirds program is Quadratic. The program should prompt the user for the coefficients a, b, c of a quadratic function. The program should then calculate and display the roots of the function using the quadratic formula. (Hint: Use the math module to calculate a square root). For now, only use values that will return a positive discriminate, test a = -1, b = 2, c = 3.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started