1/12
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
what class is used in assignment one?
GradeCalculator
What is the main method used in assignment one?
public static void main(String[] args)
Line needed to import Scanner?
import java.util.Scanner
Line needed to create Scanner named in
Scanner in = new Scanner(System.in);
Code needed to print out student name.
System.out.print (“Student Name”);
Code used to store something in a variable
String name = in.nextLine()
What is the variable for this code?
in
What ways can you assign the variable to a value
For integers: in.nextInt(); | For doubles: in.nextDouble(); | For Strings: int.next(““);
Value or variable: name of the student taking the course as a String vs name
Value: The name of the student taking the course as a String
Variable: name
Value or variable: The total number of studio sessions attended, as a value between 0 and 8 vs studiosAttended
Value: The total number of studio sessions attended, as a value between 0 and 8
Variable: studiosAttended
Value or Variable: The average grade on all lecture quizzes after the two lowest quiz grades have been dropped, as a percentage between 0 and 100 vs averageLectureQuizGrade
Value: The average grade on all lecture quizzes after the two lowest quiz grades have been dropped, as a percentage between 0 and 100
Variable: averageLectureQuizGrade
How do you create a class?
Right click on assignment01, then go to New Java File, then click on Class
==
if values are equal