Write a C++ program to read the cus_name, cus_id of 5 Customers using array of structures and then print the names in descending order (z to a)  with their corresponding id .The program must contain 3 functions for the following: • void reading(Customer c[],int size) :- for reading cus_name and cus_id. • void printing(Customer c[],int size ):- for printing cus_name and cus_id. • void sorting(Customer c[],int size) :- for sorting the names  z to a

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 8PP: (Data processing) A bank’s customer records are to be stored in a file and read into a set of arrays...
icon
Related questions
Question
Write a C++ program to read the cus_namecus_id of 5 Customers using array of structures and then print the names in descending order (z to a)  with their corresponding id .The program must contain 3 functions for the following:
 void reading(Customer c[],int size) :- for reading cus_name and cus_id.
• void printing(Customer c[],int size ):- for printing cus_name and cus_id.
• void sorting(Customer c[],int size) :- for sorting the names  z to a
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr