
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Power Supply Unit, Power Supply Unit Ratings, Efficiency
Typology: Cheat Sheet
1 / 1
This page cannot be seen from the preview
Don't miss anything!

import java.util.scanner; class Exercise public static void main(String[] args) { scanner input = new Scanner(System.in); system.out.println("Assessment 1: Java Programming"); System.out.println("Please enter your name (First Name, Middle Name, Last Name: "); String a = input.next() String b = input.next() String c = input.next() System.out.println("Sex: "); String d input.next(); System.out.println(Grade Level: "); String e = input.next String f = input.next(); System.out.println("Thank you!"; System.out.println("Instruction: These questions were taken from your lesson on"); println(""); System.out.println("Part A. Write the letter of your answer."); System.out.println" It is a class-based, object-orineted programming language"); System.out.println(" A. Java Programming C. C++"); System.out.println(" A. C D. A, B, and C"); System.out.println("Enter your answer"); String = input.next(); System.out.println(" It is a general-purpose programming language intended to let application developers /nwrite once, run anywhere (WORA)."); System.out.print(" A. Java Programming C. C++"); System.out.println(" A. C D. Python"); System.out.println("Enter your answer"); STRING h = input.next(); System.out.println("Click yes to check your answers."); String i = input.next(); String answer1; answer1 = (g == "C")? "Correct" : "Incorrect"; System.out.println("1.C you answer is:" + answer1); String answer2; answer2 = (h == "D")? "Correct" : "Incorrect"; System.out.println("2.D you answer is:" + answer2); input.close(); }