Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write Java code that accepts an integer number between 0 and 100 that corresponds to a course grade. Your program should do these: -If the

Write Java code that accepts an integer number between 0 and 100 that corresponds to a course grade.

Your program should do these:image text in transcribed

-If the integer n is greater than 0, assign positive to a String called type. If it's anything else, print out a message saying the number is invalid.

-If the integer n is larger than or equal to 50, assign "passed" to a String called status and then print it out.

-If the integer n is less than 50, assign "try again!" to a String called status and then print it out.

-If the integer n is greater than 90, increase a double called pay by 3%.

Write Java code that accepts an integer number between 0 and 100 that corresponds to a course grade. Your program should have the following requirements: If the integer n is greater than 0, assign "positive" to a String called type . If it's anything else, print out a message saying the number is invalid. If the integer n is larger than or equal to 50, assign "passed" to a String called status and then print it out. If the integer n is less than 50, assign "try again!" to a String called status and then print it out. If the integer n is greater than 90, increase a double called pay by 3%

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

cual es el numero de oxidacion del carbono en c2h4o2

Answered: 1 week ago