0% found this document useful (0 votes)
22 views

Bonus Task

This document outlines the tasks for a programming fundamentals lab for the fall 2021 semester. It provides instructions on naming conventions for programs and using comments. It describes 3 modules for a small hospital database management system - an admin module to write and read patient and doctor data files, a doctor module to view these files, and a patient module. It includes 4 tasks - the first is to create this basic hospital database system, and the remaining tasks involve using nested loops to print different shapes, with one taking the number of rows as user input. Students are instructed to submit their work in a Word file and told that plagiarism is prohibited. They are also given the option of writing a bonus story about their university life.

Uploaded by

saink4831
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Bonus Task

This document outlines the tasks for a programming fundamentals lab for the fall 2021 semester. It provides instructions on naming conventions for programs and using comments. It describes 3 modules for a small hospital database management system - an admin module to write and read patient and doctor data files, a doctor module to view these files, and a patient module. It includes 4 tasks - the first is to create this basic hospital database system, and the remaining tasks involve using nested loops to print different shapes, with one taking the number of rows as user input. Students are instructed to submit their work in a Word file and told that plagiarism is prohibited. They are also given the option of writing a bonus story about their university life.

Uploaded by

saink4831
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Fall 2021- PF Lab-BSCS-1C

National University of Computer and Emerging Sciences

Bonus Task

Programming Fundamentals
Lab

Course Instructor Rabia Maqsood

Instructor Ayesha Liaqat


(Email: [email protected])
Semester Fall 2021

Page 1 of 3
Fall 2021- PF Lab-BSCS-1C

Department of Computer Science


Instructions:
For each task in the manual create a new C++ program with the naming convention as follows:
o SECTION_ROLLNO _LAB-NO_TASK-NO
Mention what is happening in each line of code using comments.
Comment your Roll number at top of each task.
Bonus Marks: Tell a bad and good story of your university life at the end of the word file.
Submit the solution on Classroom in the form of a word file with the naming convention
SECTION_ROLLNO_ASSIGNMENTNO.
Plagiarism is strictly prohibited.

Task 1:
An hospital need to manage its data into files, however in hospital there are units depends on the
situations like for critical situation there should be an Emergency Ward or Unit like that, so doctors can
easily reach to the patient and cure them and easily accessible in database of hospital. There are 3
modules in hospital,

1. Admin Module
2. Doctor Module
3. Patient Module

Your task is to create a small database for your hospital to store and read the information from files of all
the patients and doctors from separate files. You must write and read their Names, ID’s, Phone, CNIC,
Date of Admit, and Qualification (Doctors), and Address in Separate files, show all the doctors and
patients on console.

Your Admin Module should do all the stuff to write and read the data from the files and Doctors only can
see the Patients and Doctors files to check for whether new Doctor or patient is added or not.

Task 2:
Write a program to print the given shape using nested loops

Page 2 of 3
Fall 2021- PF Lab-BSCS-1C

Task 3:
Write a program to print the given shape using nested loops. Take number of rows from user.

Task 4:
Write a program to print the given shape

Page 3 of 3
Fall 2021- PF Lab-BSCS-1C

Page 4 of 3

You might also like