Write a structure to store the name, account number and balance of customers and store their...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a structure to store the name, account number and balance of customers and store their information. 1- In your main, ask the user to enter the number of customers and store it in an integer variable numOfCustomers. 2- define a dynamic array of this new defined struct with the size entered by the user in step 1 3- Populate the members of the struct in your main via the user typing the customer details and you storing them in the matching index in the array. 4- Write a function to print the names of all the customers having balance less than $200. 5- Write a function to add $100 in the balance of all the customers having more than $1000 in their balance and then print the incremented value of their balance. Write a structure to store the name, account number and balance of customers and store their information. 1- In your main, ask the user to enter the number of customers and store it in an integer variable numOfCustomers. 2- define a dynamic array of this new defined struct with the size entered by the user in step 1 3- Populate the members of the struct in your main via the user typing the customer details and you storing them in the matching index in the array. 4- Write a function to print the names of all the customers having balance less than $200. 5- Write a function to add $100 in the balance of all the customers having more than $1000 in their balance and then print the incremented value of their balance.
Expert Answer:
Answer rating: 100% (QA)
include include struct Customer stdstring name int accountNumber double balance Function to print names of customers with balance less than 200 void p... View the full 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 programming questions
-
ployees. 1. Why do you think there is an increased focus on establishing trusted and opportunity-driven relationships with employees? 2. What are the potential benefits? 3. What are the potential...
-
You will design and implement your own data class. The class will store data that has been read as user input from the keyboard (see Getting Input below), and provide necessary operations. As the...
-
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...
-
How do standard costs illustrate the trade-off between decision making and control?
-
During the year ended October 2, 2011, Gildan Activewear Inc. (Gildan) experienced numerous accruals and deferrals. As a long-term employee of Gildan's accounting and financial staff, it is your job...
-
Brick Oven Corporation made the following expenditures during the first month of operations Required: Record the $131,500 in cash expenditures. Attorneys' fees to organize the corporation Purchase of...
-
Concrete expands both horizontally and vertically over time. Measurements of horizontal and vertical expansion (in units of parts per hundred thousand) were made at several locations on a bridge in...
-
Chow Company is an insurance company in Hong Kong. Chow hires 55 people to process insurance claims. The volume of claims is extremely high, and all claims examiners are kept extremely busy. The...
-
For the following questions consider exhibit 9 for interest rates and assume for BB: 6.5%, B: 7% and CCC: 7.5%. 4. For both scenarios (10% and 90% debt to capital (Book) ratios), estimate BBBY's bond...
-
Arroy Snackfoods is considering replacing a five-year-old machine that originally cost $75,000. It was being depreciated using straight-line to an expected salvage value of zero over its original...
-
Income statement. From the following income statement accounts in the popup window. a. produce the income statement for the year b. produce the operating cash flow for the year. a. produce the income...
-
Compare and contrast Christian communication ethics with a classical ethical theory (deontology, utilitarianism, deontology, existentialism, naturalism, stoicism, or postmodernism). Include at least...
-
More and more companies have specific workplace equity, diversity, and inclusion policies. Think about two companies for whom you may want to work or that you find interesting (Amazon and Google)....
-
Leadership Development Your Leadership Development Story Objective The objective of the Leadership Development Story is for you to capture, in your own style, your leadership development journey over...
-
A company that is planning to launch a new snack food targeted to preteens and teens should use what social media channels and tools to reach those audiences directly, what are the pitfalls to avoid...
-
Tell us about your culture by analyzing the role that communication plays in your culture. Define and explain your personal, social, and cultural identity. Define intercultural communication...
-
Identify the logic function performed by the circuit shown in Fig. xo- O exclusive OR O exclusive NOR O NAND ONOR yo -f(x,y)
-
If the jobs displayed in Table 18.24 are processed using the earliestdue-date rule, what would be the lateness of job C? TABLE 18.24 Processing Times and Due Dates for Five Jobs Job C D E...
-
Sally hires a maid to work in her home for $250 per month. The maid is 25 years old and not related to Sally. During 2012, the maid worked 10 months for Sally. a. What is the amount of Social...
-
Sherry Hopson owns a retail family clothing store. Her store is located at 4321 Circle Drive, Houston, TX 77001. Her employer identification number is 95- 1234321 and her Social Security number is...
-
Diego, age 28, married Dolores, age 27, in 2012. Their salaries for the year amounted to $46,479 and they had interest income of $3,500. Diego and Dolores' deductions for adjusted gross income...
-
Following is a probability density curve with the area between 0 and 1 and the area between 1 and 2 indicated. a. What proportion of the population is between 0 and 1? b. What is the probability that...
-
Use Table A.2 to find the area between z = 1.13 and z = 2.02. Z 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 -0.8 -0.7 .2119 .2090 .2420 2389 -0.6 .2743 .2709 .2676 .2061 .2033 2358 .2327 .2643...
-
Use Table A.2 to find the area to the left of z = 0.25. Z 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 -0.8 -0.7 .2119 .2090 .2420 2389 -0.6 .2743 .2709 .2676 .2061 .2033 2358 .2327 .2643 .2005...
Study smarter with the SolutionInn App