+ 1
Design a program that determines the lowest, middle and highest number from the three given numbers of the user using only if e
Design a program that determines the lowest, middle and highest number from the three given numbers of the user using only if else statement Scoring Three Numbers Enter Three Numbers: 15, 5, 27 The sorted order is 15, 5, 27
8 Respuestas
+ 7
Renzo Bordeos ,
as far as i can see, the code you have shared does not match with requirements of your primary task decription.
> please do a new try and link the code here.
+ 6
Where is your attempt?
+ 5
Renzo Bordeos so do you know how to code in Java?
if yes then show your attempt so that we can rectify you
else go and learn Java first
+ 5
Renzo Bordeos How to share your attempt:
1. Edit your question description
2. Tap "+" button, then "Code"
3. Choose your code from Code Playground
4. Explain your difficulties
This way, we can run and debug your code and test possible solutions
+ 4
Renzo Bordeos please make a code on sololearn then share cause it's not complete
+ 4
share the code in description
+ 4
https://code.sololearn.com/W0RD0yyfZT6p/?ref=app
This is not a question?! (Rule 6)
+ 1
import java.util.Scanner;
public class Payroll {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Get employee details
System.out.println(("\t")+ ("\t") + ("\t")+ "MANUEL LEO COMPANY");
System.out.println(("\t")+ "bLOCK 1 LOT 58 San Bernardino Drive Sta Maria Bulacan");
System.out.println("\t"+ "\t" + "Telephone Number: 7438497, 6428896");
System.out.print("\n" + "Enter the employee's name: ");
String name = sc.nextLine();
System.out.print("Enter the employee's position: ");
String position = sc.nextLine();
System.out.print("Enter your gender: ");
String gender = sc.nextLine();
System.out.print("Enter number of days worked: ");
int daysWorked = sc.nextInt();
System.out.print("Enter rate per hour: ");
double ratePerHour = sc.nextDouble();
// Calculate gross pay
double grossPay = daysWorked * 8 * ratePerHour;
System.out