Laboratory Certificate: in Christ Academy, Bangalore
Laboratory Certificate: in Christ Academy, Bangalore
Science by
Sowmya Kumar
Roll No:
Date :
Teacher -in-charge Head of Dept Examiner
ChristAcademy
PROJECT REPORT
COMPUTER SCIENCE
By
Sowmya Kumar
XI ISC Roll No
28
Acknowledgement
1 Introduction
2 System Overview
3 System Design
4 Screenshots
5 Testing
6 Future Scope
7 Bibliography
Introduction
Start
Generate Calendar(option 1)
Add important date(option 2)
Vi ew Important Dates(option 3)
Exit(Option 4)
Yes No
Is the choice choicIs
the e
1 2?
Yes
Get Year from use r
Get month from user Add Important Date
Create calendar object Get data from user
Get no.of days in month Get event/description from userNo Is
Get starting day of month Add to important dates map the
Print Calendar header Print success image choi
Print day names ce
Print leading spaces for first week 3?
Loop through days in month:
Print day no.
Check for new line Yes
Print newline after lastday
Vi ew Important Dates
Check If important dates are empty
If empty:Print’No important dates found
If not empty:Print header “Important dates”
Loop through Important dates map
Print date and event/description
Exit
Explanation of Data Flow
• Generate a menu with options to generate a calendar, add
important dates, view important dates, and exit the
program. Display the menu on the console.
• Read the user's input and store it in a variable.
• Create a Calendar object using the given year and month.
Calculate the number of days in the month. Determine the
starting day of the week for the month. Print the calendar
header (month name and year).Print the day names (Sun,
Mon, Tue, Wed, Thu, Fri, Sat). Print leading spaces for the
first week. Iterate through the days of the month, printing
each day and handling new lines.
• Store the date and event as a key-value pair in the
importantDates map.
• Check if the map is empty. If not empty, iterate through the
map and print each date and event.
• Terminate the program.
Screenshot (Output)
Testing
• Types of Errors
▪ Logical: Due to errors in the logic used.
▪ Syntax: Due to wrong syntax.
▪ Semantic: Due to improper usage of syntax.
▪ Compile-Time errors: Errors that occur during
compilation.
▪ Run-Time errors: Errors that occur during run- time and
do not produce the desired/expected output.
Testing of a Project