RICHFIELD GRADUATE INSTITUTE OF TECHNOLOGY (PTY) LTDFACULTY OF INFORMATION TECHNOLOGYPROGRAMMING C ++ 6211ST SEMESTER ASSIGNMENTName & Surname: _________________________________ ICAS No: _________________Qualification: ______________________ Semester: _____ Module Name: __________________________Date Submitted: ___________ASSESSMENT CRITERIAMARKALLOCATIONEXAMINERMARKSMODERATORMARKSMARKS FOR CONTENTQUESTION ONEQUESTION TWO5050TOTAL MARKS100MARKS FOR TECHNICAL ASPECTS1. TABLE OF CONTENTS2. LAYOUT AND SPELLING3. REFERENCETOTAL MARKSTOTAL MARKS FOR ASSIGNMENT100Examiner’s Comments:Moderator’s Comments:Signature of Examiner:Signature of Moderator:NB:1. Candidates are advised to read the guide lines on page 2.2. Assignment questions are on page 3.3. For reference use prescribed, recommended books and other PROGRAMMING Source you maycome across.The purpose of an assignment is to ensure that the Learner is able to:•Use methods of enquiry and research in a disciplined field.•Interpret and evaluate text.•Have a sound understanding of key principles and theories, rules and awareness.•Solve unfamiliar problems using correct procedures as well as investigate andcritically analyse information and report thereof.•Present and communicate information reliably and coherently.Instructions and guidelines for writing assignments1. Use the correct cover page provided by the institution.2. The length of the entire assignment must have minimum of 5 pages. Preferably typedwith font size 122.1 The quality of work submitted is more important than the number of assignedpages.3. Copying is a serious offence which attracts a severe penalty and must be avoided at allcosts. If any learner transgresses this rule, the lecturer will retain the assignments andask the affected learners to resubmit a new assignment which will be capped at 50%.4. Use the Harvard referencing method.Programming Oriented ModulesRecommended Software for Commercial Programming:Integrated Development Environment (IDE): Visual Studio 2012Operating System: Windows 8/7When compiling your Answer Booklet, please take note of the following:A screenshot of an output, should be followed by the code of the respective output.Preface:The goal of this assignment is to introduce, guide and test students on OOP, File I/O and Datastructure. The assignment is structured in such a way that every learner can tackle it andmost importantly, to assist campuses which are struggling with programming withoutcompromising quality.QUESTION ONE[50 MARKS]A parking garage charges a R7.00 minimum fee to park for up to three hours. The garagecharges an additional R1.75 per hour or part thereof in excess of three hours. Assume thatno car parks for longer than 24 hours at a time. To determine how long a car was parked,both the entry time and exit time are converted to minutes. The entrance time in minutes isthen subtracted from the exit time in minutes, and these minutes are converted back tohours and minutes before the parking fee is calculated.Write a program that calculates and prints the parking charges for customers who parked inthis garage. Twenty customers use the parking garage at any given time. For each customerthe program has to:Input the time when the parking garage was enteredInput the time when it was exitedConvert both the entry and exit time to minutesCalculate how long the car was parked in minutes (parked time)Convert the parked time in minutes back to time in hours and minutesCalculate the charge (amount owed by the customer)Display the receipt for the customer (display entry and exit times (in 24h00 format,duration for parked time and chargeCalculate the total of daily receiptsFinally the total amount of all the receipts should be displayed with informativemessagesThe program should consist of five functions. Declare constants for the number ofminutes in an hour, the minimum fee (R7.00), the cut-off time of three hours, the hourlyfee of R1.75 and the number of customers (20). Follow the conventions of the StudyGuide and prescribed text when writing the program.QUESTION TWO[50 MARKS]Botanical Gardens is a firm that services gardens. They work once a week for three hours inthe garden of each of their clients. A maximum of 7 gardeners may work together at anygiven time determined by the size of the garden. The following information is available foreach of the gardens currently serviced by them:Address ( a string , e.g. 100 Mandela Street, Polokwane)Day of the week on which a specific garden is serviced (a string, for e.g. Tuesday)Names and number of gardeners working together in the specific garden ( string / integer)An indication whether there is a swimming pool in the garden (a character, namely Y it thereis a pool or N otherwise)You have to write a program to provide the management with certain information. Followthe following phasesPhase1: Declare a classWrite down the declaration of a class for storing the information about a single garden. Givethe name to the classPhase2: An array of classesWrite down the declaration of a constant NR_OF GARDENS and set it equal to 12. Thenwrite down the declaration of an array of 12 classes that will contain the information about12 gardensPhase3: A function to input the informationWrite a function that inputs the information about 12 gardens. The function header shouldbeUse a loop to validate the input about the presence of a swimming pool, thus a promptingmessage should appear, repeatedly asking that either Y or N be entered until it is done.Phase4: A function to display specific informationWrite a function to display the following three groups of information:iiiiiiivvNames of gardeners and the addresses of all gardens serviced on WednesdaysFor all gardens in Long Street that have pools, the days on which they are servicedand the number of gardeners working there,The addresses and names of all gardens requiring more than 5 gardeners at a timeNames, number of hours and the wages for each gardener given that the rate perhour is R5.75Phase5: A complete programWrite a main function that calls the other functions. Use the declarations and functionabove to from a complete program. No global variables may be used. Run your program onthe data below:NB: Provide own hypothetical names for the maximum of 7 gardeners working together ina garden33 Mandela StreetMonday3YLithuli Hourse, GautengFriday6Y123 Long StreetTuesday3Y5 Thabo Mbeki AvenueTuesday4N555 Long StreetThursday2N99 Long StreetWednesday6Y2 Main StreetTuesday1NBeach Front ParkMonday7N456 Long StreetWednesday5YCentral SquareMonday7NFlora ParkThursday5N50 Long StreetFriday3YTOTAL 100
RICHFIELD GRADUATE INSTITUTE OF TECHNOLOGY
by writings | Apr 6, 2019 | Uncategorized
We offer the best custom paper writing services. We have done this question before, we can also do it for you.
Why Choose Us
- 100% non-plagiarized Papers
- 24/7 /365 Service Available
- Affordable Prices
- Any Paper, Urgency, and Subject
- Will complete your papers in 6 hours
- On-time Delivery
- Money-back and Privacy guarantees
- Unlimited Amendments upon request
- Satisfaction guarantee
How It Works
- Click on the “Place Your Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
- Fill in your paper’s requirements in the "PAPER DETAILS" section.
- Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
- Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
- From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.

