C How to Program (8th Edition)
C How to Program (8th Edition)
8th Edition
ISBN: 9780133976892
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
Question
Book Icon
Chapter 11, Problem 11.18E
Program Plan Intro

Program plan:

  • Modify program textFile as follows:
    1. Include one additional parameter ch of type int.
    2. Within the else contruct, based on value of ch call frprintf or printf to display the header for account information.
    3. 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:
    1. 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.

Blurred answer
Students have asked these similar questions
What is wrong in the following function?
Can you show execution of this function?
what is ignore() function ?
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning