Question: Question 1 : Write a Java program that takes an input in feet and converts it to inches. If the input is less than 0

Question 1: Write a Java program that takes an input in feet and converts it to inches. If the input is less than 0, print "Invalid input," otherwise, print the equivalent length in inches.
Example:
If feet =-3: Print Invalld
If feet =6.3: Print 75 inches
Question 2: Take 3 numbers as input from the user and print the blggest and the smallest numbers.
Example:
Input:
num 1=4
num 2=3
num3=7
Output:
Biggest number =7
Smallest number =3
Question 3: Write a Java program that takes an integer number from the user and prints "Positive" if the number Is greater than 0, "Negative" if the number is less than 0, and "Zero" If the number is 0.
Example:
Input: num =1| Output Positive
Input: num =-4| Output: Negative
Input: num =0| Output: Zero
between 60 and 69(inclusive), print "D". Otherwise, print "F".
Example:
Input:
| Output: A
Input score =85| Output: B
Input score =76| Output: C
Input
Input
| Output: D
I Output: F
of the operation between and b. If the operator is not one of the specified characters, print "Invalid operator".
Example:
Input: a=5,b=3, operator =1, Output: 8.0
Input a=10,b=2, operator =11 Output: 5.a
Input: a=8,b=2, operator =?'%'1 Output:
discount. Otherwise, no discount is applied. Print the final amount after applying the discount.
Example:
Input: purchaseAmount =1500| Output: Final Amount: $1350.0
Input purchaseAmiount =750| Output: Final Amount: $712.5
Input: purchaseAmount =400| Output Final Amount: $400.0
Question 7: Develop a Java propram that acts as a simple calculator. The program takes three inputs: two double values a and b, and a char operator. Depending on the value of
of the operation between a and b. If the operator is not one of the specified characters, print "Invalid operator".
,'-',',','/'), the program should print the result
 Question 1: Write a Java program that takes an input in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!