首页 > 其他分享 >PROG2004 A simple appointment system

PROG2004 A simple appointment system

时间:2024-11-13 19:44:24浏览次数:1  
标签:code appointment simple system class appointments health professional your

 

Assessment Brief

PROG2004 OBJECT ORIENTEDPROGRAMMINGSummaryTitle Assessment 1 – Programming tasks - a simple appointment system for ahealth service

  Type ProgrammingDue Date

Monday 11 November 2024 11:59 pm AEST (Start of Week 3)Length NAWeighting 20%Academic Integrity See below for limits of use where GenAI is permitted) You may use GenAI tools to get some ideas or insight about particularproblems in code. However, you MUST NOT generate a complete solutioncode.Pleaserefer to theAcademic Integrity section below to see whatyou can and cannot do with the GenAI tools.Submission You will need to submit the following to the submission link provided forthis assignment on the MySCU site:

  • The JAVA project with all your source code files.
  • The link to your GitHub repository.
  • A video explaining your code.

Unit Learning

Outcomes

This assessment maps to the following ULOs:

  • ULO1: explain, compare, and apply advanced class designconcepts
  • ULO2: apply object-oriented programming principles to solveintermediate problemsRationaleThis assessment aims to assess students’ ability to understand and apply object-orientedprogramming concepts and principles to solve intermediate problems. It addresses unit learningoutcomes 1 and 2 and relates to modules 1 and 2.Task DescriptionIn this assignment, your task is to write JAVA codes that manage a simple appointment system for a health service. A patient may make an appointment with different types of health professionals.Health professional is a common term used to describe health workers (e.g., general practitioners,

To limit the complexity, this assessment focuses on two types of health professionals and the booking is only for the current day. Your solution must apply the inheritance concept and utilise a

suitable collection to handle the bookings.In this assessment, you MUST:Use JAVA language to develop the solution.

  • Submit JAVA project with all your source code files to MySCU link.
  • Demonstrate your work progress by regularly uploading your code to your GitHubrepository over the last two weeks. • Record a video to explain your code anddemonstrate your understanding.If you fail to do any of the above, you will lose marks and be required to attend an interview to

xplain your code. If you cannot explain your code, you will be submitted for academic misconduct.

ask InstructionsTo get started:

  • Create a new Java project called username-A1.
  • In the src directory, create a new class called AssignmentOne.
  • In the AssignmentOne class, create the main method.

For this assessment, find a website of any health service near your place (e.g., Southport Method

Medical Centre - https://southportmetromedicalcentre.com.au ) to explore all the different types of

health professionals with that patients can make appointments. While you are doing this, have a

look at the different health professional types as they go from more general to more specific. At the

top level of the Inheritance hierarchy, you need a generic health professional.

Note that this assessment does not endorse any health services. The reference was only used to give students an understanding of the case study. HealthProfessionalThe class must have the following at a minimum:

  • Required instance variables: ID (numbers only) and name.
  • Another instance variable that is relevant to describe the basic information regardless of thedoctor type.
  • A default constructor.
  • A second constructor that initialises all the instance variables.
  • A method that prints all instance variables.Part 2 – Child classesThis part is to create two child classes representing different types of health professionals. To limitthe complexity, this assessment focuses on two types: general practitioner and any other type that 2Assessment Briefyou prefer. Therefore, in the inheritance hierarchy,under class HealthProfessional, you would needto handle general practitioners and the other type of  professional.In your Java project, create one child class named GeneralPractitioner that extends the base classnd another child class for the other type of health professional that also extends the base class.The child class must have the following at a minimum:At leastanothernstance variable that is relevant and suitable to differentiate between ageneral practitioner and another health professional typeA 代写PROG2004  A simple appointment system  default constructorA second constructor that initialises all the instance variables (including the instanceriables in the base class)
  • method that prints the health professional details, including the health professional type

if it is a general practitioner or other health professional type) E.g., "The health professionaldetails are:" followed by all instance variables formatted for readability (including the

instance variables in the base class)

  • Any other methods or variables that you feel are necessary for the class to be usable in the

programPart 3 – Using classes and objectsThis part uses the classes created above to create objects for different types of health professionals.Add the following comment -// Part 3 – Using classes and objects

Write the code to create three objects of General Practitioners and two objects of thother health professional type.

  • Use the methods you created in the base and child classes to print the details of all thehealth professionals you created in the above step (including the informationfrom the baseclass).
  • Add the following code - System.out.println("------------------------------");

Part 4 – Class Appointment

This part is to create a class to accommodate an appointment made by a patient. When a patient

wants to make an appointment, we need to store basic patient details, preferred time slot, and

which doctor the patient wants to meetIn your Java project, create a new class named Appointment. The class must have the following at aminimum:

Instance variables for patient details: name and mobile phone. You are not required tocreate a Patient class, but you may create it if you want to.

  • Instance variable for the preferred time slot (e.g., 08:00, 10:00, 14:30).
  • The selected doctor (general practitioner or another health professional type). This shouldbe an object of the child class.
  • A default constructor.
  • A second constructor that initialises all the instance variables.3Assessment Brief• A method that prints all instance variables.Part 5 – Collection of AppointmentsThis part is to create a collection of appointments using ArrayList anddemonstrate how theappointments work. We may add a newappointment, print existingappointments and cancel an

appointment.In the main method, write the code to:

  • Add the following comment - // Part 5 – Collection of appointments
  • Declare an ArrayList that can store instances (objects) of Appointment class.
  • Create a method named createAppointment to create a new booking and add it to the

ArrayList. Since inheritance is applied, the method should be able to handle if theappointment is to meet any different health professional types (think carefully). Also, makesure all required information is supplied when creating a new appointment. Otherwise, theappointment can not be created.

Create a method named printExistingAppointments to display existing appointments in theArrayList. If there are no existing appointments, print a message to indicatethis. a method named cancelBooking to cancel a booking using a patient’s mobile phone.Ithe mobile phone is not found in the existing appointment, print a message to indicate thiserror.

  • Add the following code - System.out.println("------------------------------");

Lastly, demonstrate the collection and methods created above by doing these:

  • Make 2 appointments with general practitioners.
  • Make another 2 appointments with the other type of health professional.
  • Print existing appointments.
  • Cancel one of the existing appointments.
  • Print again existing appointments to demonstrate the updated collection of appointments.main JAVA method should have the following information:// Part 3 – Using classes and objects Code demonstrating part 3 System.out.println("------------------------------");

// Part 5 – Collection of appointments

Code demonstrating part 5

System.out.println("------------------------------"); NOTE: Make sure that none of the code demonstrating each part of the assignment is commentedout. Your marker willrun your main method and will be expecting to see the output for all parts ofthe assignment. If the output for any part is missing, you WILL lose marks for that part. Youcancomment it out when you are developing; however, when you submit your assignment, the mainmethod must contain all the code required for all parts of the assignment.Use GitHubYou must create a repository on GitHub to store your project work with all files and documents. Youmust show your work progress in this assignment by regularly committing your project to theGitHub repository. In each commit, you need to provide a clear explanation of what changes youhave made in this commit. Failing to show the correct work progress willfail the assignment. 4Assessment BriefCreate a videoIn your video, ensureyou explain:

  • how you implemented inheritance in Parts 1-3,
  • how you demonstrated polymorphism in Part 3, and
  • how you worked with ArrayList and Class to handle the appointments.Your video does not need to be long or go into much detail. You should be able to do all the above in<= 5 minutes; however, the video must demonstrate that you understand the code you aresubmitting and you did not use ChatGPT or a similar GenAI tool to generate it.

Upload your video to your SCU OneDrive and create a sharable link to it. ResourcesUse the following resources to support you when working on this assessment.

  • Study modules 1 and 2 materials and complete all learning activities.
  • Take an active role in the weekly tutorial and workshop.
  • Java API documentation https://docs.oracle.com/en/java/javase/22/docs/api/index.html

Referencing Style Resource NATask SubmissionYou are required to submit the following items:

  • The JAVA project with all your source code files. Zip your project into a file called username

A1.zip and upload the file.

  • The link to your GitHub repository. Add the link in the comments.
  • The link to your short video explaining your code part by part. Add the link in the

comments.

Resubmit policy: This assessment is not eligible for a re-submit.Assessment CriteriaPlease refer to the marking rubric for more details. Marking criteria include:Java code compiles

  • Use of correct coding style, including the use of comments
  • Accuracy of coding
  • Use of suitable coding structures
  • Correct submission and naming conventions of assessment items as requiredAcademic IntegrityAt Southern Cross University, academic integrity means behaving with the values of honesty,fairness, trustworthiness, courage, responsibility and respect in relation to academic work.The Southern Cross University Academic Integrity Framework aims to develop aholistic, systematicand consistent approach to addressing academic integrity across the entire University. For moreinformation, see: SCU Academic Integrity Framework5Assessment Brief6Assessment Brief

NOTE: Academic Integrity breaches include unacceptable use of generative artificial intelligence(GenAI) tools, the use of GenAI has not been appropriately acknowledgedor is beyond theacceptable limit as defined in the Assessment, poor referencing, not identifying direct quotationscorrectly, close paraphrasing, plagiarism, recycling, misrepresentation, collusion, cheating, contractcheating, fabricating information.At SCU the use of GenAI tools is acceptable, unless it is beyond the acceptable limit as defined in the

Assessment Item by the Unit Assessor.

GenAI May be Used

Generative artificial intelligence (GenAI) tools, such as ChatGPT, may be used for this assessmenttask. If you use GenAI tools, you must use these ethically and acknowledge their use. To find outhow to reference GenAI in your work, consult the referencing style for your unit via the Libraryreferencing guides. If you are not sure how to, or how much, you can useGenAI tools in yourstudies, contact your Unit Assessor. If you use GenAI tools without acknowledgment, it may result inan academic integrity breach against you, as described in the Student Academic and Non-AcademicMisconduct Rules, Section 3.You may use Generative Artificial Intelligence (GenAI) tools, such as ChatGPT or Copilot, for thisassessment task to get some ideas or insight about particular problemsin code. It is similar whenyou try to find a snippet of code fordoing a particular task in Stack Overflow. For example, you must make your own effort to modify, refine, or improve the code to solve the assessment problems.

Think of it as a tool – a quick way to access information – or a (free) tutor to answer your questions.

However, just as if you Googled something, you still need to evaluate the information to determineits accuracy and relevance. If you have used a GenAI tool in this assessment, you must document how you used it and how it assisted you in completing yourassessment tasks. Failing to do that

will be subject to an academic integrity investigation.You cannot use AI to generate a complete solution code. You need to put your own effort intobuilding the solution code for the assessments to demonstrate the required skills. Refer toassessment information in the Assessment Tasks and Submission area for details.

Special ConsiderationPlease refer to the Special Consideration section of Policy.https://policies.scu.edu.au/document/view-current.php?id=140Late Submissions & Penalties

Please refer to the Late Submission & Penalties section of Policy.https://policies.scu.edu.au/view.current.php?id=00255Grades & Feedback

Assessments that have been submitted by the due date will receive an SCU grade. Grades andfeedback will be posted to the ‘Grades and Feedback’ section on the Blackboard unit site. Pleaseallow 7 days for marks to be posted.… continued on next page ...

comments, work progress in GitHub, and video. Description of SCU Grades

High Distinction: student’s performance, in addition to satisfying all of the basic learning requirements, demonstrates distinctive insight and ability in researching, analysing andapplying relevant skills and concepts, and shows exceptional ability to synthesise, integrate and evaluate knowledge. The student’s performance could be described asoutstanding in relation to the learning requirements specified.Distinction:The student’s performance, in addition to satisfying all of the basic learning requirements, demonstrates distinctive insight and ability in researching, analysingandapplying relevant skills and concepts, and shows a well-developed ability to synthesise, integrate and evaluate knowledge. The student’s performance could be describedas distinguished in relation to the learning requirements specified.Credit:

 

标签:code,appointment,simple,system,class,appointments,health,professional,your
From: https://www.cnblogs.com/comp9321/p/18543390

相关文章

  • C# 抛出异常代码应该避免使用 System.Exception或ApplicationException
    在.NET开发中,异常处理是确保程序健壮性和可靠性的关键部分。然而,许多开发者在编写代码时,可能会默认使用System.Exception或ApplicationException来抛出异常。这种做法虽然简单,但并不推荐。本文将探讨为什么应该避免使用这些通用异常,并提供更好的替代方案,以及如何结合这些最佳......
  • RadSystems 自定义页面全攻略:个性化任务管理系统的实战设计
    系列文章目录探索RadSystems:低代码开发的新选择(一)......
  • Introspect M5513-DDR5 MR-DIMM Module Test System
    M5513DDR5MR-DIMMModuleTestSystemComplete ChaaracterizationandFuncationalTestingofMR-DIMMModulesTheM5513isanall-inclusivememorytestsystemfornext-generationDDR5multiplexed-rankdualinline memorymodules(MR-DIMM).Operating......
  • error: NU1100: 无法解析 net8.0 的“System.Management.Automation (>= 7.2.0)”。
    前言最近,在使用Net调用PowerShell,碰到了一个很不常见的错误,记录一下,也许有朋友会遇到,希望有所帮助。正文错误截图如下,其实很奇怪,一样的代码,有些地方报错,有些没事。2.文字版本的错误,方便复制粘贴,如下:MicrosoftWindows[版本10.0.22000.2538](c)Micr......
  • Project Three: Simple World
    ProjectThree:SimpleWorldDue:Nov.17,2024MotivationTogiveyouexperienceinusingarrays,pointers,structs,enums,anddifferentI/Ostreamsanwritingprogramthattakesarguments.Toletyouhavefunwithanapplicationthatisextremely......
  • System.Data.SqlClient is not supported on this platform.
    异常: 程序在修改了非数据库相关的代码后发布进行部分覆盖,抛出异常,本次并未覆盖数据库相关的dll查询解决方案都给出的是,将本地的Microsoft.Data.SqlClient.dll拷贝到发布处覆盖,这种方式不行本次原因:之前发布是目标运行时选的“可移植”,部署地方还是保持可移植,而本次因其他地......
  • 在 Windows 系统中,DFS (Distributed File System) 是一种用于文件共享和管理的技术,能
    在Windows系统中,DFS(DistributedFileSystem)是一种用于文件共享和管理的技术,能够让多个服务器上的共享文件夹(共享资源)通过一个统一的命名空间来访问。DFS主要通过DFS命名空间和DFS复制这两个组件来实现。DFS相关命令和功能在Windows中,DFS相关的命令通常是通过......
  • 第18篇 :深入剖析systemverilog中 randomize 失败之烧脑案例(三)
    在工作实践中,验证环境往往十分复杂,约束条件根据实际测试场景,也是层出不穷,到处都是。可能会遇到各种各样,奇奇怪怪的问题。 针对systemverilog中的randomize()随机约束问题,前面总结了一些规则,这些规则,语法书并不会讲的很透彻,全面覆盖到。只有我们在实际工作中,反复捶打,不断尝试......
  • System File Checker(简称 SFC)是 Windows 操作系统中的一个内置工具,用于扫描和修复损坏
    SystemFileChecker(简称SFC)是Windows操作系统中的一个内置工具,用于扫描和修复损坏或丢失的系统文件。它帮助用户恢复Windows操作系统中重要的文件和组件,以确保操作系统能够正常运行。什么是SFC(SystemFileChecker)?SFC是一个命令行工具,通过扫描Windows系统中的保护文件......
  • System
    System类常见的成员方法:图1System是一个工具类,提供了一些与系统相关的方法.publicstaticvoidexit(intstatus)//终止当前运行的Java虚拟机status是一个状态码,有两种情况,第一种情况是等于0,表示当前虚拟机是正常停止的.第二种情况是非零,一般是写1......