IS2022 Business Programming with Spreadsheet
▪ City University of Hong Kong ▪ Department of Information Systems ▪ IS2022 ▪ 1/2
Individual Assignment (8%)
Develop a professional error-free application using MS Excel and VBA to calculate fees
and charges for a golf club.
The ISmart Golf Course (IGC) is a public golf course that requires players to take the Golf
Course Ferry from the designated pier. The round-trip ferry price are as follow: 85forregularusers,40 for junior (under 12 years of age), and 40forsenior(60yearsofageandover).IGCoffersthreeexceptionalpublicgolfcoursesinAsia:theEastCourse,NorthCourse,andSouthCourse.Playersmustreserveacourseatleastoneweekinadvance.TheindividualcoursefeesareprovidedinTable1.Thegolfcoursealsooffersavarietyofgolftuitionprogramsforbeginnerstoadvancedgolfers.Thetuitionfeesincludethegolfcoursecharges,andthedetailscanbefoundinTable2.Optionalequipmenthireservicesarealsoavailable.YoumaycopythefeetablestoMSExcelinordertocalculatefeesandchargesaccurately.Createabuttonontheworksheettoinitiateyourapplication.DevelopaSubprocedureinaModulewithappropriate代写IS2022BusinessProgrammingwithSpreadsheetvariables,orconstants,anddatatypestocalculatethetotalamountagolfplayerneedstopay,consideringtuition,feesorcharges.UseInputboxfunctions(traditionalinputboxes,NOTInputboxmethods;NOuserformisrequired)toprompttheuserformandatoryinformation,suchasreservationdate,player’sfullname,gender,andplayerstatus(regularjunior/senior,HKIDcardholderornon−HKIDcardholder).Theusershouldalsoindicatewhethertheywanttoreserveagolfcourseorregisteralesson.Iftheuserwantstoreserveagolfcourse,theywillenterthecorrespondingcodeforthedesiredcourse,aslistedinTable1.Iftheuserisbookingalesson,thereisnoneedtoreserveagolfcourse.Instead,theywillenterappropriatetuitioncodefromTable2.TheUsermayalsoreserveequipmentbyenteringthecorrespondinghirecode(s)fromTable3.Theapplicationandinputboxesshouldincorporateappropriatedatavalidationanderrorhandlingmechanismstoavoidabrupttermination,andinputerrorsorexecutionerrors.Theapplicationshouldcalculatethefeesanddisplaytheresultsinamessagebox.Themessageboxshoulddisplaytheplayer’sfullname,abreakdownofchargesandfees,andthetotalfeesformattedwithappropriatecurrencyformat,icon,titleandcurrentdate.Iftheuserchoosestoretryafterviewingtheresultmessagebox,theapplicationshoulddisplayalltheinputboxesagainandrepeattheprocess.Iftheuserchoosestocancel,theapplicationshouldterminate.Yourtaskistodevelopacomprehensiveanduser−friendlyapplicationthataccuratelycalculatesfeesandchargesforthegolfclub,incorporatepropervalidation,errorhandling,anduserinteractionfeatures.Assessmentcriteriaoftheindividualassignmentwillbebasedonyourabilitytoperformthecriteriaaboveintermsofthefollowings:oWritemacros(subprocedures)usingVBAinMicrosoftExcel.oUseappropriatedatatypestodeclarevariablesand/orconstants.oUseappropriateinputboxfunctionstocaptureuserinputwithdatavalidationrulesanderrorhandlingmechanisms.IS2022BusinessProgrammingwithSpreadsheet▪CityUniversityofHongKong▪DepartmentofInformationSystems▪IS2022▪2/2oUserepetition,decisionand/orselectionstructuresinVBAcode.oUsemessageboxwithappropriateprompttodisplayresultscorrectly.SaveyourfileasIndAssign<yourStudentIDnumber>.xlsmSubmissiondeadline:14April2024,(Week12Sunday)11:59pmPleasecheckandconfirmthefileyousubmitonCanvasiscorrectandcompletebeforethesubmissiondeadline.Incompleteorlatesubmissionwillresultin0mark.FeeTables:Table1:GreenFeeRegularG01EastCourse(18holes)1,200
G02 South/North Course (18 holes) 980G03SouthCourse(9holes)550
Senior (60 years of age and over)
G04 East Course (18 holes) 850G05South/NorthCourse(18holes)750
G06 South Course (9 holes) 380Junior(Under21yearsofage)G07EastCourse(18holes)475
G08 South/North Course (18 holes) 450G09SouthCourse(9holes)250
Regular (non-HKID Card Holder)
G10 East Course (18 holes) 1,600G11South/NorthCourse(18holes)1,300
G12 South Course (9 holes) 800Juniornon−HKIDCardHolder(Under21yearsofage)G13EastCourse(18holes)675
G14 South/North Course (18 holes) 650G15SouthCourse(9holes)350
Table 2: Golf Tuition
Regular Per Person
T01 Introduction (8 hours) 2,200T02OnCourseLesson(4hours)1,200
T03 Golf Pass (8 hours) 2,500T04PrivateTuitionFeewithHeadGolfProfessional4,000
Junior (Under 21 years of age) Per Person
T05 Junior Group Lesson 600T06JuniorPrivateTuitionFee(3hours)1,000
Table 3: Hire Service
H01 Set of Golf Club (Premium) 500H02HireCenterGolfBagStorage40
H03 Private Locker – Annual rate* 4,000∗H04GolfBagCarrier340
WX:codinghelp