MakeupWork - import java.util.Scanner; import java.lang.*;...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Scanner; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; import java.lang.String; //Jeremy Debruce / public class MakeupWork { static String C1,C2,C3,C4,C5; static int C1V,C2V,C3V,C4V,C5V,W; public static void main(String[] args) { System.out.println("*******************************************"); S System.out.println("*The purpose of the programs is to *"); System.out.println("*Display The winner of a local election. *"); System.out.println("*******************************************"); Scanner Console = new Scanner(System.in); System.out.println("Please enter the Five canidates. Press enter after each name."); C1 = Console.next(); C2 = Console.next(); C3 = Console.next(); C4 = Console.next(); C5 = Console.next(); System.out.println("Please enter the number of votes for each canidate. Press enter after each."); C1V = Console.nextInt(); C2V = Console.nextInt(); C3V = Console.nextInt(); C4V = Console.nextInt();
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

MakeupWork - import java.util.Scanner; import java.lang.*;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online