Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. One person invests his money in the company, and the company gives him back the profit, based on the amount of the investment Invest.

image text in transcribed
4. One person invests his money in the company, and the company gives him back the profit, based on the amount of the investment Invest. There are the following situations: Invest 100,000 dollars : bonus is the sum of (1) bonus of 100,000 dollars and (2) 3% of the part greater than 100.000 dollars. Finish the following tasks: (1) What are the profits, when the investments are 35,000, 55,000, and 155,000 dollars, respectively? (1 mark) (2) Write a program to solve the problem of calculating the profit based on the in- vestment. The input is the investment, and the output should be the corresponding profit. You may use if-else statement or switch statement to finish this task

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

Step: 3

blur-text-image

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions