Answer:
to print a three-dimensional image on a piece of paper he should use autocad
Answer:
public static void PrintShampooInstructions(int numberOfCycles){
if (numberOfCycles<1){
System.out.println("Too Few");
}
else if(numberOfCycles>4){
System.out.println("Too many");
}
else
for(int i = 1; i<=numberOfCycles; i++){
System.out.println(i +": Lather and rinse");
}
System.out.println("Done");
}
Explanation:
I have used Java Programming language to solve this
Use if...elseif and else statement to determine and print "Too Few" or "Too Many".
If within range use a for loop to print the number of times
Answer: c. Depending on context the same sequence of bits may represent different types of information.
Explanation:
The options for the question are:
A. Computing devices use patterns of bits to represent complex information
B. Abstraction helps represent complex information by surfacing complexity that might otherwise be hidden
C. Depending on context the same sequence of bits may represent different types of information
D. Common abstractions that are represented by computing devices include numbers, characters, and color.
The following are true of how computers represent complex information:
• Computing devices use patterns of bits to represent complex information
• helps represent complex information by surfacing complexity that might otherwise be hidden
• Common abstractions that are represented by computing devices include numbers, characters, and color.
Therefore, the option that is not true of how computers represent complex information is that "depending on context the same sequence of bits may represent different types of information".
Answer:
In the given question the first line is correct, i.e. "Describes the inputs, outputs, and processing logic for all program modules".
Explanation:
The documentation is a recorded text or image, which is preceding or in the code base of the programs, whether it describes how well the program works and how it is being used, and things in various positions can be influenced by people, and the wrong option can be described as follows:
- In the documentation, it can't consist of rules and data.
- In can't include a dictionary, flow maps, screen designs and device requests that began the program.
- In can't provide links within the program.
Answer:
Here is the Python program:
d = {5:3, 4:1, 12:2}
val_of_max = d[max(d.keys())]
print(val_of_max)
Explanation:
The program works as follows:
So we have a dictionary named d which is not empty and has the following key-value pairs:
5:3
4:1
12:2
where 5 , 4 and 12 are the keys and 3, 1 and 2 are the values
As we can see that the largest key is 12. So in order to find the largest key we use max() method which returns the largest key in the dictionary and we also use keys() which returns a view object i.e. the key of dictionary. So
max(d.keys()) as a whole gives 12
Next d[max(d.keys())] returns the corresponding value of this largest key. The corresponding value is 2 so this entire statement gives 2.
val_of_max = d[max(d.keys())] Thus this complete statement gives 2 and assigns to the val_of_max variable.
Next print(val_of_max) displays 2 on the output screen.
The screenshot of program along with its output is attached.