education.mu
Welcome, Guest. Please login or register.
May 23, 2012, 05:59:27 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the free discussion forum. Ask your questions and we shall answer you immediately. Everyday new notes are added on the forum.
988 Posts in 592 Topics by 4706 Members
Latest Member: Sameerchand2012
* Home Help Search Calendar Login Register
+  education.mu
|-+  BCS (British Computer Society)
| |-+  Software Development
| | |-+  C++ Creating a dynamic array of structures
« previous next »
Pages: [1] Go Down Print
Author Topic: C++ Creating a dynamic array of structures  (Read 1832 times)
drumkill
Newbie
*
Offline Offline

Posts: 2


« on: June 11, 2009, 12:12:04 PM »

Put together a program that keeps track of monetary contributions to the Society for the Preservation of Rightful Influence. It should ask the user to enter the number of contributors and then solicit the user to enter the name and contribution of each contributor. The information should be stored in a dynamically allocated array of structures. Each structure should have two members: a character array (or else a string object) to store the name and a double member to hold the amount of the contribution. After reading all the data, the program should display the names and amounts donated for all donors who contributed $10,000 or more. This list should be headed by the label Grand Patrons. After that, the program should list the remaining donors. That list should be headed Patrons. If there are no donors in one of the categories, the program should print the word “none.” Aside from displaying two categories, the program need do no sorting.

Need to do this in C++.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!