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

Second Semester Department of Electrical Engineering

Programming fundamentals lab

Uploaded by

Hafeez Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Second Semester Department of Electrical Engineering

Programming fundamentals lab

Uploaded by

Hafeez Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

NFC Institute of Engineering&Fertilizer

Research Faisalabad

Department of Electrical Engineering


Second Semester
Course Title:
Programming Fundamentals
Topic:
Lab Assignments
Submitted To:
Engr. Salman Arain
Submitted By:
Hafeez Ali
Roll.No:
18-ELE-43
Reg.#:
2018-UET-NFC-FD-ELECT-43
Lab.No.14
STRUCTURES II
Task#1
Write a program that manages book data in a small library. The data consists of title
and author name. The program must 1). Define a structure named bookrecord to store
book data, 2) declare and initialize to variables with bookrecord type.
Input:

Output:
Task#2
Write a C program using structures that will allow the information about 20 employees
to be stored in the structure. The program prompts the user for appropriate
information and then prints the stored information and display the information that
includes employee name, salary, id no and designation.
Input:

Output:
Task#3
Write a program using structures that initially stores name of the student, marks and
roll number and then display the stored information.
Input:

Output:
Task#4
Write a program using structures that initially stores name of the student, roll number
and marks in three subjects along with total marks. The program should store and
display the required output. Use required header libraries if any.
Input:

Output:

You might also like