Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please don't use advance programming such as lists, loops and hard functions. Make it simple! Please also show the analysis, specifcation, flowchart, code, and test

Please don't use advance programming such as lists, loops and hard functions. Make it simple! image text in transcribed
image text in transcribed
image text in transcribed
Please also show the analysis, specifcation, flowchart, code, and test (What's highlighted in red) and please make the code simple!
Programming: Show (1) the analysis, (2) the specifications, (3) the flowchart, (4) the code, and (5) the test for all the following problems: 1. (12 points) Sales Tax Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state sales tax and country sales tax. Assume the state sales tax is 5 percent and the county sales tax is 2.5 percent. The program should display (1) the amount of the purchase, (2) the state sales tax, (3) the county sales tax, (4) the total sales tax, and (5) the total of the sale (which is the sum of the amount of purchase plus the total sales tax). 2. (12 points) Sales Prediction A company has determined that its annual profit is typically 23 percent of total sales. Write a program that asks the user to enter the projected amount of total sales, then displays the profit that will be made form that amount. 3. (12 points) Area of Triangle Write a program to calculate the area of a triangle given the length of its sides a, b, and cusing these formulas: a+b+c Se Area=sls-a (s-bs-c) 4. (12 points) Cost per Square Inch 4. (12 points) Cost per Square Inch Write a program that calculates the cost per square inch of a circular pizza given its diameter and price. The formula for area is Area=ir? 5. (12 points) Arithmetic, Smallest, and Largest Write a program that inputs three integers from the user. Display the sum, average, smallest, and largest of the numbers. Note use Python functions which are introduced in lecture notes. 6. (12 points) Exponent Write a python program that allows the user to enter any integer as a base value, and integer as an exponent value, and displays the value of the base raised to that exponent. (any code written outside chapter 2 will not be considered) Base = x Exponent = y Display the value of xy

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

Compute 214.056+9.3456. Round the answer appropriately

Answered: 1 week ago