The Kingdom of Neutronia, where the unit of currency is the tvarp, has the following income tax
Question:
The Kingdom of Neutronia, where the unit of currency is the tvarp, has the following income tax code:
First 5,000 tvarps: 0% tax
Next 10,000 tvarps: 10% tax
Next 20,000 tvarps: 15% tax
Tvarps after 35,000: 20% tax
For example, someone earning 38,000 tvarps would owe 5,000 × 0.00 + 10,000 × 0.10 + 20,000 × 0.15 + 3,000 × 0.20, or 4,600 tvarps. Write a program that uses a loop to solicit incomes and to report tax owed.The loop should terminate when the user enters a negative number or non-numeric input.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (6 reviews)
The program is as follows i The user enters the values of his or her incomes the program calculates ...View the full answer
Answered By
James Warinda
Hi! I’m James Otieno and I'm an experienced professional online tutor with countless hours of success in tutoring many subjects in different disciplines. Specifically, I have handled general management and general business as a tutor in Chegg, Help in Homework and Trans tutor accounts.
I believe that my experience has made me the perfect tutor for students of all ages, so I'm confident I can help you too with finding the solution to your problems. In addition, my approach is compatible with most educational methods and philosophies which means it will be easy for you to find a way in which we can work on things together. In addition, my long experience in the educational field has allowed me to develop a unique approach that is both productive and enjoyable.
I have tutored in course hero for quite some time and was among the top tutors awarded having high helpful rates and reviews. In addition, I have also been lucky enough to be nominated a finalist for the 2nd annual course hero award and the best tutor of the month in may 2022.
I will make sure that any student of yours will have an amazing time at learning with me, because I really care about helping people achieve their goals so if you don't have any worries or concerns whatsoever you should place your trust on me and let me help you get every single thing that you're looking for and more.
In my experience, I have observed that students tend to reach their potential in academics very easily when they are tutored by someone who is extremely dedicated to their academic career not just as a businessman but as a human being in general.
I have successfully tutored many students from different grades and from all sorts of backgrounds, so I'm confident I can help anyone find the solution to their problems and achieve
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program that uses the Input Box method to let the user enter 5 exam scores and 5 student names into two separate arrays. The information for each student is stored in the same relative...
-
Write a program that simulates stable storage. Use two large fixed-length files on your disk to simulate the two disks.
-
Write a program that uses the files described in Programming Exercise 12.31 and displays a ranking summary table for the first five girl?s and boy?s names as follows: The popularity ranking of baby...
-
The graph of g consists of two straight lines and a semicircle. Use it to evaluate each integral. (a) g(x) dr (b) g(x) dr (c) () di y=g(x)
-
Using your own words and your own experience, what skills and abilities do you think you need to have to thrive at an organization like Amazon?
-
There is a difference of 4.6 ppm in the 1H chemical shifts of CHCl3 and CH3CCl3. What is the chemical shift for the protons in CH3CCl3? Explain your reasoning
-
How should a capital expenditure be recorded? a. Debit capital b. Debit an expense C. Debit a liability d. Debit an asset
-
Transfer pricing, goal congruence. The Orsilo Corporation makes end sells 10,000 multisystem music players each year Its Assembly Division purchases components from other divisions of Orsilo or from...
-
Assume a risk-free asset in the U.S. is currently yielding 4.1 percent, a Canadian risk-free asset is yielding 3.7 percent, and the current spot rate is C$1.2633 (Canadian Dollar per U.S. dollar)....
-
Kenmare Architects Ltd. (KAL) was incorporated and commenced operations on January 1, 2014. Sheila Kenmare, the company's only employee, consults with various clients and uses expensive equipment to...
-
Put together a program that keeps track of monetary contributions to the Society for the Preservation of Rightful Influence. It should ask the user to enter the number of contributors and then...
-
Construct a conditional expression that is equal to the absolute value of a variable. That is, if a variable x is positive, the value of the expression is just x, but if x is negative, the value of...
-
A mixture of 0.500 mol dm 3 aqueous ammonia and 0.500 mol dm 3 ammonium chloride acts as a buffer solution. a. Explain how this buffer solution minimises changes in pH on addition of i. Dilute...
-
What are the relative advantages and disadvantages of JVs compared to other types of strategic alliances?
-
What are the potential pitfalls of strategic alliances?
-
Suppose you are deciding whether to locate a factory in China or in Mexico to serve the U.S. market. What factors would influence your location decision? Suppose the price of oil suddenly rises. What...
-
Under what circumstances might public and private partners undertake a strategic alliance?
-
Why does the MFN principle promote multilateral, rather than bilateral, negotiations among WTO members?
-
Obtain an expression for the width of the trench bottom as a function of time for the mask shown in Fig. 13.17b?
-
You are the newly appointed tax practitioner to complete Emilys tax return and have downloaded the prefill report for Emilys tax return (hint, you can read what a prefill report is here (Links to an...
-
Prove the validity of the expression Overflow = c n c n 1 for addition of n-bit signed numbers.
-
What is the critical delay path in the multiplier in Figure 3.35? What is the delay along this path in terms of the number of gates? m3 FA P7 P6 m3 m FA FA P5 m3 m m FA FA P4 O FA m mo m2 D- FA FA P3...
-
In Figure 3.17 we presented the structure of a hierarchical carry-lookahead adder. Show the complete circuit for a four-bit version of this adder, built using 2 two-bit blocks. 32 31-24 31-24 Block 3...
-
Using the Internet, identify a known sexual offender who has been arrested, convicted, and sentenced. Using the available information, describe each of the following: (a) The type of behavior that...
-
The analysis of the current strategic and leadership issues related to human resources and environmental pressure that the Australian hospitality and tourism industry faces due to labor shortage,...
-
cos (2x2)-1 Let f(z) = Evaluate the 6th derivative of fat z = 0. 2 f(0) (0)= Hint: Build a Maclaurin series for f(x) from the series for cos(x).
Study smarter with the SolutionInn App