King Abdulaziz University: Faculty of Computing and Information Technology
King Abdulaziz University: Faculty of Computing and Information Technology
Objective
Instructions:
• This program is worth 9% of your final grade
• The deadline for submission for this assignment is by 11:59 PM on Tuesday, 7th
February, 2023, on Blackboard
• Late Submission: late submissions are allowed but with a penalty. If you submit after the
deadline but before 11:59 PM on Wednesday, 8th February, 2023, you will receive a 25%
deduction. No submissions are accepted after this date/time
• This is an individual assignment, and you must solve it by yourself. Any form of cheating will
result in you receiving 0% in the assignment.
• Please read the course and department policies on the course syllabus regarding plagiarism
and cheating.
• This assignment must be submitted in the “CPCS 202 – Programming I” discipline on
Beecrowd and uploaded to Blackboard.
Description
In this assignment, you are required to solve four problems given in Table 1 using the methods
described below. Solutions to the four problems should be submitted in the Java programming
language to Beecrowd and uploaded to Blackboard before the specified deadlines to be
considered for the award of marks. The solutions should include both the declaration and call to
the specified methods. Solutions which do not contain the method declaration or a call to the
specified method will be awarded zero for that problem even if the solution is correct and
accepted by Beecrowd.
1
Programming 2 (CPCS 202), 2nd Semester 1444
Hint : Since Scanner may have to be used in multiple methods, declare it once at the beginning as follows
import java.util.Scanner;
public class Main {
2
Programming 2 (CPCS 202), 2nd Semester 1444
The main method should call the isValid() method to check the validity of the car number plate.
If it is not valid it should display “FAILURE”. If the plate is valid, the main() method should call
the printDay() method to display the corresponding day.
Deliverables
You are required to upload your three solutions in the Java programming language to Beecrowd
and on Blackboard as part of this assignment. The three files should be named as
Problem_1.java, Problem_2.java and Problem_3.java and should be uploaded separately (not
zipped).
Each of your Java files should have the following header (comments)