Computer Science homework help
You need to create above memory schema to keep data for 10 customers. Each customer is a struct of 3 data pieces: ID, Type, and Balance.
Follow these steps to develop a complete cpp file:
– Define a Customer struct
– Define an array pointer to keep 10 customer
– Fill out customer data with random number or text, considering
– ID: a random number between 1000 and 5000
– Type: a random string, either “personal” or “business”
– Balance: a random number between 0 and 600. This is dollar amount.
– List all customer data having one customer at each line.
– List all customer who have balance more than $450 (>450) having one customer at each line.
Sample output:
All customers:4723,business,$91
1183,personal,$378
3320,business,$383
2754,business,$336
1531,personal,$479
3631,business,$282
4609,business,$424
3069,business,$227
3257,business,$24
1722,personal,$578
Customers with balance of more than $450
1531,personal,$479
1722,personal,$578