assignment one quiz comp sci

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:39 PM on 1/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

what class is used in assignment one?

GradeCalculator

2
New cards

What is the main method used in assignment one?

public static void main(String[] args)

3
New cards

Line needed to import Scanner?

import java.util.Scanner

4
New cards

Line needed to create Scanner named in

Scanner in = new Scanner(System.in);

5
New cards

Code needed to print out student name.

System.out.print (“Student Name”);

6
New cards

Code used to store something in a variable

String name = in.nextLine()

7
New cards

What is the variable for this code?

in

8
New cards

What ways can you assign the variable to a value

For integers: in.nextInt(); | For doubles: in.nextDouble(); | For Strings: int.next(““);

9
New cards

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

10
New cards

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

11
New cards

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

12
New cards

How do you create a class?

Right click on assignment01, then go to New Java File, then click on Class

13
New cards

==

  • if values are equal