Create a Python script which will compute the TOTAL Sales in Grapes Store. The grapes is sold at 235.75 per kilo. 5% discount is given to customers that will buy 5 kilos and above. Compute also the CHANGE after the customer tendered their money. Format the display with two decimal digits.
Sample Output:
GRAPE STORE:
No. of Kilos: 6
Total Price: 1414.50
Discount: 70.73
Discounted Price: 1343.77
CASH: 1500
Change: 156.23
I need the code to have an output stated above.
1. Create a program based on the attached output using the do-while loop.
2. Your program will keep asking the user to choose from the Options.And the program exits until the user selects Exit.
Create a Python script that will accept three integers and will check each input number. If the input number is EVEN it will display the square cube of the number and if the number is ODD, it will display the square of the number.
Sample Output:
Number 1: 5
Number 2: 8
Number 3: 3
The square of 5 is 25
The cube of 8 is 512
The square of 3 is 9
I need the code to have an output stated above.
A company decided to give bonus to employee according to following criteria: Time period of Service Bonus if More than 10 years 10% if >=6 and <=10 8% if Less than 6 years 5%. Ask user for their salary and years of service and print the net bonus amount.
A new sneaker claims that it can make male athletes jump higher. A sample of 54 male athletes were asked to jump once with their own sneakers on and once wearing the new sneakers. The average jump increased by 0.98 inches with the new sneakers with a standard deviation of 1.22 inches. What is the standard error of the 95% confidence interval for the average jump increase?
3. If there were twice as much as charge on one of the charged objects near the charge sphere, would the electric potential energy of the object in the field of the charged sphere be the same or would it be twice s great? Would the electric potential of the object be the same or would it be twice as great?
There are hundreds of apples on the trees, so you randomly choose just 45 apples and get a mean weight of 89.05 grams with a standard deviation of 4.43 grams. Assuming that the weight of the apples is normally distributed, what is the standard error of the 90% confidence interval for the mean weight of the apples
2. Four charges. q, 5.00 x10'C. q-3.00 x C. q-2.00 x10°C. -6.00 x10 C, are situated at the corners of a square of side 4.00m. Find the potential at the center of the square?
1. A point charge of 3.0 nC with a mass of 4.0 g is moved from x-1.0m to x-1.5m in an electric field of 5.0 N/C with the same direction as the motion of the charge. (a) How much work is done on the charge by the electric force? (b) What is the change in the potential energy of the charge? (c) Assuming that the charge started from rest, what is its speed at x-1.5 m?
Develop a program logic that performs arithmetic functions which design to prompt values
for the variables from users. Both variables will be passed to methods named area() and
perimeter() for a trapezium. Compute the values of two arguments, respectively so each
method should perform the appropriate computation and display the results. Present all
requirements to be prepared to solve this problem.