Sign In
Ask Question
Computers and Technology
Gillian Scott
7.7 LAB: Using a while loop countdown Write a program that takes in an integer in the range 10 to 100 as input. Your program should countdown from that number to 0, printing the count each of each iteration. After ten numbers have been printed to the screen, you should start a newline. The program should stop looping at 0 and not output that value. I would suggest using a counter to count how many items have been printed out and then after 10 items, print a new line character and then reset the counter. important: Your output should use " %3d " for exact spacing and a space before and after each number that is output with newlines in order to test correctly.
Answer
Answers (1)
Computers and Technology
Emery Pittman
Samuel is working on decimal and binary conversion for his college project. He is using the binary number 111011 and wants to explain its conversion to the decimal number 59. Which formula will Samuel use to explain the conversion?
Answer
Answers (1)
Computers and Technology
Jesus Compton
Which email writing etiquette should Ariel follow to let people know that she received their message?
A. reply to their messages immediately
B. use formal language
C. specify the email's intent in the subject field
D. be direct when writing the reply
Answer
Answers (1)
Computers and Technology
Keon Arnold
Explain the function of the Ribbon in Microsoft Word.
Answer
Answers (1)
Computers and Technology
Jaden Morrison
What is the difference between chrome and chromium browser?
Answer
Answers (1)
Computers and Technology
Griffin Norton
What is geometric constraint?
Answer
Answers (1)
Computers and Technology
Thalia
On which tab can you find the margins button
Answer
Answers (2)
Computers and Technology
Trace
What is the output of the second println statement in the main method?
public class Foo {
int i;
static int s;
public static void main (String[] args) {
Foo f1 = new Foo ();
System. out. println ("f1. i is " + f1. i + " f1. s is " + f1. s);
Foo f2 = new Foo ();
System. out. println ("f2. i is " + f2. i + " f2. s is " + f2. s);
Foo f3 = new Foo ();
System. out. println ("f3. i is " + f3. i + " f3. s is " + f3. s);
}
public Foo () {
i++;
s++;
}
}
A. f2. i is 1 f2. s is 1
B. f2. i is 1 f2. s is 2
C. f2. i is 2 f2. s is 2
D. f2. i is 2 f2. s is 1
Answer
Answers (1)
Computers and Technology
Samuel Terrell
Define a Python function named file_listers with two parameters. The first parameter will be a string specifying the name of the file to write to. The second parameter will be a list of str. Your function should open the file in a manner that erases its contents. For each entry in the second parameter, write it to the file and then a newline. Your function does not need to return anything. Example:list_2_file ("empty. txt", []) creates a file named empty. txt but that file will be empty. list_2_file ("simple. txt", ["Write", "me"]) creates a file named simple. txt which contains two lines of text. The first line has the text Write and the second line says me.
Answer
Answers (1)
Computers and Technology
Addison Kirby
Consider a compact disc on which the pits used to store the digital information measure 850 nm long by 500 nm wide. Visible light has the following wavelengths: 380-420 nm for violet; 420-440 nm for indigo; 440-500 nm for blue; 500-520 nm for cyan; 520-565 nm for green; 565-590 nm for yellow; 590-625 nm for orange; and 625-740 nm for red. Which of these colors, if any, could be used for building the pits on the disc?
Answer
Answers (1)
Computers and Technology
Aileen Peters
The shortest compressed format of the ipv6 address 2001:0db8:0000:1470:0000:0000:0000:0200 is
Answer
Answers (1)
Computers and Technology
Weston Mayo
Microsoft office and open office are considered
A. software
B. individual applications
Answer
Answers (1)
Computers and Technology
Arianna
You may not use the break statement in a nested loop
True False
Answer
Answers (2)
Computers and Technology
Elena
In computer logic what is order of instructions
Answer
Answers (1)
Computers and Technology
Cordell Luna
What two variables does mass depend on?
A. density and volume
B. mass and density
C. weight and volume
D. volume and mass
Answer
Answers (1)
More
1
...
74
75
76
77
78
...
Home
»
Computers and Technology
» Page 76
Sign In
Sign Up
Forgot Password?