This Assignment is designed to give you experience with developing and demonstrating programming concepts using JavaScript.
Background: You will need to have access to a code editor and have a thorough understanding of JavaScript and Programming Fundamentals such as : variables, operators, expressions, conditionals, loops, arrays, functions, objects)
Detailed Specification
This assessment must be completed individually.
You have been hired as a programmer by the college to write a script using JavaScript that will generate a student’s transcript for anUndergraduate student.
A student’s transcript will display:
- ● All the course the student did; and,
- ● The grade they earned for the courses.
The transcript must also display the student’s GPA.
Feature 1
5 MARKS
You are required to create a fake “database”, i.e, an object array, that stores at least 5 courses,
similarly to the below :
Course Code
WEB222 WEB322
IPC244
JAV745 OOP244
Course Title
Web Programming Principles
Web Programming Tools & Frameworks
Introduction to Programming Using C
Java Programming
Introduction to Object Oriented Programming
Course Credit
3 3
3
3 3
Note, each object in the array must store : a course code, title and course credit.
Feature 2 User Interface:
The user will interact with the script through the console.
When launched, the program MUST ask the user to enter ALL of the following:
- ● Student ID number
- ● Student First Name
- ● Student Last Name
- ● The number of courses did in the above semester (eg. 3)
10 MARKS
2
FOR EACH COURSE, the program MUST prompt the student for the below course information:-
- ● Course Code (example: JAVA745)
- ● Mark received in the course (example: 90) Validation :
When the user enters a course code, your script must search the “fake database” (array of courses objects) to see if the course code entered in the console exists in the “fakeDB”. This is done by traversing through the array to see if the course code entered matches a course code that exists in the “fake database” (array of course objects). If an invalid code is entered, the script must continue to prompt the user until they enter a valid one.
When the user enters a valid course code, your script must pull all the other information for that course, from the “fake database”, as it would be needed later on in the script. For example, if the user enters WEB322 as the course code, your script must be able to access and maintain all other information associated with the course.
Feature 3
GPA Calculation Formula
Here is the formula for calculating an undergraduate student’s semester GPA.
Semester GPA = total course points total credits earned
Total course points is the sum of all course points across all of the student’s courses.
Course points are calculated on a per course basis:
Course points = grade value points earned in course x course credits
15 MARKS
Total course points =
course points for course 1 +
course points for course 2 + course points for course 3 + … + etc
3
Student Grading Scheme and Grade Value Table
Grade Grade Description
- A Excellent
- B Good
- C Average
- D Minimum Passing Grade
F Failure
Grade Value
Points 90-100 4
80-89.9 3.0 70-79..99 2 60-69.9 1 0.0-59.9 0
Marks(%)
After the student completes entering all relevant data, the program should then print their transcript, listing the following information.
- Student’s name,
- Student’s ID No.
- The following Course Information FOR EACH COURSE:
- Course Code
- Course Title
- Mark Received
d. Grade
- Student’s GPA
Feature 4
5 MARKS
Your Script must be developed with modularity in mind thus, I want to see you create appropriate functions throughout your script
Sample Output
EXAMPLE 1
Enter Student First Name: Shantelle Enter Student Last Name :Roberts Enter Student ID : 000136
Enter the number of courses you did in the above semester: 2
Enter Course Code: ITEC133
Enter Course Title: Programming 1 Enter Number of Course Credits: 3 Enter Mark received in course: 92.65
Enter Course Code:ITEC235
Enter Course Title: Object Oriented Programming 1 Enter Number of Course Credit:3
Enter Mark received in course: 82
Thanks, displaying student transcript:
4
STUDENT TRANSCRIPT
Name : Shantelle Roberts ID: 000136
Semester Code: 201510 Semester No: 1
Course Code:ITEC133
Course Title: Programming1
Mark: 92.65
Grade:A
Course Code:ITEC235
Course Title: Object Programming1 Mark: 82
Grade:B
Student GPA:3.5
THE END
5




