Skip to content

Commit 2b237ca

Browse files
committed
add: cpp-programming-questions 14_file_handling 10
1 parent 2178d63 commit 2b237ca

File tree

9 files changed

+459
-70
lines changed

9 files changed

+459
-70
lines changed

.vscode/settings.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

14_file_handling/00_questions.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@
2424
a. Emp Id
2525
b. Emp Name
2626
c. Emp Address
27-
d. Emp Dept (Admin/Sales/Production/IT)
27+
d. Emp Dept (admin / sales / production / design)
2828
e. Emp Phone
2929
f. Emp Age
30-
Write a C++ program to read the above file. Create a new file such as Adm.dat,
31-
Sal.dat, Pro.dat, IT.dat respectively to store the employee details according to their department.
30+
Write a C++ program to read the above file. Create a new file such as adm.dat,
31+
sal.dat, pro.dat, des.dat respectively to store the employee details according to their department.
3232

33-
10. Write a C++ program to create a file which has information Name, Account number,
34-
Balance and perform following operations:
35-
a. Add record
33+
10. Write a C++ program to having class BankAccount containing attributes such as name, accountNumber and balance and perform following operations:
34+
a. Add record in a file
3635
b. Display content of file
3736
c. Display name of person having balance > 10,000

0 commit comments

Comments
 (0)