DOC PREVIEW
OSU CSE 1223 - PRO3A

This preview shows page 1 out of 3 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

ClosedLab02a author version 20140923 package project03 import java util Random import java util Scanner public class project03a public static void main String args Scanner in new Scanner System in System out println Welcome to Quiz System out print Enter your name String name in next System out println Welcome name Please answer the following questions int scoreCounter 0 int a int b int response a getRandomNum b getRandomNum System out print a b response in nextInt if response a b scoreCounter System out println That is correct else System out println No thats not the right answer its a b a getRandomNum b getRandomNum System out print a b response in nextInt if response a b scoreCounter System out println That is correct else System out println No thats not the right answer its a b a getRandomNum b getRandomNum System out print a b response in nextInt if response a b scoreCounter System out println That is correct else System out println No thats not the right answer its a b a getRandomNum b getRandomNum System out print a b response in nextInt if response a b scoreCounter System out println That is correct else System out println No thats not the right answer its a b System out println You got scoreCounter correct answers System out println Thats scoreCounter 25 in close static int getRandomNum Random rand new Random int a a rand nextInt 20 if a 0 a return a


View Full Document

OSU CSE 1223 - PRO3A

Documents in this Course
PRO12A

PRO12A

3 pages

PRO11A

PRO11A

4 pages

PRO10A

PRO10A

3 pages

PRO9A

PRO9A

3 pages

PRO8A

PRO8A

3 pages

PRO7A

PRO7A

2 pages

PRO6A

PRO6A

2 pages

PRO4A

PRO4A

3 pages

CL13A

CL13A

2 pages

CL11B

CL11B

2 pages

CL11A

CL11A

2 pages

CL10A

CL10A

2 pages

CL5A

CL5A

2 pages

Load more
Download PRO3A
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view PRO3A and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view PRO3A and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?