Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write complete Java programs for all the problems and compile and run and make sure that the program works correctly 1. Write a program that

image text in transcribed
image text in transcribed
image text in transcribed
Write complete Java programs for all the problems and compile and run and make sure that the program works correctly 1. Write a program that reads in a code (C for circumference and A for area) and the radius of a circular pool, computes and displays the circumference or the area depending on the code entered. Use a switch statement for the selection. If the user enters any other character (other than C or A), the program should display that it is an invalid choice. (Formulas: Area =Ir, Circumference = 211r, where = 3.14159, and r is the radius). 2. Monthly income of a salesperson is calculated according to the following commission table: Income $400 plus 10% of sales S350 plus S%ofsales Monthly Sales Greater than or equal to S50,000 Less than$50,000, but greater than or equal to $40,000 Less than S40.000, but greater than or equal to $30,000 ! 5300 plus 6% of sales

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

Challenges Facing Todays Organizations?

Answered: 1 week ago