Exercise 01v1.docx - CSC138(Structured Programming Kurti House is a boutique that sells very cheap blouses This boutique offers 50 blouses of various

Exercise 01v1.docx - CSC138(Structured Programming Kurti...

This preview shows page 1 out of 1 page.

CSC138 (Structured Programming) Kurti House is a boutique that sells very cheap blouses. This boutique offers 50 blouses of various types. a) Write C++ statements to assist the boutique management to perform the following tasks: i) Declare an array named kurtiBlouse to store the charges for each blouses. (2 marks) ii) Accepts charges from the boutique manager and store the charges in array kurtiBlouse . (3 marks) b) Write a function definition for each of the following tasks: i) Function
Image of page 1

Unformatted text preview: indexHighCharge() : This function receives an array and its size through its parameter. This function then determines and returns the index of the highest charge in the array. (5 marks) ii) Function sortDescCharges() : This function receives an array and its size through its parameter. This function then performs a descending order bubble sort on the array. (6 marks) c) Write function call statements to call function in b(i) and b(ii). (4 marks)...
View Full Document

  • Fall '18

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes