
C++ Lab
Lab 1
Learn Basic C++. Submit only LAB 1
Lab 5
Basic Input/Output and File & Stream. Practice for both labs. No Submission
Lab 2
2D Array and Dynamic Memory Allocation in C++. Practice all questions in Lab 2(A). For Lab 2(B), complete the (Lab Assignment in groups of 2 students) and submit .
Lab 3
Structure in C++ and Referencing and Function:
-
Practice all in LAB 3 (A).
-
Practice all and submit only Exercise 6 and 7 in LAB 3 (B)
Lab 6
Submit all questions
Lab 7
Do all
Submission: Problem to solved decided by student. What is important is for student to be able to write an array captured in main () into a file named "testing.txt".
And then in the same program, read from the same file and re-display into the command prompt.
Example: Prompt user for 5 names, then write all these names sequentially into "testing.txt".
Then give option (if..else, switch case), to re read from the file and print them back into the command prompt (say I have a total of 5 names in testing.txt, but I can choose to re read and write only the first 3 names).
20 points for completion and program accuracy 10 points for problem creativity and complexity