Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

iercent wida be witisen as 002 Determining percentages is a common calculation in computer programming. Although the X symbol is used in general mathematics to

image text in transcribed
image text in transcribed
iercent wida be witisen as 002 Determining percentages is a common calculation in computer programming. Although the X symbol is used in general mathematics to indicate a percentage, most progtammin languages (including Javal do not use the % symbol for this purpose. In a program you have to convert a percentage to a floating point number, just as you would if you were using a caloulator, For eample, 50 percent would be written as 0.5 and 2 percent would be witten as 0.02. You create a proge and alall it Contributionjava. Program nun and dinplay the statement. "What is your manthly incoine: then you enter a number, You are allowed to contribut a portion of your ere to a retirement plan. You want to determine the amount of your pay that will go into the plan if you contribute 5 percent, 8 perrent, or 10 percent of vour gross wages. Vou want program divploy calculated contribution for the goven percent. Jo makn this determination vou write a program lake the one shown in Code thking 2-1il from the text book

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

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

State the importance of control

Answered: 1 week ago

Question

What are the functions of top management?

Answered: 1 week ago

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago