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

Department of Software Engineering Programming Fundamentals-II

This document outlines a lab assignment for a Programming Fundamentals-II course. It provides instructions for a task involving C++ syntax and repetition control structures. Students must write programs to determine the type and number of lines in a text file, count words and characters in a file, delete a specific line from a file, and append multiple lines to the end of a text file. The assignment is worth 5 marks and will be evaluated based on a viva. The deadline is April 29, 2020.

Uploaded by

Rajaa21321
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)
27 views

Department of Software Engineering Programming Fundamentals-II

This document outlines a lab assignment for a Programming Fundamentals-II course. It provides instructions for a task involving C++ syntax and repetition control structures. Students must write programs to determine the type and number of lines in a text file, count words and characters in a file, delete a specific line from a file, and append multiple lines to the end of a text file. The assignment is worth 5 marks and will be evaluated based on a viva. The deadline is April 29, 2020.

Uploaded by

Rajaa21321
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/ 1

Department of Software

Engineering
Programming Fundamentals-II
LAB TASK-4
Section: S, T

Instructor Name: Mr.Sheharyar Liaqat Total Marks: 5-Marks

Instructions:
 This Assignment is related to based C++ syntax and repetition control structure.
 All program codes should be written in C/C++ by using Dev C++/ Visual studio compiler
for coding.
 Plagiarism in the work is professional dishonesty which leads to strict disciplinary
action and zero in grading of assignment.
 Assignment evaluation is totally based on viva.
 Deadline :29-APRIL-2020

Question 1 : Write a program in C++ to find the content of the file (Type of File means text file
or Binary file) and number of lines in a Text File.

Question 2 : Write a program to count a number of words and characters in a file.

Question 3 : Write a program in C++ to delete a specific line from a file.

Question 4 : Write a program in C++ to append multiple lines at the end of a text file.

Good Luck 

Department of Software Engineering

You might also like