Create a C program that will initially save data to a text file and will ask the user to update or view the contents of a file. Use a user-defined function update() and view() and structures. Main function will display the choosing of options and will just call the functions of add and view based on the user choice. Choose: [1] Update : 2 [2]View ID: 111 Name: Juan Course: BSIT Year & Section: 1Q Process exited after 1.886 seconds with return value 0 Press any key to continue Choose: (1] Update : 1 ID: 101 Name: Juan Course: BSIT Vear & Section: 10 [2]View Enter ID: 101 Enter Enter course: BSIT Enter year & section: 10 name: Juan actsample - Notepad Eile Edit Format View Help ID: 111 Process exited after 171.5 seconds Name: Shekainah ue 0 Press any key to continue . . . Course: MIT Year & Section: 2A

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 1PE: 1. Consider the following incomplete C++ program: #include <iostream> int main() { … } a. Write a...
icon
Related questions
Question
Create a C program that will initially save
data to a text file and will ask the user to
update or view the contents of a file. Use
a user-defined function update() and
view() and structures. Main function will
display the choosing of options and will
just call the functions of add and view
based on the user choice.
Choose:
[1]Update
: 2
[2]View
ID: 111
Name: Juan
Course: BSIT
Year & Section: 1Q
Process exited after 1.886 seconds with return value 0
Press any key to continue
Choose:
[1] Update
: 1
ID: 101
Name: Juan
Course: BSIT
Year & Section: 10
[2]View
Enter ID: 101
Enter
name: Juan
Enter course: BSIT
Enter year & section: 10
actsample - Notepad
Eile Edit Format View Help
ID: 111
Process exited after 171.5 seconds Name: Shekainah
Course: MIT
ue 0
Press any key to continue . ..
Year & Section: 2A
Iactsample
05/04/22 10:40 AM
Text
Ln 1, Col 1
100% Windows (CRLF)
UTF-8
中 1041 AM
Transcribed Image Text:Create a C program that will initially save data to a text file and will ask the user to update or view the contents of a file. Use a user-defined function update() and view() and structures. Main function will display the choosing of options and will just call the functions of add and view based on the user choice. Choose: [1]Update : 2 [2]View ID: 111 Name: Juan Course: BSIT Year & Section: 1Q Process exited after 1.886 seconds with return value 0 Press any key to continue Choose: [1] Update : 1 ID: 101 Name: Juan Course: BSIT Year & Section: 10 [2]View Enter ID: 101 Enter name: Juan Enter course: BSIT Enter year & section: 10 actsample - Notepad Eile Edit Format View Help ID: 111 Process exited after 171.5 seconds Name: Shekainah Course: MIT ue 0 Press any key to continue . .. Year & Section: 2A Iactsample 05/04/22 10:40 AM Text Ln 1, Col 1 100% Windows (CRLF) UTF-8 中 1041 AM
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr