久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

代做ICS4U、代寫 java 程序語言

時間:2024-04-14  來源:  作者: 我要糾錯



ICS4U: Unit 3 – Object Oriented Programming
Assignment 3 – Car Rental System (CRS)
1. General Info
You are to help CIMP to write Car Rental System (CRS). The system will be used by the system’s employee so data will not be randomly entered by customers. It has the following functionalities
• Import existing cars from a textfile that contains all the cars’ info.
• Add a single car into the system manually.
• Display cars in the system. May filter the display:
o Displaysedansonly
o Displaycoupesonly
o Displaycrossoversonly o Displayconvertiblesonly o Displayallcars
• Rent cars
• Return cars
• Exit (leave the program)
2. Program Flow
               Page 1 of 12

ICS4U: Unit 3 – Object Oriented Programming
3. User Interface a) Main Screen
      b) Import Cars from File
   After importing, we can see all cars.
   Page 2 of 12

ICS4U: Unit 3 – Object Oriented Programming
 c) Add Single Car
Adding a Sedan
   Adding a coupe
 Adding a Crossover
  Page 3 of 12

ICS4U: Unit 3 – Object Oriented Programming Adding a Convertible
   When displaying all cars, it shows the new cars:
  d) Display Cars
We can display all cars
   We can also display a spcifici type of car (Sedan in this case)
  Page 4 of 12

ICS4U: Unit 3 – Object Oriented Programming
 e) Rent Car
Let’s say we want to rent the car with Car-ID 1008
We will enter the information. If it satisfy all criteria, then it goes through
    The rented car in the Display screen
I may rent another car
  Here’s another car rented in the Display Screen
  Page 5 of 12

ICS4U: Unit 3 – Object Oriented Programming
 f) Return Cars
Let’s return 1008, which driving within the allowable distance (Allowable is 1250 km, shown in Display Screen)
After returning 1008, that row is clear. However it shows that the car’s mileage went up by 1000.
Now let’s return 1457, but drove more than allowable distance
Then it will calculate the penalty and show it on screen.
      Page 6 of 12

ICS4U: Unit 3 – Object Oriented Programming
4. UML Diagram
Here’s the UML diagram of the program. Your program must follow the same structure.
    Page 7 of 12

ICS4U: Unit 3 – Object Oriented Programming
5. Text File & Database
The program comes with a text file called CarList.txt, that contains some dummy car information. You may import it into the garage, so that you may test your program easily. The columns are separated by a colon “:”
Example of the textfile:
    0:Honda:Civic:Good on Gas
1:Toyota:Supra:false
2:Mazda:CX-5:5
3:BMW:Z4:15.4
0:Toyota:Corolla:Top Safety
0:Audi:A4:Luxurious
1:Nissan:GT-R:false
1:BMW:440i:true
2:Lexus:GX460:8
3:Mazda:MX-5:7.6
   Column 1: Column 2: Column 3: Column 4:
Note:
Car Type. Refer to Car class to see the values and their corresponding car type. Car maker. This is the company that makes the car
Car model. The name of the car.
The special information specific to a car type:
- Sedan
- Coupe
- Crossover
- Convertible
Special information about the car
If it contains back seats
Number of seats it has
Time to open the soft(or hard) top in seconds
    The Car-ID is not in the textfile, because your program should automatically generate it when a new car is added.
     Extra – For those who wants to understand the code inside Database.java (NOT REQUIRED): For more information on how to work with .txt using Java, please refer to the following websites:
• https://www.geeksforgeeks.org/different-ways-reading-text-file-java/ • https://www.javatpoint.com/java-bufferedwriter-class
    6. More Information a) Database
The Database will store all of the Car objects in an array. We haven’t learnt how Array of Objects work, but assume it’s similar to storing any normal data type in an array.
b) Car ID (ID)
Each car will have a unique Car ID. Each new car going into the system will have a randomly generated ID assigned to them. The range is between 1000 – 1999, therefore only 999 cars can be stored into the system.
 Page 8 of 12

ICS4U: Unit 3 – Object Oriented Programming
c) Different Car Types
The system only has 4 types of parcel: Sedan, Coupe, Crossover and Convertible
Each type has their own type specific Extra Info and formula in calculating the Allowable Distance and the Extra Distance Penalty Fee. Please refer to the following table:
Type Extra Info
Special Info – Describes what special features the sedan has.
If the coupe has a back seat or not.
The number of seats the Crossover has.
The time it takes (in seconds) to open/close the convertible top.
If the renter did not exceed the allowable distance, then there’s no fee. If it exceeds, here’s the table:
   They are represented by an integer. May refer to Parcel class to find the values.
Sedan = 0 Coupe = 1 Crossover = 2 Convertible = 3
   However, when displaying parcels in the table format, it is shown as:
Sedan = “SED” Coupe = “CPE” Crossover = “XOR” Convertible = “CVT”
         Sedan
   Coupe
   Crossover
   Convertible
     Allowable Distance
   Extra Distance Fee Formula
 Type
  Sedan
 = ⌊ 
 × 250⌋ •  = 1.25 × 
        Coupe
 = ⌊ 
 × 100⌋
Note: ⌊@⌋ system means round down to the nearest integer.
Has backseat:
 = 74× +20
 = 74× +35 =2× +25,%≤6
=2× +45,%=78
= 1 ×( ))+55,%>8 30
 No backseat:
         Crossover
 = ⌊ ! × ( 
 × 150)⌋
        Convertible
if the car is being rented for less than 5 days, then
 = 500
if the car is being rented for more than or equals to 5 days, then
 = + 5 
 × 400,
And the renter will get 5 days bonus (Calculation doesn’t include the bonus 5 extra days)
 = 2-...//(0123456789.): + (750 − 25.5 × sec) where ? = time in seconds to open/close top
        Page 9 of 12

ICS4U: Unit 3 – Object Oriented Programming
7. Working with Date class
This assignment, you will be using the Date class and calculate the due date. The following are some links you will need to research a bit on yourself:
    Parsing and Formatting Dates in Java
 http://tutorials.jenkov.com/java-date-time/parsing-formatting-dates.html
Add days to current date
 https://www.mkyong.com/java/java-how-to-add-days-to-current-date/
Convert Date to String
 https://www.javatpoint.com/java-date-to-string
Convert String to Date
 https://www.javatpoint.com/java-string-to-date
Constructors and Methods in Date class
 https://www.tutorialspoint.com/java/java_date_time.htm
 https://docs.oracle.com/javase/7/docs/api/java/util/Date.html
 8. Requirements
• Do not change the Database class. If Database is changed and program cannot be compiled, then you will get zero.
• Must use the Database class to help you store and access the data. Read the JAVA DOCS (Comments) to help you understand how to use each method inside the Database class. Just understand the method header is enough. It is not necessary to understand what is happening inside each of the method.
• Program must follow the program flow chart and UML diagram.
• Do not create extra classes
• Do not create extra public methods (except helper methods in CRS class)
• Must complete all template methods and the main methods.
• Each class must be in its separate file to improve readability and maintainability.
• Do not use anything that’s not taught in Unit 1-3 (Eg: ArrayList, LinkedList, 2D-Array, etc.)
• Must create extra helper methods (Part of the marking scheme)
• Must follow Front-End and Back-End design. (Except DisplayCar() method in CRS)
• Must utilize Polymorphism correctly (Program may still work without using Polymorphism at all)
9. Error Checking
• Must check if options entered are valid.
• Must check if ID entered are valid (exist or not).
• Must check Car Type is valid
• Must check number of days is valid (positive)
• Must check distance is valid (0 or positive)
• Assume when creating a new car, Extra Info will always be valid values.
• Assume options entered will always be the correct data type (Eg: If the Scanner is expecting an int, I will
not enter a string)
• If user entered info is wrong, it will go back to the main screen. Program will NOT repeatedly ask for the
correct info.
  Page 10 of 12

ICS4U: Unit 3 – Object Oriented Programming
10. Provided Templates and Files to Submit
  Provided Code & Template
   Files to submit
   Do not submit the following
   Car.java
 Convertible.java  Coupe.java
 Crossover.java  CRS.java
 CRSMain.java
 Database.java
 Sedan.java
 CarList.txt
    Car.java
 Convertible.java  Coupe.java
 Crossover.java  CRS.java
 CRSMain.java
 Sedan.java
   Database.java
 CarList.txt
 Any.class or.java~
  11. Note
 You may write as many or as little code. However, try to aim for my benchmark.  My sample code (excluding Database.java) contains 869 lines of code
 The templates contain a total of 235 lines of code already.
 You just need to write 633 lines of code to complete this assignment.
 Working with friends is highly encouraged, and may share ideas. However no sharing of code. There are
programs that can check the program’s similarity, and I can see who are copying programs.
  Page 11 of 12

ICS4U: Unit 3 – Object Oriented Programming
12. Marking Scheme: Checklist
Knowledge
Items
 Created and Used Methods correctly
 Used Classes and Objects correctly
 HaveInheritance
 HaveEncapsulation
 HavePolymorphism
 Displayinfocorrectly
 Program loops correctly between Menu and Screens  Usedmaterialnotfromlesson
Application
Items
 AddCar(Object)
 RentCar() is working
 ReturnCar() is working
 DisplayCar() is working
 DisplayCar(int) is working  Usedmaterialnotfromlesson
Thinking
Your Mark
Out of 4
4
4
4
4
4
4 -14 28
Out of 5 12
9
1
3 -15 30
Out of 4
4
4 4 8 4 8 4 -20 40
Out of 4
4
4
4
4
4 24
                                 Knowledge Total:
Application Total:
Your Mark
Your Mark
                                   Items
 Created Global Constant variables and used them correctly/efficiently
(minimum 5)
 Created Non-1 Line Helper Methods and used them correctly/efficiently
      (minimum 2)
 Applied Inheritance Efficiently/Correctly
 Applied Encapsulation Efficiently/Correctly
 Applied Polymorphism Efficiently/Correctly
 Followed UML diagram design
 Followed Frontend & Backend Design
 Check invalid input
 Used material not from lesson
Communication
Items
 HaveJAVADOCforHelperMethodsthatyoucreated  Correct Method & Variable naming convention
 Comments in code
 CodeIndentation
 ClearUserInterface
 Appropriatewarningmessages
Thinking Total:
Communication Total: PERCENTAGE:
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

















 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:CSI 2120代做、代寫Python/Java設計編程
  • 下一篇:COMP 2049 代做代寫 c++,java 編程
  • 無相關信息
    昆明生活資訊

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

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

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

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    日本高清一区二区视频| 18禁裸男晨勃露j毛免费观看| 国产精品一区二区小说| 国内少妇毛片视频| 国产成年人视频网站| 岳毛多又紧做起爽| 在线观看污视频| 中文字幕天天干| 欧美日韩在线一| 99热久久这里只有精品| 特黄特黄一级片| 国产免费999| 苍井空浴缸大战猛男120分钟| 国产尤物av一区二区三区| 在线视频一二区| 麻豆一区二区三区视频| 久久9精品区-无套内射无码| 欧美二区在线视频| 男人c女人视频| 日韩 欧美 自拍| 网站在线你懂的| 五月天婷婷亚洲| www.99r| 无限资源日本好片| 欧美丰满熟妇xxxxx| 91看片就是不一样| 男人操女人免费软件| 97国产精东麻豆人妻电影| 青青青国产在线观看| 国产中文字幕在线免费观看| 日韩欧美视频网站| 国产视频九色蝌蚪| 国产xxxxx在线观看| 日本成人在线免费视频| 欧美一级黄色影院| www.色偷偷.com| 一级黄色特级片| 亚洲xxx在线观看| 57pao国产成永久免费视频| 国产又大又黄又猛| 波多野结衣在线免费观看| 天天色天天干天天色| 国产成人三级视频| 国产精品久久国产| 国产免费黄色小视频| 欧美精品一区二区三区免费播放| 亚洲一区在线不卡| 99久久99精品| 最新av网址在线观看| 九色自拍视频在线观看| 亚洲精品中文字幕无码蜜桃| 在线免费观看视频黄| 在线无限看免费粉色视频| 肉大捧一出免费观看网站在线播放| 成人在线免费观看视频网站| 黄色片网址在线观看| 亚欧在线免费观看| 手机成人av在线| 久艹在线免费观看| 妞干网在线免费视频| 四虎成人在线播放| 国精产品一区一区三区视频| 黄色在线视频网| 亚洲天堂av免费在线观看| 999在线观看视频| 亚洲成人天堂网| 欧美交换配乱吟粗大25p| 欧美a在线视频| 中文字幕第22页| 水蜜桃色314在线观看| www.com操| 青草视频在线观看视频| 中文字幕乱码人妻综合二区三区| 五月天开心婷婷| 男人添女荫道口图片| 蜜臀av免费观看| 97免费视频观看| 手机视频在线观看| 亚洲 自拍 另类小说综合图区| 性chinese极品按摩| www插插插无码免费视频网站| 浓精h攵女乱爱av| 青青草国产免费| 欧美精品久久久久久久久25p| 2018国产在线| 日韩视频在线免费播放| 精品国产成人av在线免| 久久久久久久久网| 午夜激情av在线| aa在线观看视频| 色呦呦网站入口| 黑鬼大战白妞高潮喷白浆| 欧美在线观看视频免费| 日本特黄a级片| 2018日日夜夜| 国内精品国产三级国产aⅴ久| 北条麻妃视频在线| 日韩中字在线观看| 中文字幕在线视频一区二区| 美女黄色片视频| 国产精品专区在线| 亚洲精品天堂成人片av在线播放 | 久久久成人精品一区二区三区| 粉嫩虎白女毛片人体| 久久这里只有精品18| 久久久福利影院| 欧美精品无码一区二区三区| 国产av麻豆mag剧集| 视色,视色影院,视色影库,视色网| 中国黄色片免费看| 日韩欧美精品在线观看视频| 九九热只有这里有精品| 男人草女人视频| 永久av免费在线观看| 亚洲国产成人va在线观看麻豆| 欧美牲交a欧美牲交aⅴ免费真| www.日本在线视频| www.18av.com| 日韩欧美中文在线视频| 日本高清一区二区视频| 色播五月激情五月| 91国产精品视频在线观看| 黄色a级片免费| 国产日产欧美视频| 国模无码视频一区二区三区| 成年人网站国产| 国产精品免费看久久久无码| 无码人妻aⅴ一区二区三区日本| 91精产国品一二三产区别沈先生| 午夜国产一区二区三区| 日本www.色| 国产激情在线观看视频| 蜜臀av午夜一区二区三区| 999香蕉视频| 一本久道中文无码字幕av| 人妻丰满熟妇av无码区app| av观看免费在线| 激情婷婷综合网| 亚洲一二三区av| www.亚洲高清| 中文字幕 欧美日韩| 国产精品夜夜夜爽张柏芝| 女女百合国产免费网站| 成人午夜免费在线视频| 婷婷五月综合缴情在线视频| 国产精品999视频| 久久久999免费视频| av免费网站观看| 久久久久国产一区| 鲁一鲁一鲁一鲁一av| 天天久久综合网| 麻豆一区二区三区在线观看| www.成年人视频| 国产女女做受ⅹxx高潮| 亚洲一级片免费| 三级av免费看| 欧美成人精品免费| 国产女女做受ⅹxx高潮| 久久久国产欧美| 亚洲精品免费一区亚洲精品免费精品一区 | 91看片就是不一样| wwwwww.色| 亚洲天堂av一区二区| 男女裸体影院高潮| 91传媒久久久| 天堂一区在线观看| 国产911在线观看| 国产97在线 | 亚洲| 色婷婷一区二区三区av免费看| 国产精品久久成人免费观看| 青青草精品视频在线| 在线免费观看视频黄| 可以免费看的黄色网址| 国模无码视频一区二区三区| 日本黄大片一区二区三区| 黄色网络在线观看| 男女av免费观看| www.久久com| 奇米精品一区二区三区| 97超碰成人在线| aa视频在线播放| www.日本一区| 日韩免费在线观看av| 欧美精品第三页| 久久精品在线免费视频| 无码人妻丰满熟妇区毛片| 特黄特黄一级片| 99精品在线免费视频| 中文字幕第22页| 九九九九免费视频| 性欧美18一19内谢| 国产av无码专区亚洲精品| 粉嫩av一区二区三区天美传媒| 国产情侣av自拍| 大荫蒂性生交片| 三级av免费观看| 国产亚洲天堂网| 嫩草影院中文字幕| www,av在线| av无码精品一区二区三区|