Ask Experts Questions for FREE Help !
Ask
    sppanday's Avatar
    sppanday Posts: 3, Reputation: 1
    New Member
     
    #1

    Sep 20, 2013, 08:46 PM
    Please fix this java question with code
    Please fix this coding with Java Programming.
    Vehicle Make.. Model.. Noise Factor... InterstatePermitscurrent... Parking Fines

    Holden... Colorado... 2.. . 0
    Chrysler... Aspen... 3.. . 0
    Toyota... Lite Ace... 4.. . 0
    Ford... F350... 5... ….. . 0
    Dodge... Sprinter... 6.. . 2
    Hino... Ranger-Pro 9... 7.. . yes
    Ford... LCF... 8.. . Yes
    WesternStar.. 4900FXT... 10.. . Yes
    Mack... Metro Liner... 11... Yes.. .
    DAF... CF... 11... …... YES
    Kenworth... T359... 12.. . No
    Isuzu... Giga CXY... 12.. . No

    Question :If the above vehicles were held in an ArrayList, how would you sort the list according to
    Make?
    a. To answer this question write the code to put them into an ArrayList and then sort it
    By make.
    b. Print each vehicle in the sorted ArrayList by make to the console.
    Note:
    Name the class: SortingArrayLists.java
    sppanday's Avatar
    sppanday Posts: 3, Reputation: 1
    New Member
     
    #2

    Sep 20, 2013, 08:49 PM
    please write java code to solve this problem
    Please fix this coding with Java Programming.
    Vehicle Make.. Model.. Noise Factor... InterstatePermitscurrent... Parking Fines
    Holden... Colorado... 2.. . 0
    Chrysler... Aspen... 3.. . 0
    Toyota... Lite Ace... 4.. . 0
    Ford... F350... 5... ….. . 0
    Dodge... Sprinter... 6.. . 2
    Hino... Ranger-Pro 9... 7.. . yes
    Ford... LCF... 8.. . Yes
    WesternStar.. 4900FXT... 10.. . Yes
    Mack... Metro Liner... 11... Yes.. .
    DAF... CF... 11... …... YES
    Kenworth... T359... 12.. . No
    Isuzu... Giga CXY... 12.. . No

    Question
    A trucking company prepares all its vehicles in the evening ready for departure from its depot
    first thing the next morning (i.e. 6:00 am). Vehicles range from long haulage to local delivery
    and rep vehicles.
    Now, the exit road from the depot goes through a residential suburb. The company is very
    community minded and wants to keep noise down to a minimum at such an early hour. So, a
    cap (or limit) has been put on the amount of noise the fleet of vehicles can generate at any one
    time as they leave the premises in the morning. The maximum noise level or factor is 24.
    Information is provided below for the fleet of 12 vehicles. Each vehicle has a make, model
    and a numeric noise factor.
    Your job is to stagger the departure times of this fleet of vehicles, having them leave in
    groups of three where possible, starting at 6:00 am. They should leave at 10 minute intervals
    and the last group should leave by 6:30 am.
    What you are asked to produce:
    A program that will calculate departure groups and produce a report detailing the following
    for each departure group –
    • A listing of all vehicles by noise factor
    contained in this listing should also be the make and model of each vehicle,
    and any other information relevant to that vehicle
    • A list of each departure group and the time it leaves the depot
    include the total noise factor for the group
    Your application should include the following:
    • Appropriate object-oriented design of classes

    • Inheritance, including overloaded constructors, calls to the super class’s constructor,
    overriding methods and use of the super class’s existing methods.
    You’ll notice that the vehicles could fall into two sub-categories
    • An array to hold the vehicle-
    Do not use an ArrayList for this question
    • A method that sorts the array according to vehicle noise factor
    • A method that decides vehicle groupings according to noise factor
    -You must not manually force vehicles into groupings

    *A hint: once the numbers are sorted in ascending order write this down and
    you’ll soon see how to get three whose total is still <= 24
    • Maximum group size is three vehicles
    • The report should be formatted to look like a report
    sppanday's Avatar
    sppanday Posts: 3, Reputation: 1
    New Member
     
    #3

    Sep 20, 2013, 08:50 PM
    java programming
    Please fix this coding with Java Programming.
    Vehicle Make.. Model.. Noise Factor... InterstatePermitscurrent... Parking Fines
    Holden... Colorado... 2.. . 0
    Chrysler... Aspen... 3.. . 0
    Toyota... Lite Ace... 4.. . 0
    Ford... F350... 5... ….. . 0
    Dodge... Sprinter... 6.. . 2
    Hino... Ranger-Pro 9... 7.. . yes
    Ford... LCF... 8.. . Yes
    WesternStar.. 4900FXT... 10.. . Yes
    Mack... Metro Liner... 11... Yes.. .
    DAF... CF... 11... …... YES
    Kenworth... T359... 12.. . No
    Isuzu... Giga CXY... 12.. . No

    Question
    A trucking company prepares all its vehicles in the evening ready for departure from its depot
    first thing the next morning (i.e. 6:00 am). Vehicles range from long haulage to local delivery
    and rep vehicles.
    Now, the exit road from the depot goes through a residential suburb. The company is very
    community minded and wants to keep noise down to a minimum at such an early hour. So, a
    cap (or limit) has been put on the amount of noise the fleet of vehicles can generate at any one
    time as they leave the premises in the morning. The maximum noise level or factor is 24.
    Information is provided below for the fleet of 12 vehicles. Each vehicle has a make, model
    and a numeric noise factor.
    Your job is to stagger the departure times of this fleet of vehicles, having them leave in
    groups of three where possible, starting at 6:00 am. They should leave at 10 minute intervals
    and the last group should leave by 6:30 am.
    What you are asked to produce:
    A program that will calculate departure groups and produce a report detailing the following
    for each departure group –
    • A listing of all vehicles by noise factor
    contained in this listing should also be the make and model of each vehicle,
    and any other information relevant to that vehicle
    • A list of each departure group and the time it leaves the depot
    include the total noise factor for the group
    Your application should include the following:
    • Appropriate object-oriented design of classes

    • Inheritance, including overloaded constructors, calls to the super class’s constructor,
    overriding methods and use of the super class’s existing methods.
    You’ll notice that the vehicles could fall into two sub-categories
    • An array to hold the vehicle-
    Do not use an ArrayList for this question
    • A method that sorts the array according to vehicle noise factor
    • A method that decides vehicle groupings according to noise factor
    -You must not manually force vehicles into groupings

    *A hint: once the numbers are sorted in ascending order write this down and
    you’ll soon see how to get three whose total is still <= 24
    • Maximum group size is three vehicles
    • The report should be formatted to look like a report

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Can somebody help me with Java code? [ 1 Answers ]

A method called dropItems() taking a Robot and an integer. The robot should (try to) drop that number of items. My version doesn't work unfortunately. Here is it: int dropBeepers(String input, int createRobot, int count) { count =0; ...

I want the java code please [ 2 Answers ]

Write a program that ask from the user how many integers you want to read then reads the set of integers from user, and then finds and prints the sum of even valued and odd valued integers . And also count how many even was entered by user and how many odd were entered by user.

Java code [ 2 Answers ]

Please give me a simple java code for addition of two numbers here two numbers are accepted From users please give me explanation about each code

Java code [ 2 Answers ]

Please give me a java program for additon of two numbers here nos are accepted from users here I am not confident about java program so please gieve me java code I only understand a hello program so please help me

Java code [ 1 Answers ]

What is difference between argument and parameter element as use in calling routines/coding a method? Can one use them interchangeably for talking/writing purposes?


View more questions Search