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
1. (True/False) A function is invoked with a call statement, as in call check( guess );
(IN PYTHON) Problem 1   Write a function word_count() that performs the following actions: Opens a file called “novel.txt”. You can assume that the file exists and is located in the same directory as your code file. Reads in the contents of the file, and stores it in a variable called text. Uses the split() function to obtain a list containing all of the individual words in text. For details on how to use split(), you can consult this site: https://www.w3schools.com/python/ref_string_split.asp For this question, assume that all words will be separated by spaces. Returns the number of words in the lis
(Square of Asterisks) Write a function that displays a solid square of asterisks whose side isspecified in integer parameter side. For example, if side is 4, the function displays:  **** **** **** ****
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
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