Question
Thread display: Collapse - |
All Answers
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
c programming for a beginner
4
324 herold st, here, VIC 3180
John, William
4
5000.799805
51
123 Smith St, DOncaster, NSW 28**
John, william
5
5555.500000
1
121 Martin Place, Point Cook, VIC 2**0
Brian, Davis
7
2000.000000
42
12 Peterson St. Fadden, ACT 2904
Peter, Smith
6
1000000.000000
0
The work
Task 1 [10 marks code correctness]
The program should be menu driven. The user should be presented with the following menu:
1. Load catalogue from file
2. Delete property from catalogue
3. Save catalogue to file
4. Search property
5. Sort and display catalogue
6. Quit
After selecting one of the above options the corresponding task should be performed. After completing the selected task, the menu should be displayed again for the user to choose from again.
Task 2 [20 marks code correctness]
Implement the load catalogue from file menu option. After selecting this option the user should be asked to enter the name of a file to be loaded. The file should then be loaded into a run-time(dynamically) allocated data structure. You should not use compile-time (static) memory allocation. You can assume the file will have the following format.
[Number of properties]
[Address of property]
[Real estate agent firstname], [Real estate agent surname]
[Number of bedrooms]
[Price of property]