Answer:
Explanation:
The following code is written in Java and like requested prompts the user for a number to continue or a letter to exit. Then loops and keeps adding all of the numbers to the sum variable and adding 1 to the count for each number entered. Finally, it prints the sum and the average using printf and the variables.
import java.util.Scanner;
class Examine1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int sum = 0;
int count = 0;
System.out.println("Enter a number to continue or a letter to exit.");
while(in.hasNextInt()) {
System.out.println("Enter a number:");
sum += in.nextInt();
count += 1;
}
System.out.printf("The sum is %s.%n", sum);
System.out.printf("The average is %s.", (sum / count));
}
}
Graphical management tools and infrastructure, Server graphical shell
Answer:
A light bulb produces light from electricity
Answer: 4
What is its ideal mechanical advantage?
Explanation:
Answer:
thinkzone.wlonk.com
Keith's Think Zone
Home Printables globeLinks Buy Donate Terms of Use Contact
Fun and interesting miscellany for elementary, middle, and high school students.
(Teachers and other adults are also permitted.)
Math
Math Gems
Number Sets
Useful Numbers
N-Dimensions
Big Numbers
World's Hardest Easy
Geometry Problem
Geometry Fun
Areas and Volumes
Angles, the Revolution
Deadly Disease Puzzler
Shortcut Arithmetic
Math Miscellany
Protractor
Science
Elements, in Pictures
at elements.wlonk.com
Atomic Orbitals
Particles
Solar System Model
Physical Quantities
Standing Waves Chladni Plate Activity
Rock-Scissors-Paper
Electric Circuit Project
Organagrams Game
Science Poetry
History & Geography
Ten Events
Map Fun
Flags
Language
Word Fun
Gibberish Generator
Poem Generator
Typefaces/Fonts
Portmanteau Words
Korean Alphabet
Art & Music
Symmetry
Symmetry Fun
Ambigrams
Newton's Colors
Kinegrams
Flexagons
Char-Toons
Artists Timeline
Twelve Tone
Musical Scale
Home Printables globeLinks Donate Buy Terms of Use Contact Good Books
thinkzone.wlonk.com
Also, visit my other website, elements.wlonk.com
Keith Enevoldsen, Seattle, USA, Earth earth yes this is the hardest thing yes okay
Explanation: