亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美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

    亚洲免费av高清| 国产精品扒开腿做爽爽爽视频软件| 久久99精品久久只有精品| 欧美高清视频一二三区| 麻豆福利视频| 牛牛在线精品视频| 日本成人中文| 99久久精品一区| 国产美女被遭强高潮免费网站| 在线精品福利| 人成福利视频在线观看| 日韩久久精品网| 污视频网站在线| 美女网站一区| 2222www色视频在线观看| 国产精品福利在线播放| 影音先锋久久资源网| av综合网址| 天堂va在线| 日本高清好狼色视频| 国产aⅴ综合色| 欧美成人app| av激情综合网| а√天堂资源国产精品| 国产伦理精品| 欧洲亚洲视频| 污污的网站在线观看| 黄页免费在线观看| 手机福利视频欧美| 欧美13一16娇小xxxx| 久久超碰97中文字幕| 国产精品系列在线播放| 一区二区三区四区高清视频| 亚洲在线观看| 欧美极品视频| 日韩美女在线看免费观看| 欧美激情极品| 亚洲伦乱视频| 国产欧美精品久久| 亚洲乱码久久| 国产毛片久久| 亚洲视频一区二区在线| 亚洲成人毛片| 欧美一区二区三区性视频| 视频一区在线播放| 日韩欧美精品一区二区三区| 欧美日韩在线播| 亚洲网址在线| 日本精品在线播放| 国产精品区一区二区三| 精品视频一区二区三区在线观看| 欧美色视频日本版| 国产高清久久| 成人在线免费观看91| 欧美三级网页| 国内老司机av在线| 在线观看视频色潮| 粉嫩一区二区三区| www久久精品| 亚洲欧洲精品天堂一级| 性做久久久久久久久| 日韩一区二区三区在线| 亚洲精品视频自拍| 日本成人在线电影网| 国产99在线| 久久免费精品视频在这里| 直接在线观看的三级网址| 天堂√中文最新版在线| 国产精品www994| 国产剧情在线观看一区| 日本xxxxwwww| 国产欧美日韩视频在线观看| 精品一区二区三区中文字幕老牛 | 一区二区三区在线免费| 精品一区二区影视| 国产精品白浆| 91看片一区| 蜜桃久久久久久| 久久99久久久欧美国产| 免费黄网站在线| 国产99一区视频免费| av影片免费在线观看| 欧美电影免费看| 电影中文字幕一区二区| gay网站在线| 综合激情成人伊人| 欧美日本韩国一区二区| h精品动漫在线观看| 一本色道久久综合狠狠躁的番外| 综合在线一区| 青春草在线视频| 日韩精品一区二区三区中文| 日韩欧美一区二区三区在线视频 | 亚洲综合资源| 久久―日本道色综合久久| 国产精品欧美极品| 成人午夜影院| 国产亚洲电影| 午夜精品久久久久久久久久久| 久久激情五月婷婷| a黄色片在线观看| 中文字幕亚洲精品乱码 | 免费观看亚洲视频大全| 欧美视频一区二| 欧美日韩精品一区二区视频| 成人在线中文| 国内激情视频在线观看| 久久99久久99小草精品免视看| 欧美日韩久久久| 欧美精品久久天天躁| 欧美日韩国产丝袜另类| 国产日韩欧美不卡| 日本视频在线免费观看| 久久精品观看| 无码一区二区三区视频| 精品一区二区三区香蕉蜜桃| 欧美日韩高清影院| 日韩在线精品强乱中文字幕| 欧美亚洲国产bt| 26uuu久久天堂性欧美| 色视频欧美一区二区三区| 亚洲男人都懂的网站| 国产精品一二三四五| 伊人久久综合网另类网站| 免费在线播放av| 超级碰碰久久| 精品一区二区久久久| 成人免费在线| 四季av一区二区三区免费观看| 浪潮av在线| 美女在线一区二区| a级大胆欧美人体大胆666| 91精品久久| 久久久久免费观看| 国产日韩另类视频一区| 欧美日韩卡一卡二| 亚洲福利专区| 污视频网站免费| 亚洲网站啪啪| 国产综合视频一区二区三区免费| 久久美女视频| 狂野欧美性猛交xxxxx视频| 国产米奇在线777精品观看| 国产性天天综合网| 99热在线免费观看| 久久精品66| 91精品一区二区三区综合在线爱| 欧美日韩亚洲天堂| 亚洲韩日在线| 中文日产幕无线码一区二区| 欧美日韩午夜剧场| 国产日韩精品一区| 新版的欧美在线视频| 亚洲乱码国产乱码精品精可以看 | 三上悠亚国产精品一区二区三区| 国产精品久久久久婷婷二区次| 精品三级在线| 欧美性xxxxx极品| 欧美精品羞羞答答| 精产国产伦理一二三区| 老司机午夜免费精品视频| 国产亚洲依依| 91浏览器在线视频| 精品女同一区二区三区在线观看| 一本到不卡免费一区二区| 国产精品二线| 91偷拍与自偷拍精品| 蜜桃视频网站www| 日本在线不卡一区| 伊人在我在线看导航| 日韩一区在线看| 成人香蕉社区| 日美av在线| 久久丁香综合五月国产三级网站| 91国内在线| 一个色在线综合| 日韩欧美国产精品综合嫩v| 三级ai视频| 91一区一区三区| 免费看日产一区二区三区| 欧美日韩一级二级| 亚洲制服少妇| 国产乱码午夜在线视频| 欧美日韩精品在线播放| 欧美成人tv| 在线观看a级片| 欧美日韩精品在线视频| 亚洲美女毛片| 国产精品一区二区日韩| 欧美制服丝袜第一页| 石原莉奈一区二区三区在线观看| 欧美videossex| 在线日韩av片| 99国产精品免费网站| 高清成人av| 成人aaaa免费全部观看| 波多野结衣欧美| 中文字幕在线一二| 亚洲人成精品久久久久久| 欧美日本免费|