Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

320 X C Computer Science question Chx C Get Homework Help With Chegex G Question 11 Aj491fv9cUmgLtORY8BHrY711iVbfOMKTz2hsYpDA/formResponse Question 1: Write a Java program to compute

image text in transcribedimage text in transcribed

320 X C Computer Science question Chx C Get Homework Help With Chegex G Question 11 Aj491fv9cUmgLtORY8BHrY711iVbfOMKTz2hsYpDA/formResponse Question 1: Write a Java program to compute the prizes to be distributed for the top 3 winners of a competition. The program has to prompt the user to enter the number of competitors participating in the competition and the participation fees required by each competitor. The total of the collected participation fees is distributed as prizes for the top 3 winners as follows: First winner gets 50%. Second winner gets 30%. Third winner gets 20%. The program has to display the total prizes (totalPrizes= nbrCompetitors Participation Fees) to distribute and the prize to distribute for each of the top 3 winners. Sample Runl: How many competitors are participating: 21 What are the participation fees for each competitor: 27.5 Total prizes: $577.5 First winner prize: $288.75 // (total prises - 0.5) Second winner prize: $173.25. (total prizes - 0.3) Third winner prize: $115.5 1 (total prizes - 0.2) Sample Run2: How many competitors are participating: 10 What are the participation fees for each competitor: 25.0 Total prizes: $250.0 First winner prize: $125.0 Second winner prize: $75.0 Third winner prize: 450.0 Your answer 020 X C Computer Science question Ch X C Get Homework Help With Cheo Aj491fV9cUmgLtORY8BHrY7111VbfOMKTz2hsYpDA/formResponse Question2: * Write a Java program that asks the user to enter an integer that is greater than 100 and divisible by Z. If the user entered a correct number, the program will display "Correct!", otherwise it will display "Sorry, incorrect numbert". Sample run 1: Enter an integer greater than 100 and divisible by 7: 140 140: Correct! Sample run 2: Enter an integer greater than 100 and divisible by 7: 14 14: Sorry, incorrect number! Sample run 3: Enter an integer greater than 100 and divisible by 7: 120 120: Sorry, incorrect number! Your answer Back Submit Never submit passwords through Google Forms This form was created inside of Lebanese International University Report Abuse Google Forms o

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago