5. Write a complete program that makes the system interactively obtain the number of hours a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5. Write a complete program that makes the system interactively obtain the number of hours a person worked during a two week period and computes and prints the wages using the pay rate of $12 per hour, income tax at 15% rate, and the net salary after taking the tax off. 6. Write a program to have the system obtain the number of nickels, number of dimes and the number of quarters found in a piggy bank and writes altogether how many coins were in the piggy bank, and what the total dollar value of the coins is on the screen. 7. Write a program to have the system obtain three floating point values, store them in the names a, b, and c and then compute the expression b-4ac and write it on the screen. 8. Write a program that makes the system interactively obtain double type values for x 3x2 + 2xy + y2 and y from the user, compute the expression and print the answer on the 3xy screen. 60 9. Write a program to have the system obtain the radius of a sphere and to write the volume of the sphere on the screen. (Volume of a sphere is (4/3)r'.) 10. Write a program to have the system obtain the radius of the base and the height of a cylinder and compute and print its volume. (Volume of a cylinder is ar'h, where h is the height.) 5. Write a complete program that makes the system interactively obtain the number of hours a person worked during a two week period and computes and prints the wages using the pay rate of $12 per hour, income tax at 15% rate, and the net salary after taking the tax off. 6. Write a program to have the system obtain the number of nickels, number of dimes and the number of quarters found in a piggy bank and writes altogether how many coins were in the piggy bank, and what the total dollar value of the coins is on the screen. 7. Write a program to have the system obtain three floating point values, store them in the names a, b, and c and then compute the expression b-4ac and write it on the screen. 8. Write a program that makes the system interactively obtain double type values for x 3x2 + 2xy + y2 and y from the user, compute the expression and print the answer on the 3xy screen. 60 9. Write a program to have the system obtain the radius of a sphere and to write the volume of the sphere on the screen. (Volume of a sphere is (4/3)r'.) 10. Write a program to have the system obtain the radius of the base and the height of a cylinder and compute and print its volume. (Volume of a cylinder is ar'h, where h is the height.)
Expert Answer:
Answer rating: 100% (QA)
Sure here are programs in Python for each of the tasks youve mentioned 5 Calculate wages after tax python Obtain the number of hours worked hoursworke... 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
-
Why is commercial risk so dangerous to the operations of a foreign subsidiary? How can you mitigate commercial risk when dealing with international suppliers and retailers?
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Exporting files into binary files is done in O Logical files O Physical backup O Physical full backup O Physical partial backup L
-
Determine the shear force and moment acting at a section passing through point C in the beam. Units Used: kip = 103 lb Given: w = 3kip/ft a = 6 ft b = 18 ft B
-
Normal balances of accounts for retail business What is the normal balance of the following accounts?
-
Consider the gasoline mileage data in Table B.3. a. Does the correlation matrix give any indication of multicollinearity? b. Calculate the variance inflation factors and the condition number of...
-
1. Compute he financial ratios discussed in the chapter for Wholesome Foods for 2012 and 2013. 2. Prepare a cash flow statement for the firm for 2012 and 2013.
-
How does the standard define relevance and reliability? What must an auditor do if conditions indicate that a document may not be authentic or the terms in a document have been modified but that the...
-
Consider the following parlor game to be played between two players. Each player begins with three chips: one red, one white, and one blue. Each chip can be used only once. To begin, each player...
-
4-3 Three mutually exclusive alternatives are being considered: A B C First cost, $ 2,000 7,000 18.000 Ann. Revenue, $/yr 600 Useful life, yrs 5 1,900 5 3.200 10 a. Calculate the PW of each...
-
Redraft each of the accounts given in your answer to Review Question 5.6A in three-column Style. Data From Question 5.6A Enter the following transactions in personal accounts only. Bring down the...
-
Redraft each of the accounts given in your answer to Review Question 5.2 in three-column style. 2016 June 1 Purchases on time from J. Wilson 240; P. Todd 390; J. Fry 1,620. 3 Purchases on time from...
-
Enter the following in the personal accounts (i.e. the creditor and debtor accounts) only. Do not write up the other accounts. Balance-off each personal account at the end of the month. After...
-
Enter the following in the appropriate creditors' accounts (i.e. your suppliers' accounts) only. Do not write up the other accounts. Then balance-off each of these personal accounts at the end of the...
-
Redraft each of the accounts given in your answer to Review Question 5.1 in three-column style. 2016 May 1 Sales on time to B. Flyn 810; F. Lane 1,100; T. Fey 413. 4 Sales on time to F. Start 480; B....
-
CODE IN JAVA, USE THE CODE TEMPLATE PROVIDED ON THERIGHT coderbyte medium Time left: Unlimited time Array Challenge Have the function ArrayChallenge (strArr) read the array of strings stored in...
-
Find the volume of the described solid S. A frustum of a right circular cone with height h, lower base radius R, and top radius r -r- --R
-
In 2012, Margaret and John Murphy are married taxpayers who file a joint tax return with AGl of $25,000. During the year they incurred the following expenses: Hospitalization insurance...
-
Walter, a single taxpayer, purchased a limited partnership interest in a tax shelter in 1985. He also acquired a rental house in 2012, which he actively manages. During 2012, Walter's share of the...
-
Carl and Jenny adopt a Russian orphan. The adoption takes 2 years and two trips to Russia and is final in 2012. They pay $6,000 in 2011 and $7,500 in 2012 of qualified adoption expenses, and have AGI...
-
Your boss gives you a sample of "gunk" and asks you to measure its viscosity. You do this in a cup and bob viscometer that has an outer (cup) diameter of 2 in., an inner (bob) diameter of $1.75...
-
The following data were obtained for a proprietary salad dressing tested at $22^{\circ} \mathrm{C}$ in a cup and bob viscometer (cup diameter $=4.2 \mathrm{~cm}$, bob diameter $=4.01 \mathrm{~cm}$,...
-
An inclined tube manometer with a reservoir is used to measure the pressure gradient in a large pipe carrying oil $(\mathrm{SG}=0.91)$ (see Figure $\mathrm{P} 4.5)$. The pipe is inclined at an angle...
Study smarter with the SolutionInn App