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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started