Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Anyone can help to create java for these questions? VU LI OLULU - 1) (20 points] Income by City Create the Income by City calculations

image text in transcribedimage text in transcribed

Anyone can help to create java for these questions?

VU LI OLULU - 1) (20 points] Income by City Create the Income by City calculations you developed in Lab 1 as a Java program. You will prompt the user to enter the annual income for Dallas. Calculate the equivalent income for the eight cities listed using the adjustment percentages provided. Format the output (using printf) so the data aligns in three columns as shown in the sample output below: Sample run: 0 20% 0 $ java IncomeByCity Enter annual income - Dallas: $ 100000 Location Adjustment Equivalent Income New York 34% 134,000.00 Los Angeles 120,000.00 Chicago 11% 111,000.00 Minneapolis 106,000.00 Houston $ 101 ,000.00 Memphis 99,000.00 San Antonio 97,000.00 Toledo 95,000.00 0 0 0 0 0 0 Note: highlighted text indicates data entered by user at runtime. 2) (20 points] Salary Forecast Create the Salary Forecast solution you created in Lab 1 as a Java program. Prompt the user for an integer as the annual raise percent, and then prompt for a double as starting annual salary. Calculate the raise amount and new salary for each of the next 10 years. Align the data in three columns (using printf) as shown in the sample output below: Sample run: % java SalaryForecast Enter annual raise %: 5 Enter current salary: 48000 Year Raise Salary 2019 $ 48,000.00 2020 $ 2,400.00 $ 50,400.00 2021 $ 2,520.00 $ 52,920.00 2022 $ 2,646.00 $ 55,566.00 2023 $ 2,778.30 $ 58,344.30 2024 $ 2,917.22 $ 61,261.52 2025 $ 3,063.08 $ 64,324.59 2026 $ 3, 216.23 $ 67,540.82 2027 $ 3,377.04 $ 70,917.86 2028 $ 3,545.89 $ 74,463.75 2029 $ 3,723.19 $ 78,186.94

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions