Question: Write a C program that simulates a bank account using a C structure. First, define all required fields in a user account in a struct,
Write a C program that simulates a bank account using a C structure. First, define all required fields in a user account in a struct, which are: Account number Account type (D or C for Debit or Credit) Open month (1-12) Open day of month (1-31) Open year (1900-2022) Total deposit value (in US dollars) Second, create a new user account using the above structure with the following information (dont use scanf): Account number: 123456 Account type: D Open month: 10 Open day of month: 27 Open year: 2022 Total deposit value: 200 Third, increase the deposit value with by 1000 dollars and then, print the structure. Output example: Account number: 123456 Account type: Debit Open date: 10/27/2022 Total deposit value: 1200
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
