美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

CS 213代做、Java設計編程代寫

時間:2024-03-20  來源:  作者: 我要糾錯



CS 213 Spring 2024 Project #2 – 1

Due Date
Monday, February 26, @11:59pm.
Submission
1. Zip your project folder and submit the zipped file to Canvas. The zipped file must include the following items.
 Source folder src, containing the Java files (*.java) [120 points]
(a) MUST create a Java package to hold the source files; MUST use all lowercase letters for the package
name; you will lose 2 points if this is not done properly.
(b) MUST include the @author tag in the comment block on top of EVERY Java class and put the name(s)
who implemented the Java class, or you will lose 2 points.
 JUnit test classes
(a) Date class, test the isValid() method. [15 points]
(b) MemberList class, test the add() and remove() methods [20 points]
 Class Diagram [10 points]
 Javadoc folder, including all the files generated. [5 points]
2. The submission button on Canvas will disappear after February 26, 11:59pm. It is your responsibility to ensure
your Internet connection is good for the submission. You get 0 points if you do not have a submission on
Canvas. Submitting the project through the email will not be accepted.
Project Description
A fitness club owns the studios at 5 different locations in the central New Jersey area as listed below.
Bridgewater, 08807, Somerset County
Edison, 08837, Middlesex County
Franklin, 08873, Somerset County
Piscataway, 08854, Middlesex County
Somerville, 08876, Somerset County
Your team will develop a software to help the fitness club manages the memberships and class schedules. The
software is an interactive system where the users enter the command lines on the terminal and the system displays
the information on the terminal after the users hit the enter key. A command line specifies the operation the user
wanted to perform and includes the data tokens required to complete the operation. An operation code is a single
character or two-character command in uppercase letters. The operation code and the data tokens will be delimited
by one or more spaces in a command line. Operation codes are case-sensitive, which means operation codes with
lowercase letters should be rejected by the system. The software shall provide the functionality of adding and
removing members, managing the attendance of the fitness classes, generating the billing statements, and displaying
membership information in a specified order.
The fitness club currently offers 3 membership options – basic, family, and premium. Members must be 18 or older
to join. There are 3 types of fitness classes, Pilates, Spinning and Cardio, being offered at different studio locations.
Members with the basic membership can only attend the classes offered at the home studio. Members with family
and premium memberships can attend the classes offered at any studio location. Anyone holding a guest pass can
only attend the fitness classes held at the home studio. The software shall run the membership fee dues for all the
members. The fee schedules are listed in the table below.


 2
Membership Type Fee Schedule Fitness Class Attendance
Basic
 $39.99, per month
 billed monthly
 additional charge of $10 per
class exceeding 4 classes
 home studio only
 no guest pass
 4 classes per billing cycle
Family  $49.99 per month,
 billed quarterly (3 months)
 Any studio location for the member
 Home studio only for the guests
 1 guest pass at anytime
Premium
 $59.99 per month
 billed annually with one month
free (pay 11 months)
 Any studio location for the member
 Home studio only for the guests
 3 guest passes at anytime
There are 5 instructors teaching the classes, including Jennifer, Kim, Denise, Davis, and Emma. The fitness club will
provide the class schedule in a text file. This allows the change of schedule independent to the software. Currently,
fitness classes are regularly offered every day in the morning, afternoon, and evening, at 9:30, 14:00 and 18:30,
respectively. Each fitness class can be uniquely identified by the class name, instructor, and studio location. The
system shall load the class schedule from a text file classSchedule.txt and load the historical member information
from the text file memberList.txt. The system shall support the following operation codes (commands.)
 When adding a new member, the system shall create a profile for a new member with the first name, last name,
and date of birth. The profile can be used to uniquely identify the member. There are 3 different add commands.
o AB, to add a member with Basic membership, followed by member’s first and last name, date of birth, and the
location (in city name) of the home studio. Below is a sample command line for adding a member with a Basic
membership. The system shall set the expiration date to 1 month later, e.g., if today is 3/31, the expiration date
is 4/30, the last day of next month. The expiration date depends on the date when you are adding the member.
AB April March 3/31/1990 Piscataway
The date is given in a mm/dd/yyyy format. The names and locations are NOT case-sensitive, that is, April
March and april march are the same person if the dates of birth are also the same; PISCATAWAY and
Piscataway represent the same location. Your software shall not add the member to the database if the data
tokens in the command line have the following conditions.
1. Any date that is not a valid calendar date.
2. The date of birth is today or a future date.
3. A member being added is less than 18 years old. Note, the system checks the birthday month only, e.g., if
today is 2/6/2024, dob 2/28/2006 is considered as eligible, but dob 3/1/2006 is not eligible.
4. An invalid city name has been entered, that is, the studio location doesn’t exist.
5. The member is already in the member database.
6. Not enough data tokens to complete the operation.
o AF, to add a member with Family membership to the member database. Check all conditions listed above. The
expiration date should be set to expire 3 months later.
o AP, to add a member with Premium membership to the member database. Check all conditions listed above.
The expiration date should be set to expire one year later.
 C, to cancel the membership and remove the member from the member database. Since the system checks the
date of birth when adding a member, it doesn’t check the dob when removing a member. However, the member
being removed may not exist in the database. Sample command line: C Paul Siegel 5/1/1999
CS 213 Spring 2024 Project #2 – 170 points 

 3
 S, display the class schedule with the current attendees. Each fitness class shall include the class name, instructor’s
name, the time of the class, and the list of members/guests who have registered. For simplicity, we abstract away
the complexity of tracking the dates of the class schedule. That is, the system does not maintain the dates of the
class schedule, only shows the “current” class schedule.
 Printing the list of members in the member database.
o PM, to display the members sorted by member profiles, i.e., last names, then first names, then dates of birth.
o PC, to display the members sorted by county names, then zip codes.
o PF, to print the members with the membership fees. For simplicity, assume the membership fees are for the
next billing statement, regardless of the membership expiration dates.
 R, to take attendance of a member attending a class and add the member to the class, including the class name,
instructor, and member profile, for example:
R cardio Jennifer somerville Roy Brooks 12/8/1977
The system shall not add the member if the following conditions exist. Check in the order of the data tokens.
o The class name does not exist.
o The instructor does not exist.
o The studio location does not exist.
o The member is not in the member database.
o The membership expired.
o The fitness class in not on the class schedule.
o Member with Basic membership can only attend the classes held at the home studio.
o Time conflict – member is currently in a class held at the same time.
o Member is already added to the class schedule.
 U command, to remove a member from a class, for example, U Pilates Mary Lindsey 12/1/1989
Since the system checks the conditions when adding the member, it shall only check if the member is in the class
to remove.
 RG, to take attendance of a guest attending a class and add the guest to the class. The system does not maintain
guest information. Therefore, the system checks all the conditions in the R command, EXCEPT time conflict. In
addition, the system checks the restrictions of the associated membership, including the home studio location and
the number of guest passes allowed. Below is a sample command line to add a guest of Jonnathan Wei to a class.
RG cardio Davis bridgewater Jonnathan Wei 9/21/1992
 UG, to remove the guest from a class: UG pilates davis Edison Jerry Brown 6/30/1979.
The system shall not remove the guest if the guest is not in the class, or the fitness class does not exist.
 Q, to stop the program execution and display "Studio Manager terminated.", so the user knows that
your software has stopped running normally.
Project Requirement
1. You MUST follow the Coding Standard posted on Canvas under Week #1 in the “Modules”. You will lose points
if you are not following the rules.
2. You are required to follow the Academic Integrity Policy. See the Additional Note #14 in the syllabus. If your
team uses a repository hosted on a public website, you MUST set the repository to private. Setting it to public is
considered as violating the academic integrity policy. The consequences of violation of Academic Integrity Policy
are: (i) your group receives 0 (zero) on the project, (ii) the violation is reported, (iii) a record on your file
of this violation.
CS 213 Spring 2024 Project #2 – 170 points 

 4
3. Test cases for grading are included in the file Project2TestCases.txt and the associated output is in the file
Project2ExpectedOutput.txt. Your project should be able to read the test cases from console in the same order
with the test cases provided in Project2TestCases.txt, line by line without getting any exceptions. Your program
should be able to ignore the empty lines. The graders will run your project with the test cases in
Project2TestCases.txt and compare your output with the expected output in Project2ExpectedOutput.txt. Note
that, the expiration dates in Project2ExpectedOutput.txt were generated on the day I ran the project. The
expiration dates you generated should be different. The data used this project are not associated with any realworld entity and they are created solely for testing purpose.
4. You will lose 2 points for each output not matching the expected output, OR for each exception causing your
project to terminate abnormally. You MUST use the Scanner class to read the command lines from the standard
input (System.in), DO NOT read from an external file, except memberList.txt and classSchedule.txt, or you
will lose 5 points.
5. Each source file (.java file) can only include one public Java class, and the file name is the same with the Java
class name, or you will lose -2 points.
6. Your program MUST handle bad commands; -2 points for each bad command not handled, with a maximum of
losing 6 points.
7. You are NOT allowed to import any Java library classes, EXCEPT the Scanner, File, StringTokenizer,
Calendar, DecimalForamt, and Java Exception classes. You will lose 5 points for each additional Java library
class imported, with a maximum of losing 10 points.
8. You are NOT allowed to use the Java library class ArrayList anywhere in the project OR use any Java library
classes from the Java Collections, or you will get 0 points for this project!
9. When you import Java library classes, be specific and DO NOT import unnecessary classes or import the whole
package. For example, import java.util.*;, this will import all classes in the java.util package.
You will lose 2 points for using the asterisk “*” to include all the Java classes in the java.util package, or
other java packages, with a maximum of losing 4 points.
10. You must define the classes below with the specified inheritance relationships. -5 points for each class missing,
or incorrect inheritance structure.
 Member class defines the common instance variables and instance methods of the subclasses. See the
details of this class in the requirement #12 below.
 Basic class extends the Member class and includes the instance variable private int numClasses;
to keep track of the number of classes attended so far; must override the bill() method, or lose 3 points.
 Family class extends the Member class and includes the instance variable private boolean guest;
to keep track of the guest pass; must override the bill() method, or lose 3 points.
 Premium class extends the Member class and includes the instance variable private int guestPass;
to keep track of the guest passes; must override the bill() method, or lose 3 points.
11. Polymorphism is required, i.e., dynamic binding for the equals(), compareTo(), toString(), and the bill() method
or you will lose 10 points.
12. In addition to the classes in #10, you are required to include the Java classes below, or -5 points for each class
missing. You must always add the @Override tag for overriding methods, or -2 points for each violation. All
instance variables must be “private”. You cannot add additional instance variables or change the method
signatures for the methods listed or -2 points for each violation. You CANNOT perform read or write with
Scanner or System.out in all classes, EXCEPT the user interface class StudioManager.java, and the print()
methods in the MemberList and Schedule class or you lose 2 points for each violation, with a maximum of 10
points off. The floating-point numbers must be displayed with 2 decimal places or -1 point for each violation.
CS 213 Spring 2024 Project #2 – 170 points 

 5
(a) Member class.
 public class Member implements Comparable<Member> {
 private Profile profile;
 private Date expire;
 private Location homeStudio;
public double bill() { } //return the next due amount
 }
 Location is a Enum class defining the studio locations listed in Page #1 of this document.
 Reuse the Date class in Project 1.
 Profile class must be defined as follows. Must override equals(), toString() and compareTo() methods,
cannot add or change the instance variables, or -2 points each.
public class Profile implements Comparable<Profile>{
 private String fname;
 private String lname;
 private Date dob;
 }
 You must implement compareTo() method and override equals() and toString() method -2 points for
each violation. The toString() method returns a textual representation of a member in the following format.
Jane:Doe:5/1/1996, Membership expires 6/2/2024, Location: EDISON, 08837, MIDDLESEX
(b) MemberList class. This is an array-based implementation of a linear data structure to hold a list of member
objects. An instance of this class is a growable list with an initial array capacity of 4, and it automatically
increases the capacity by 4 whenever it is full. The list does not decrease in capacity. An instance of this
class can hold a list of members with different types of membership.
 public class MemberList {
 private Member [] members; //holds Basic, Family, or Premium objects
 private int size; //number of objects in the array
 private int find(Member member) { }
 private void grow() { }
 public boolean contains(Member member) { }
 public boolean add(Member member) { } //add to end of array
 public boolean remove(Member member) { } //shift up to remove
 public void load(File file) throws IOException { }//from the text file
 public void printByCounty() { } //sort by county then zip code
 public void printByMember() { } //sort by member profile
 public void printFees() //print the array as is with the next due amounts
}
 You must implement the methods listed above, and you CANNOT change the signatures of the methods.
-2 points for each method not implemented, signature changed or not used.
 The find() method searches a member in the list and returns the index if it is found, it returns -1 if the
member is not in the list. You must define a constant identifier “NOT_FOUND” for the value -1.
 The remove() method remove a member from the list. This method maintains the relative order of the
members in the list after the remove, -3 points if this is not done correctly.
 You must use an in-place sorting algorithm to rearrange the order of member objects in the array. That
is, no additional array can be declared for sorting, or you will lose 10 points. You must write code to
implement the algorithm. You CANNOT use Arrays.sort() or System.arraycopy() or any other Java
library classes for sorting. You will lose 10 points if you do.
CS 213 Spring 2024 Project #2 – 170 points 

 load() method loads the list of members from a text file.
(c) Schedule class. An instance of this class holds a list of fitness classes loaded from the text file
classSchedule.txt. You cannot add or change the instance variables, and must implement the load()
method or -2 points each violation. You can add constructors and methods.
public class Schedule {
 private FitnessClass [] classes;
 private int numClasses;
 public void load(File file) throws IOException { }
}
(d) FitnessClass class. An instance of this class holds the information of a fitness class and the attendees for
members and guests. You cannot add or change the instance variables, or -2 points each.
public class FitnessClass {
 private Offer classInfo;
 private Instructor instructor;
 private Location studio;
 private Time time;
 private MemberList members;
 private MemberList guests;
}
 Offer is a Enum class to include 3 types of fitness classes: Pilates, Spinning, and Cardio.
 Instructor is a Enum class to include the 5 instructors.
 Time is a Enum class. You cannot add change the constant values, or -2 points each.
public enum Time {
 MORNING (9, 30),
 AFTERNOON (14, 0),
 EVENING (18, 30);
}
(e) StudioManager class
 This is the user interface class to process the command lines. An instance of this class can process a single
command line or multiple command lines at a time. You will lose 10 points if it cannot process multiple
command lines at a time.
 This class should handle all possible Java exceptions thrown by the backend classes, or -5 points each
violation for handling the exceptions in the backend classes.
 When your project starts running, it shall load the 2 text files first, and then display "Studio Manager
is up running...”. so, the user knows the software is ready to read the command lines. It should
continuously process the command lines until the “Q” command is entered. The system displays "Studio
Manager terminated." and then terminates the project execution.
 You must define a public void run() method to process the command lines. You will lose 5 points
if the run() method is missing. You MUST keep this method under 40 lines for readability, or you will
lose 3 points.
(f) RunProject2 class is a driver class to run your Project 2. The main method will call the run() method in
the StudioManager class.
public class RunProject2 {
 public static void main(String[] args) {
 new StudioManager().run(); }
}
CS 213 Spring 2024 Project #2 – 170 points 

 7
13. JUnit test classes. Write code to test the following methods.
 Date class – isValid() method in the Date class, 5 invalid cases, 2 valid cases. You can reuse the test cases
you have in the testbed main() from Project 1.
 MemberList class
o add() method – 3 true cases and 3 false cases for adding Basic, Family and Premium.
o remove() method – 1 true case and 1 false case for removing a random member.
14. Class Diagram. Create a class diagram to document your software structure for Project 2. Hand-drawing the
diagram is not acceptable, and you’ll lose 10 points. You can follow the links below to create a class diagram
online and save it to your device as a picture, which can be included in your submission. You can also use other
UML tools if you like. For each rectangle (class), include ONLY the instance variables and public methods. NO
need to include the constants and private methods. DO NOT INCLUDE the JUnit test classes, the Java library
classes and RunProject2 class in the diagram.
 http://draw.io/  Create New Diagram  UML  Class Diagram
 https://online.visual-paradigm.com/app/diagrams/  Create New  Class Diagram
15. You are required to generate the Javadoc after you properly commented your code. Your Javadoc must include
the documentations for the constructors, private methods, and public methods of all Java classes. Generate the
Javadoc in a single folder and include it in the zip file to be submitted to Canvas. Please double check your
Javadoc after you generated it by opening the index.html file in the folder, and ensure the descriptions are NOT
EMPTY. You will lose points if any description in the Javadoc is empty. You will lose 5 points for  
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 




 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:CSC 172代寫、Java/C++程序設計代做
  • 下一篇:代做AST20201、代寫Java編程設計
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    日韩av片在线免费观看| aaaaa黄色片| | 91精品国自产在线偷拍蜜桃| 亚洲а∨天堂久久精品2021| 午夜时刻免费入口| 欧日韩不卡视频| 亚洲av无码一区二区三区在线| 先锋资源在线视频| 色哟哟无码精品一区二区三区| 91人妻一区二区三区| 日韩精品――色哟哟| 日本一区二区三区网站| 永久免费毛片在线观看| 日本女人性视频| free性中国hd国语露脸| 亚洲一级理论片| 91精品人妻一区二区三区四区| 亚洲永久无码7777kkk| 天天做夜夜爱爱爱| 欧美 日本 国产| fc2ppv在线播放| 亚洲精品理论片| 老妇女50岁三级| 亚洲最大成人综合网| 波多野结衣办公室双飞| 超碰人人干人人| 中文字幕一区二区三区人妻不卡| www.4hu95.com四虎| 狠狠人妻久久久久久综合蜜桃| 九九九视频在线观看| 在线观看亚洲免费视频| 狂野欧美性猛交| av女人的天堂| 国产伦精品一区二区三区妓女| 伊人在线视频观看| 国产成人在线网址| www.av天天| 无码人妻精品一区二区三应用大全| 中国老熟女重囗味hdxx| 免费看特级毛片| 国产激情av在线| 国产精品三级在线观看无码| 午夜不卡久久精品无码免费| 国产尤物在线播放| 网站永久看片免费| 老司机福利在线观看| 亚洲精品国产91| 日本乱子伦xxxx| 非洲一级黄色片| wwwwxxxx国产| 男女做爰猛烈刺激| 韩国无码一区二区三区精品| www.555国产精品免费| 尤物在线免费视频| 国产精品成人69xxx免费视频| 人人爽人人爽人人片| 亚洲区自拍偷拍| 免费看的黄色录像| 永久免费看片视频教学| 成人做爰视频网站| 亚洲 欧美 国产 另类| 亚洲一级二级片| 手机看片国产精品| 国产精品一区二区无码对白| 国产精品99精品无码视亚| 亚洲欧美日韩偷拍| 蜜桃无码一区二区三区| 三级黄色录像视频| 国产精品无码自拍| 亚洲欧洲久久久| 欧美肥妇bbwbbw| 色诱av手机版| av手机在线播放| 韩国三级视频在线观看| 国产美女喷水视频| 成人在线观看免费完整| 国产伦精品一区二区免费| 久久久久久国产免费a片| 一区二区三区四区五区| 无码h肉动漫在线观看| 高h视频免费观看| 97超碰在线资源| 中文字幕无码毛片免费看| 久久中文字幕人妻| 免费人成视频在线播放| www久久久久久久| 国产精品九九视频| 日本一二三区在线观看| 99久久久久久久久久| 亚洲丝袜在线观看| youjizz亚洲女人| 午夜一区二区三区免费| 人人澡人人澡人人看| 高潮毛片无遮挡| 午夜久久久久久久| 亚洲成年人av| 91插插插插插插| 精品国产大片大片大片| 国产激情在线免费观看| 国产精品嫩草av| jjzz黄色片| 四虎成人免费视频| 外国一级黄色片| 情侣偷拍对白清晰饥渴难耐| 91l九色lporny| 人妻少妇一区二区| 青青草视频成人| 中文字幕丰满孑伦无码专区| 国产老熟女伦老熟妇露脸| 日韩黄色免费观看| 又黄又爽又色的视频| 国产老头和老头xxxx×| gogo亚洲国模私拍人体| 中国老熟女重囗味hdxx| 一区二区三区人妻| 国产高清自拍视频| 阿v天堂2014| 日韩 中文字幕| 玖玖爱在线精品视频| 国产综合内射日韩久| 成人在线电影网站| 最新中文字幕视频| 性欧美精品男男| 蜜桃av免费观看| 极品人妻一区二区| 性囗交免费视频观看| 免费a级黄色片| 少妇精品无码一区二区免费视频| 四虎影视一区二区| 丰满少妇一区二区三区专区| 亚洲精品无码一区二区| 久久精品国产亚洲av麻豆| 公肉吊粗大爽色翁浪妇视频| 国产老头老太做爰视频| 日本女人性视频| 一区二区伦理片| 2025中文字幕| 久久久亚洲av波多野结衣| 麻豆国产精品一区| 国产中文av在线| 日本人添下边视频免费| 久久久久久亚洲中文字幕无码| 麻豆视频免费在线播放| 久久r这里只有精品| 成人片黄网站色大片免费毛片| 国产jizz18女人高潮| 亚洲国产精品无码久久久久高潮 | 精品国产乱码久久久久久鸭王1| 人妻互换一二三区激情视频| 国产精品密蕾丝袜| 精人妻一区二区三区| 亚洲天堂精品一区| 三级男人添奶爽爽爽视频| 国产日韩欧美在线观看视频| 女女互磨互喷水高潮les呻吟| 久久发布国产伦子伦精品| 亚洲午夜精品久久久久久高潮| 少妇熟女视频一区二区三区| 欧美另类videoxo高潮| b站大片免费直播| 亚洲av成人片色在线观看高潮| 69av视频在线| 欧美黄色aaa| 婷婷国产成人精品视频| 亚洲精品国产一区黑色丝袜| 97人妻精品一区二区三区免费| wwwav国产| 欧美日韩黄色网| 国产尤物在线播放| 99热6这里只有精品| 午夜精产品一区二区在线观看的| 日本xxxx裸体xxxx| 成人免费无码大片a毛片| 国产不卡一二三| 在线看黄色的网站| 2一3sex性hd| 艳妇乳肉亭妇荡乳av| 狠狠人妻久久久久久综合蜜桃| 俄罗斯黄色录像| 污污免费在线观看| 在线观看国产网站| 久久久视频6r| 自拍偷拍第9页| 国产va在线播放| 午夜影院福利社| 韩国无码一区二区三区精品| 少妇精品一区二区三区| 无码一区二区三区在线| 五月激情四射婷婷| 2021亚洲天堂| 日本xxx在线播放| 男人天堂资源网| 久草福利在线观看| 性欧美成人播放77777| 三上悠亚影音先锋| 综合五月激情网| fc2成人免费视频| 色www亚洲国产阿娇yao| 国产精品熟女一区二区不卡|