Explanation:
I have attached the answer as an image. I can't upload the file as it requires a licensed product and I only used demo version. I can provide the file too if you can give me your vlsig file required to use full software. However, If you just copy along the images on your Visual Studio, you will easily create the files yourself. Answer is provided for both scenarios as part A and part B, one which stops after 1 iteration and the one which loops until 0 height is given.
Answer: False
Explanation:
The elements on a Resume gives information about the owner of the resume, in a situation where those elements are false, the audience becomes misinformed.
I hope this helps.
Answer:
class Main {
public static void main(String[] args) {
System.out.println(" _");
System.out.println(" / \\");
System.out.println("| |");
System.out.println(" \\ _ /");
}
}
Explanation:
Backslashes have a special meaning in string literals. You have to escape them with a backslash, hence the double backslash.
Answer:
import java.util.Scanner;
public class num2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int count =0;
int total = 0;
System.out.println("Enter the numbers");
int num = in.nextInt();
while(num!=-1){
total = total+num;
count++;
System.out.println("Enter the next number");
num = in.nextInt();
}
//Compute the average
double average = (double) total/count;
//Outputs
System.out.println("Total count of numbers entered "+(count));
System.out.println("Sum of the numbers "+total);
System.out.printf("Average is %.2f ",average);
}
}
Explanation:
- Using java programming language
- Import scanner class to receive user input
- declare variables count and total and initialize to zero
- Prompt user to enter numbers
- Use a while statement with the condition while(num!=-1)
- Within the while body keep prompting user to enter a number, increase count and update total
- when -1 is entered the loop breaks and average is calculated
- Use printf() method to print average to 2 decimal places.