C How to Program (8th Edition)
8th Edition
ISBN: 9780133976892
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 11, Problem 11.18E
Program Plan Intro
- Modify program textFile as follows:
- Include one additional parameter ch of type int.
- Within the else contruct, based on value of ch call frprintf or printf to display the header for account information.
- Within the while loop of else construct, based on value of ch use fprintf or printf to display the content of client variable.
- Modify program enterChoice as follows:
- Include one additional statement of choice i.e. 5- Display accounts on screen.
- Modify the main function as follows:
- Run the while loop till choice is not equal to 6.
- Modifiy call of textFile in case 1 to provide the function additional argument i.e. choice.
- Include case 5 to call the textFile function with additional argument i.e. choice.
Program description:
This program is the modified version of transaction processing program given in figure 11.15 of the book.This program included one more option i.e. to print the account details on screen instead of text file in addition to all other option of program in figure 11.15.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
What is wrong in the following function?
Can you show execution of this function?
what is ignore() function ?
Chapter 11 Solutions
C How to Program (8th Edition)
Ch. 11 - Prob. 11.5ECh. 11 - Prob. 11.6ECh. 11 - (Creating Data for a File-Matching Program) Write...Ch. 11 - (File Matching) Exercise 11.3 asked the reader to...Ch. 11 - (Testing the File-Matching Exercises) Run the...Ch. 11 - Prob. 11.10ECh. 11 - (Write Statements to Accomplish a Task) Write...Ch. 11 - (Hardware Inventory) Youre the owner of a hardware...Ch. 11 - (Telephone-Number Word Generator) Standard...Ch. 11 - Prob. 11.14E
Knowledge Booster
Similar questions
- Is there a different way to write the same function?arrow_forwardIf two select statements from the same table are union compatible, when is it appropriate?arrow_forwardWrite a swap function, that swaps the values of two variables in main, but use pointers instead of reference parameters. WRITE IN C++arrow_forward
- ANSWER IN C PROGRAM -Write a function to input patient information and store it in a file. One of the parameters of the function must be no. of patients to input and another one the name of the file to store the information.arrow_forwardanswer in c program -Write a function to output patient information that are stored in a file. One of the parameters of the function must be no. of patients to output and another one the name of the file where the patients’ information is stored.arrow_forwardWhat is wrong with this function ?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning