Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Object Oriented Programming (CS304) Total marks = 20

Assignment # 01 Due Date:


th
Fall 2023 15 November, 2023

Please carefully read the following instructions before attempting the assignment.

RULES FOR MARKING


It should be clear that your assignment would not get any credit if:
▪ The assignment is submitted after the due date.

▪ The submitted assignment does not open or the file is corrupt.

▪ Strict action will be taken if the submitted solution is copied from any other student or the
internet.

You should consult the recommended books to clarify your concepts as handouts are not sufficient.

Topic Covered: Lecture 1-9

Uploading instructions:
● Your assignment should be in .CPP format (Any other formats like scan images, PDF, zip, doc, rar and
bmp etc. will not be accepted).
● Save your assignment with your ID (e.g. bc000000000.CPP).

● No assignment will be accepted through email.

NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load
shedding or internet malfunctioning etc.). Hence refrain from uploading assignments in the last hour of
the deadline. It is recommended to upload the solution file at least two days before its closing date.
If you people find any mistake or confusion in the assignment (Question statement), please consult with
your instructor before the deadline. After the deadline, no queries will be entertained in this regard.
For any query, feel free to email me at:
cs304@vu.edu.pk
Question Statement Marks (20)
Write a menu driven program in C++, the program should have a defined class with the name ‘Islamic_info’ in
that class there should be four functions defined and implemented with the names given bellow.
1) Quran_info()
2) display_list()
3) sum_five_prayer_faraz_rakat()
4) showChoices ()
In the main() function you have to define an array which has the values of faraz rakats of five prayer: {2, 4, 4,
3,4}.
Create an object named “Islamic_info“ and call above function so that program will work as shown in the
screenshots given below.

If choice 1 entered then Quran info function should display information bellow.

If user entered choice 2 then it should display the number of Faraz rakat for each prayer like shown in the
screenshot below.
If user entered choice 3 then
If user entered choice 4 then exit the menu program it that option enter your choice will not be shown to the
users while for all the other 3 cases the enter your choice option should be used again in again so that
program will work in interactive way.

You might also like