Write a program that does the following in order: 1. Ask user to enter a name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that does the following in order: 1. Ask user to enter a name 2. 3. Ask the user to enter five numbers "amount1", "amount2", "amount3", "amount4", "amount5" Calculate the sum of the numbers "amount1", "amount2", "amount3", "amount4", "amount5" If the sum is greater than 0, print out the sum 4. 5. If the sum is equal to zero, print out "Your account balance is zero" If the sum is less than 0, print out "Your account is overdrawn" and the "negative amount" Round all print values to 1 decimal place 6. 7. Write a program that does the following in order: 1. Ask user to enter a name 2. 3. Ask the user to enter five numbers "amount1", "amount2", "amount3", "amount4", "amount5" Calculate the sum of the numbers "amount1", "amount2", "amount3", "amount4", "amount5" If the sum is greater than 0, print out the sum 4. 5. If the sum is equal to zero, print out "Your account balance is zero" If the sum is less than 0, print out "Your account is overdrawn" and the "negative amount" Round all print values to 1 decimal place 6. 7.
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that does what youve described python Step 1 Ask user to enter a name name ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
In the figure, a circular cross-section rod with a diameter of 4 cm, made of material with number 1, is placed inside the pipe produced from material with number 2. The entire system is mounted on a...
-
Bradley-Link's December 31, 2024, balance sheet included the following items: Long-Term Liabilities 10.0% convertible bonds, callable at 105 beginning in 2025, due 2028 (net of unamortized discount...
-
Truman, an HR Manager, was recently hired at Fang corp. to help make the organization a more attractive place to work. Whereas their competitors have the resources to offer expensive benefits and...
-
Reid Corporation's balance sheet at January 1, 20X9 reflected the following balances: Cash & Receivables $ 30,000 Inventory $ 75,000 Land $125,00 Building & Equipment (net) $850,000 Common Stock...
-
The double-toggle latching mechanism shown is used to hold member G against the support. Knowing that α = 75°, determine the force exerted on G. 20 lh 65 n. 25 in L in. 4.5 in. L5 in.
-
Has the price of any of the products or services your company produced changed recently? How could you use elasticity of demand to help in making that decision? Price elasticity of demand". You can...
-
Consider the inspection described in Example 2.11. Six parts are selected randomly from a bin of 50 parts, but assume that the selected part is replaced before the next one is selected. The bin...
-
Use the ending balances from Problem 10- 27 to prepare a balance sheet.
-
For the past year, a firm had sales of $41,987, interest expense of $3,232, cost of goods sold of $16,500, selling and administrative expense of $11,000, and depreciation of $6,200. If the tax rate...
-
Macon Machines Company began operations on November 1, 2024. The main operating goal of the company is to sell high end robots. Customers may pay using cash or if appropriate, credit is extended to...
-
One of your Real Estate Customer wants your help. Your Customer wants to improve his/her Front Lawn by: Having a Water Fountain in a Circular Diameter of 15 Ft and Planting Rose bushes around the...
-
Give a SQL query that lists all products in the invoice database of Section 24.2. Invoice Invoice_ Number INTEGER 11731 11732 11733 Customer_ Number INTEGER 3175 3176 3175 Payment DECIMAL (10, 2) 0...
-
Add a method void depthFirst(Visitor v) to the Tree class of Section 17.4. Keep visiting until the visit method returns false.
-
What is the difference between a thread that sleeps by calling sleep and a thread that waits by calling await?
-
Write a program that sorts an array of bank accounts by increasing balance. Pass an appropriate lambda expression to Arrays.sort.
-
Playfair cipher. Another way of thwarting a simple letter frequency analysis of an encrypted text is to encrypt pairs of letters together. A simple scheme to do this is the Playfair cipher. You pick...
-
Glee Mason Company is manufacturing computers and has the following cost of inventory data: Direct Labour $37,100 Purchase of raw materials $65,190 Factory Management monthly Salary $15,900 Monthly...
-
TRUE-FALSE QUESTIONS 1. In terms of preliminary analytical procedures, assume that the company has introduced a new product with a low price point and significant customer demand. The auditor would...
-
Ray and Maria Gomez have been married 3 years. They live at 1610 Quince Ave., McAllen, TX 78701. Ray works for Palm Oil Corporation and Maria works for the City of McAllen. Maria's Social Security...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. The Incisors own a rental beach house in Hawaii. The beach house was rented for the full year during 2012...
-
Lisa Sizemore, a taxpayer in the 10-15 percent tax bracket, purchased stock as an investment on July 11, 2011. She sold the stock on July 9, 2012, 2 days before qualifying for the long-term holding...
-
Define internal combustion engine and explain how it is different from external combustion engines?
-
In an air standard Otto cycle, the pressure and temperature at the start of compression stroke are 1 bar and \(30^{\circ} \mathrm{C}\), respectively. The temperature at the end of compression is...
-
In I.C. engines, power developed inside the cylinder is known as: (a) Brake horse power (b) Indicated horse power (c) Pumping power (d) None of the above
Study smarter with the SolutionInn App