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?
-
What is the available user bandwidth in an OC-12c connection?
-
Construct a frequency distribution for the data set using eight classes. Include class limits, midpoints, boundaries, frequencies, relative frequencies, and cumulative frequencies. Use the data set,...
-
What accounting problem arises if an internal service fund is operated at a significant profit? What accounting problem arises if an internal service fund is operated at a significant loss?
-
Given the following graphical user interface for Hospital Putra Malaysia. Hospital Putra Malaysia Patient Profile Ic No Name : Patient Profile Address: Telephone: Age Gender : Male Female Room...
-
Tony Matheson plans to graduate from college in May 2024 after spending four years earning a degree in sports and recreation management. Since beginning T-ball at age five, hes been actively involved...
-
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 spaceship heads directly toward an asteroid at a relative speed of \(0.75 \mathrm{c}\). When it is \(3.0 \times 10^{8} \mathrm{~m}\) from the asteroid, as measured in the asteroid's frame, the...
-
Let T: P(R) R2 and T(a + bt) -> ["+"]. Find T-1
-
1A. If personal income is the currently the same in two countries "Country Alpha" and "Country Beta," but Country Alpha has a faster annual growth rate in personal incomes, which country will have a...
-
Write the Python code for the function getEvenCount(num), where num is an integer. The function returns the number of even-valued digits in num. 0, 2, 4, 6, and 8 are even digits. You are not allowed...
-
Cultural Faux Pas and Brand Identity Discussion How can businesses avoid making cultural faux pas in their marketing efforts while still maintaining brand identity and appeal? What are some of the...
-
We focus on how important the U.S. is to the world economy. Select 1 of the 2 questions to answer. Be certain to read classmates post BEFORE you post so we avoid duplication of content. #1) Suppose...
-
Is there any way to implement truly stable storage? Explain your answer.
-
What will be the final value of DI after executing the following piece of code? Execute the instructions dependently one after another. CLD MOU CX,OFOH MOU AX.02874H MOU DI,01000H MOU ES, DI SUB...
-
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...
-
The Production Department of Hruska Corporation has submitted the following forecast of units to be produced by quarter for the upcoming fiscal year: Units to be produced 1st Quarter 2nd Quarter 3rd...
-
You go to the hardware store to buy a new 50 ft garden hose. You find you can choose between hoses of inch and inch inner diameter. Compare the rate at which water flows through the two types of...
-
Miller Company's contribution format income statement for the most recent month is shown below: Sales (32,000 units) Variable expenses Total $ 224,000 128,000 Contribution margin 96,000 Per Unit $...
Study smarter with the SolutionInn App