public static void quarterstodollars(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter number of Quarters:");
System.out.print("Quarters:"); int Q1 = input.nextInt();
DecimalFormat fmt = new DecimalFormat("$#,###.##"); System.out.println("Total:"+fmt.format(calctotal(Q1)));}public static double calctotal(int Q1) { double total; total=(0.25 * Q1); return (total);}
Hope this helps!
You mean when they screen shot it?
Answer:
public class num7 {
public static void main(String[] args) {
int n =1;
while(n<200){
if(n%5==0 && n%7==0){
System.out.print(n);
System.out.print(",");
}
n++;
}
}
}
Explanation:
- In Java programming Language
- Create and initialize an int variable (n=1)
- Create a while loop with the condition while (n<200)
- Within the while loop use the modulo operator % to check for divisibility by 5 and 7
- Print the numbers divisible by 5 and 7
If u dont have anything important on there reboot it if you do choice 5
Answer:
Storing data on the cloud enables access from any location.
Explanation: