Write a C program that includes the following: 1. A main() with: o user prompt/entry for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C program that includes the following: 1. A main() with: o user prompt/entry for name o prompt with "Welcome, <username entered>!" o user prompt/entry for a 4-digit pin. ▪ call pinSize() to check if pin is not 4-digits long. o if not 4-digit long, provide error message and have user retry. o user prompt/entry for confirming their 4 digit pin. ▪ call pinCheck() to verify that both pin entries match, o if pins do not match, provide error message and have user try again. if pins do match, provide message "Successful PIN setup!" o start a savings total of $1k and a checking total of $300. Only after pin is set appropriately, provide user with the following menu: A. Deposit B. Withdraw C. Check Balance D. Transfer Funds O ensure user can select an option with upper or lower case entries. o If the user enters a non-valid entry, provide error message and have user try enter menu option again. . Deposit For deposit give an option to whether it is from savings or checking that they want to deposit to; then ask how much. . . ● . Ask if they would like to deposit cash or check. If it's a check allow them to enter the amount with cents. • Withdraw • For withdraw provided an option to whether they want to withdraw from savings or checking and then ask how much; then have it decided if it's a multiple of 20. If the withdraw amount isn't a multiple of 20 provide a message "We can not give the exact amount you want because your request isn't a multiple of 20. Check Balance For check balance show balance of both saving and checking accounts. Transfer Funds For transfer funds ask which account they want to transfer from, to what account they want to transfer to, and how much they want to transfer. ensure user can select an option with upper or lower case entries. If the user enters a non-valid entry, provide error message and have user try enter menu option again. . If its cash allow them also to enter the amount, but do not allow cents. If cents are included with their cash entry provided a message "We don't take coins, only the cash amount (provide cash amount they entered) was deposited." Write a C program that includes the following: 1. A main() with: o user prompt/entry for name o prompt with "Welcome, <username entered>!" o user prompt/entry for a 4-digit pin. ▪ call pinSize() to check if pin is not 4-digits long. o if not 4-digit long, provide error message and have user retry. o user prompt/entry for confirming their 4 digit pin. ▪ call pinCheck() to verify that both pin entries match, o if pins do not match, provide error message and have user try again. if pins do match, provide message "Successful PIN setup!" o start a savings total of $1k and a checking total of $300. Only after pin is set appropriately, provide user with the following menu: A. Deposit B. Withdraw C. Check Balance D. Transfer Funds O ensure user can select an option with upper or lower case entries. o If the user enters a non-valid entry, provide error message and have user try enter menu option again. . Deposit For deposit give an option to whether it is from savings or checking that they want to deposit to; then ask how much. . . ● . Ask if they would like to deposit cash or check. If it's a check allow them to enter the amount with cents. • Withdraw • For withdraw provided an option to whether they want to withdraw from savings or checking and then ask how much; then have it decided if it's a multiple of 20. If the withdraw amount isn't a multiple of 20 provide a message "We can not give the exact amount you want because your request isn't a multiple of 20. Check Balance For check balance show balance of both saving and checking accounts. Transfer Funds For transfer funds ask which account they want to transfer from, to what account they want to transfer to, and how much they want to transfer. ensure user can select an option with upper or lower case entries. If the user enters a non-valid entry, provide error message and have user try enter menu option again. . If its cash allow them also to enter the amount, but do not allow cents. If cents are included with their cash entry provided a message "We don't take coins, only the cash amount (provide cash amount they entered) was deposited."
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these operating system questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
3) Sauseda Corporation has two operating divisions-an Inland Division and a Coast Division. The company's Customer Service Department provides services to both divisions. The variable costs of the...
-
When shelled corn is stored in a cone-shaped pile 20 feet high, the diameter of the pile's base is about 94 feet. (a) Draw a diagram that gives a visual representation of the problem. Label the known...
-
The 2005 Atlantic hurricane season was notable for many reasons, among them the most named storms and the most hurricanes. Divide the 28 storms into 4 subgroups. Then select a sample of three storms...
-
A metal pipe is held vertically, and a bar magnet is dropped into it. What do the electric field lines in the pipe look like as the magnet falls through it?
-
In order to expand its operations, Barton Corp. raised $5 million in a public offering of common stock , and also negotiated a $2 million loan from First National Bank. In connection with this...
-
"Managing Away Bad Habits Team Assignment Organizational Behavior IILeadership Assigned is ashort case from the exercise Managing Away Bad Habits. The task is to develop a turnaround strategy for...
-
1. This family business has made numerous transitions. It started as two brothers and their wives (Whitehall), then became a husband and wife team (Judds Hill), and finally parents with their son and...
-
Provide the steps of Distance Vector Routing for the following routers. You can start with R1 and continue to find the routing tables of R1 and R2 routers in the diagram after examining the input...
-
Iguana Incorporated paid a dividend of $1.90 this year. The dividend is then expected to grow by 14% a year for 3 years; it will be 3% per year after that. The required rate of return is 8.6%. The...
-
Discuss the purpose of job evaluations. Discuss the similarities and differences between job evaluations conducted for managerial positions and lower level positions at a firm. The point method of...
-
Vocabulary Complete each sentence with an appropriate word related to family, nationalities, or professions. Question 1 with 1 blank A woman from France is 1 of 1 . Question 2 with 1 blank A person...
-
Ruby, Gary, Sam, and Anna work in a software development firm. Who among them is responsible for the talent management function of the firm's HR departure?
-
Contemplating Options for Work and Self - Development I may have ideas about opportunities to pursue, including new jobs for after college, as well as professional development experiences during the...
-
Which of the following in-text citations is the correct format for a source with 3 or more authors? O a. (Smith, Jones, Sloan, Brown, Lee, Simmons, & Mort, 2016) O b. (Smith, Jones, & Sloan, 2016) O...
-
Calculate the number of neutrons of 239Pu.
-
Frank, age 35, and Joyce, age 34, are married and file a joint income tax return for 2012. Their salaries for the year total $83,000 and they have taxable interest income of $4,000. They have no...
-
In the 2012 tax year, Michelle paid the following amounts relating to her 2010 tax return: Tax deficiency..........................................$5,000 Negligence...
-
In 2012, Lou has a salary of $54,000 from her job. She also has interest income of $1,700. Lou is single and has no dependents. During the year, Lou sold silver coins held as an investment for a...
-
On rare occasions, an organism may have three copies of a chromosome and therefore three copies of the genes on that chromosome (instead of the usual number of two copies). The alleles for each gene...
-
Explain how the miR-200 family of miRNAs behave as tumorsuppressor genes. What happens when their expression is blocked or decreased?
-
Outline the steps that occur when piRITS or piRISC silences transposable elements by repressing transcription and by directly inhibiting TE RNAs, respectively. What is the role of piRNAs in this...
Study smarter with the SolutionInn App