狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

代做ICS4U、代寫(xiě) java 程序語(yǔ)言

時(shí)間:2024-04-14  來(lái)源:  作者: 我要糾錯(cuò)



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:
請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

















 

標(biāo)簽:

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:CSI 2120代做、代寫(xiě)Python/Java設(shè)計(jì)編程
  • 下一篇:COMP 2049 代做代寫(xiě) c++,java 編程
  • 無(wú)相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲(chóng)
    油炸竹蟲(chóng)
    酸筍煮魚(yú)(雞)
    酸筍煮魚(yú)(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚(yú)
    香茅草烤魚(yú)
    檸檬烤魚(yú)
    檸檬烤魚(yú)
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗(yàn)證碼平臺(tái) 幣安官網(wǎng)下載 歐冠直播 WPS下載

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    少妇高潮毛片色欲ava片| www.男人天堂网| 国产美女三级视频| 日韩亚洲欧美一区二区| 国产麻豆电影在线观看| 亚洲国产精品影视| 不卡中文字幕在线观看| 亚洲天堂av一区二区三区| 一区二区三区视频在线观看免费| 男人操女人免费软件| 欧美三级午夜理伦三级| 成人免费观看毛片| 蜜臀av免费观看| 久热在线视频观看| 波多野结衣三级在线| 成人毛片100部免费看| 中文精品无码中文字幕无码专区| 隔壁人妻偷人bd中字| 国产色一区二区三区| av动漫在线看| 黄色三级视频片| 污免费在线观看| 亚洲 欧美 综合 另类 中字| www国产精品内射老熟女| 国产免费视频传媒| 国产欧美精品一二三| 97视频在线免费| 超碰网在线观看| 亚洲综合伊人久久| 久激情内射婷内射蜜桃| 91插插插插插插插插| 男人c女人视频| 91热这里只有精品| 色哟哟免费网站| 中文字幕第36页| 日韩一级片免费视频| 牛夜精品久久久久久久| 韩国无码av片在线观看网站| 精品视频一区二区在线| 日韩视频在线免费播放| 黄色动漫在线免费看| 成年人黄色在线观看| 乌克兰美女av| 干日本少妇首页| 欧美一级免费播放| 好吊色这里只有精品| 天堂av2020| 国产视频1区2区3区| 欧美牲交a欧美牲交aⅴ免费真| 米仓穗香在线观看| 日韩成人av免费| www.天天射.com| 国产v亚洲v天堂无码久久久| 欧美精品一区二区三区三州| 日本精品免费视频| 欧美性视频在线播放| 色www免费视频| 老司机午夜性大片| 国产免费又粗又猛又爽| 日韩五码在线观看| 国产成人免费高清视频| 欧美精品成人网| 婷婷五月综合缴情在线视频| 一级做a爱视频| 成人av一级片| 欧美一区二区激情| 成年人在线看片| 国产午夜福利100集发布| 午夜福利123| 在线观看国产一级片| 成人在线免费观看av| 成人免费在线网| 成年在线观看视频| 国产在线视频在线| 久久观看最新视频| 91免费视频黄| 五月天av影院| 国产免费xxx| 桥本有菜av在线| 香蕉精品视频在线| 国产第一页视频| 四季av一区二区三区| 欧美自拍小视频| 手机在线看福利| 少妇一级淫免费放| 色噜噜狠狠一区二区| 在线免费观看av的网站| 午夜激情在线观看视频| 日韩欧美不卡在线| 国产精品视频黄色| 一本一道久久a久久综合蜜桃| 国产天堂在线播放| 看欧美ab黄色大片视频免费| 99视频在线免费| 中文字幕成人在线视频| 久久婷婷综合色| 国产成人黄色网址| 亚洲理论电影在线观看| 国产h视频在线播放| 国产欧美高清在线| 在线观看岛国av| 蜜臀在线免费观看| 好吊妞无缓冲视频观看| 91香蕉视频污版| 国产日韩亚洲欧美在线| 欧美私人情侣网站| 不卡的在线视频| 国产小视频免费| 免费av网址在线| 夜夜爽久久精品91| 国产视频九色蝌蚪| 一区二区三区 欧美| 黄色录像特级片| 人妻无码视频一区二区三区| 精品久久免费观看| 国产白丝袜美女久久久久| 国产性生交xxxxx免费| 裸体大乳女做爰69| 中国一级黄色录像| 在线观看岛国av| 无码人妻丰满熟妇区96| 加勒比av中文字幕| 春日野结衣av| 强伦女教师2:伦理在线观看| 免费在线观看日韩视频| 男人草女人视频| 久久久久久久久久一区| 337p粉嫩大胆噜噜噜鲁| 欧美 日韩 国产精品| 日b视频免费观看| 亚洲一级片免费观看| 日本一本二本在线观看| 免费一级淫片aaa片毛片a级| 中国黄色片免费看| 日韩av资源在线| 成人日韩在线视频| 看看黄色一级片| 波多野结衣xxxx| 黄色av网址在线播放| 国产精品久久..4399| av电影一区二区三区| xxww在线观看| 一本二本三本亚洲码| 尤物国产在线观看| 天天色综合天天色| 国产精品乱码久久久久| 日韩人妻精品无码一区二区三区| 中文字幕第50页| 91热这里只有精品| 伊人五月天婷婷| 久久久久久久久久一区| 亚洲精品www.| 亚洲黄色av片| 亚洲天堂网2018| 少妇性l交大片| 在线免费黄色网| 中文字幕综合在线观看| 亚洲欧美天堂在线| 成人在线观看www| 欧美交换配乱吟粗大25p| 亚洲精品乱码久久久久久动漫| 伊人再见免费在线观看高清版 | 男女啪啪免费观看| 黄黄视频在线观看| 日本一区午夜艳熟免费| 国产精品自拍合集| 99久久国产综合精品五月天喷水| 欧美一级特黄aaa| 免费国产成人看片在线| 成年在线观看视频| 日本十八禁视频无遮挡| 国产成人久久777777| 国产三级三级看三级| 亚洲小视频在线播放| 日韩a在线播放| 国产一级免费大片| 日韩欧美一区二| 日本超碰在线观看| www插插插无码免费视频网站| 午夜视频在线网站| 国产aaa一级片| 香蕉视频免费版| 日韩中文字幕免费在线| 欧美国产在线一区| 不卡影院一区二区| 岛国毛片在线播放| www.色偷偷.com| 日韩精品综合在线| 日韩精品视频一二三| bt天堂新版中文在线地址| 天天爱天天操天天干| 91精品999| 一级片视频免费观看| 亚洲熟妇无码一区二区三区| 黄色手机在线视频| www.com毛片| 国产aaa免费视频| 欧美a级免费视频| 在线观看国产一级片| 久久久999视频|