Unit 3 Assignment Instructions
In this unit you will complete the coding exercises before starting the Coding Project. Review the
detailed instructions and rubrics before starting your Assignments.
Submission Instruct
...
Unit 3 Assignment Instructions
In this unit you will complete the coding exercises before starting the Coding Project. Review the
detailed instructions and rubrics before starting your Assignments.
Submission Instructions
You will submit the following:
.cs files for C#
.java files for Java
.php and/or .js files for Web Development
Additionally, in a Word document, paste a screenshot of the output for each exercise.
You will be submitting three code files, one for each exercise (.cs, .java, .php or .js) and one Word
document in a zipped folder.
Zip these four files into a zipped folder and submit the one zipped folder.
Naming Your Files and Zip Folder
The code files should be saved as: IT213_YourLastName_UnitX_ExerciseX_Language.
The word document should be saved as: IT213_YourLastName_UnitX_Screenshots
The zip folder should be saved as: IT213_YourLastName_UnitX_ZIP
Unit 3 Assignment: Coding Exercises
You must complete the following coding exercises before starting the two Coding Projects. By
completing these exercises you will be better prepared for the Assignment.
Note: If your language of choice is Web Development, you will need to complete the exercises in both
PHP and JavaScript.
3-1. Class Grade Average The following code is shown for Java, C#, and JavaScript. For the
language of your choice, type in the following code and run it."
Java
Unit 3 [IT213: Software Development Concepts]
// GradeBook class that solves class-average problem using
// counter-controlled repetition.
import java.util.Scanner; // program uses class Scanner
public class GradeBook
{
public static void main(String[] args){
determineClassAverage();
}
// determine class average based on 10 grades entered by user
public static void determineClassAverage()
{
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
int total; // sum of grades entered by user
int gradeCounter; // number of the grade to be entered next
int grade; // grade value entered by user
[Show More]