Highlight the text , then on the home toolbar , look for a row of lines , when you hover over each it'll say what is what e.g. align left , or centre . you can also centre text by highlighting it and pressing crtl + e <span />
Answer:
import java.util.Scanner;
public class Division {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter an integer");
int userNum = in.nextInt();
System.out.println("Enter the divisor");
int x = in.nextInt();
int first = userNum/x;
int second = first/x;
int third = second/x;
int fourth = third/x;
System.out.println(first+" "+second+" "+third+" "+fourth);
}
}
Explanation:
- In Java programming langauge use the scanner class to receive the values from the user (userNum and x)
- Carryout integer division of userNum/x to obtain the first number
- Repeat the sam step to obtain the second, third and fourth number
- Output the numbers to the user
Answer:
To calculate the profit of the month, the monthly cost should be extracted from the monthly generated revenue, while the revenue is the total sales of the store for the month.
Explanation:
In the excel file worksheet, the total number of shoes should be calculated. And a formula to calculate the revenue for the month should multiply the total shoes by the price of shoes per pair
The formula to calculate the profit is gotten from total sales minus the fixed cost.