Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 1 ( Decision Structure ) Assume that the taxes for citizens are calculated based on the annual income according to the following hypotheticals: For
Problem Decision Structure
Assume that the taxes for citizens are calculated based on the annual income according to the
following hypotheticals:
For incomes of $ or less, calculate taxes as: taxes income
For incomes more than $ but less than $ citizens pay on the first
$ and on the remaining income
For incomes equal or above to $ but less than or equal to $ citizens pay
plus $ fixed amount
For incomes above $ citizens pay
The amount of taxes citizens pay per year must not exceed $ regardless of income
Create a program that allows the user to enter the income as input. Once the user enters the
income, your program determines and displays the amount of taxes for that user.
Use any means you wish to get the users input terminal or Input Dialog and display the output
using either terminal or a Message Dialog.
Name your class as QTaxes.java
Problem Decision & Looping Structures
Write a program that simulates a simple currency conversion between US dollars and Euros
according to the following sample run. Use this conversion rate, US Dollar equals to Euro.
Please notice the simple validation of the users input. The user needs to enter the name of the
currency correctly caseinsensitive Name your class as QCurrency.java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started