Question: d) What is meant by machine language? achine language reals oney L and O e) What is the difference between a compilation error and a
d) What is meant by machine language? achine language reals oney L and O e) What is the difference between a compilation error and a logical error pealion errer does uot delhe the problem caeyror e problem 4. (10 pts) Show what is printed by the following program. Assume that th 5 1 are typed in, one at a time, in response to the prompts: 25 3 10 /* problem 4*/ import java.util.Scanner public class problem4 public static void main(String[] args) int k-0, d-0, j-1, total-0; Scanner kybd- new Scanner(System.in); while j5) d 5; System.out.print("type in a number: "); k-kybd.nextIntO; if (k> 7) d+1 else total- total +2* k; System.out.println (j+ " "+k+""+d+"+total) System.out.println (j+" "+k+""+ d+total); kybd.close(
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
