Answered step by step
Verified Expert Solution
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
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
Get Instant Access with AI-Powered 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