Question

In: Computer Science

1. Consider the following scenario: The Colonel Motors Corporation of Frankfort, Kentucky has produced a new...

1. Consider the following scenario:

The Colonel Motors Corporation of Frankfort, Kentucky has produced a new line of vehicles which require chicken droppings for fuel. Because of this unusual fuel requirement, there are only certain fueling stations in the country where the vehicles can be refilled. Thus, to get from one place to another, an owner must plan a route that ensures that he can get refills along the way. The Colonel Motors Corporation has hired Professor Sanders of the Kentucky Institute of Technology as a consultant to prepare an online route-finding service. To use the computerized service, an owner will enter the driving range of his vehicle (the distance the vehicle can go on a single fill-up), the "distance to empty" (the distance the vehicle can go with the fuel that's now in the tank), his/her initial location (source), and his/her desired destination. The service will either respond with a shortest route from the source to the destination such that the owner never runs out of fuel, or it will deem that no such route exists. Model the professor's problem in terms of a weighted, directed graph in which streets are edges, intersections are vertices, and some intersections have fueling stations, and design an efficient algorithm to solve it. Assume that a driver's source and destination are also at intersections.

2. Choose an appropriate problem solving technique:

a. Select your favorite programming language such as C, C++, or Java. In that language, write, implement, and test an algorithm using the problem solving technique that you chose.

b. Analyze your implementation using either order notation analysis or empirical analysis.

c. You must prepare a separate page providing the instructions to compile and execute your program, such as the development environment (e.g., Visual Studio). If no such information is provided, and your program fails to build and run, points will be deducted, as appropriate.

TASK:

1. Java code

2. Discussion of your problem solving technique and why chosen

3. Algorithm (pseudocode, source, etc.)

4. Correctness

Solutions

Expert Solution


Related Solutions

1. Consider the following scenario: The Colonel Motors Corporation of Frankfort, Kentucky has produced a new...
1. Consider the following scenario: The Colonel Motors Corporation of Frankfort, Kentucky has produced a new line of vehicles which require chicken droppings for fuel. Because of this unusual fuel requirement, there are only certain fueling stations in the country where the vehicles can be refilled. Thus, to get from one place to another, an owner must plan a route that ensures that he can get refills along the way. The Colonel Motors Corporation has hired Professor Sanders of the...
Please provide the answer in Java 1. Consider the following scenario: The Colonel Motors Corporation of...
Please provide the answer in Java 1. Consider the following scenario: The Colonel Motors Corporation of Frankfort, Kentucky has produced a new line of vehicles which require chicken droppings for fuel. Because of this unusual fuel requirement, there are only certain fueling stations in the country where the vehicles can be refilled. Thus, to get from one place to another, an owner must plan a route that ensures that he can get refills along the way. The Colonel Motors Corporation...
Performance Motors has just launched a new model that is being produced at a rate of...
Performance Motors has just launched a new model that is being produced at a rate of 10,000 vehicles per month (and is flying off the dealers’ lots as fast as they arrive). You are one month into customer sales (10,000 units sold and delivered) and already there are some reports of a specific failure that impacts safety. NHTSA has opened a preliminary investigation, and your engineers are participating in the analysis. It is expected that the results will be known...
Consider the following scenarios: Scenario A: Pizza is produced in slightly higher quantities, with slightly lower...
Consider the following scenarios: Scenario A: Pizza is produced in slightly higher quantities, with slightly lower prices than in Scenario B. All pizza is of the same brand, served in similar types of restaurants, with no variation in quality. Scenario B: Pizza is produced in slightly less quantities, with slightly higher prices than in Scenario A. Consumers have more variety and choice, with many different types and styles of pizza made at different restaurants. a) For each Scenario, identify the...
General Motors Corporation has invested in a project which is expected to payback the following cash...
General Motors Corporation has invested in a project which is expected to payback the following cash flows over the next four years. What is the present value of these cashflow if the discount rate is 15%? Year Cashflow 1 $1256 2 $1100 3 $925 4 $730
Scenario: Soybeans are produced in many countries of the world, including Brazil. Consider the market for...
Scenario: Soybeans are produced in many countries of the world, including Brazil. Consider the market for soybeans in Brazil. Assume that the world price is below the domestic equilibrium price. a. In a graph, show how large the amount of imported soybeans is (no numerical answer required). Also, show the area on the graph that represents revenue that Brazil soybean farmers receive. b. Now let’s consider the effect of drought. On a new graph, show what happens to the total...
The Production Department of a Corporation has submitted the following forecast of units to be produced...
The Production Department of a Corporation has submitted the following forecast of units to be produced by quarter for the upcoming fiscal year: 1st Quarter 2nd Quarter 3rd Quarter 4th Quarter Units to be produced 10,400 9,400 11,400 12,400 Each unit requires 0.25 direct labor-hours and direct laborers are paid $12.00 per hour. In addition, the variable manufacturing overhead rate is $1.70 per direct labor-hour. The fixed manufacturing overhead is $84,000 per quarter. The only noncash element of manufacturing overhead...
The production department of Corporation has submitted the following forecast of units to be produced by...
The production department of Corporation has submitted the following forecast of units to be produced by quarter for the upcoming fiscal year: 1st Quarter 2nd Quarter 3rd Quarter 4th Quarter Units to be produced 9,000 12,000 11,000 10,000 In addition, 15,750 grams of raw materials inventory is on hand at the start of the 1st Quarter and the beginning accounts payable for the 1st Quarter is $5,600. Each unit requires 7 grams of raw material that costs $1.20 per gram....
Scenario: Rocky Mountain Corporation (RMC) has relocated to a new building that was previously wired and...
Scenario: Rocky Mountain Corporation (RMC) has relocated to a new building that was previously wired and set up for a local area network (LAN). The company implemented a 50-user client/server-based Wireless network, using WPA in which all printers, folders, and other resources are shared; everyone has access to everything and there is no security outside of the defaults that were in place when the system was set up. You have been hired to secure the RMC network and ensure that...
1. You are the CFO of Ford Motors Inc. The firm has decided to purchase new...
1. You are the CFO of Ford Motors Inc. The firm has decided to purchase new fixed assets that will allow them to more efficiently produce electric cars. To raise the funds needed to purchase these assets, you decide to issue bonds. You expect the new fixed assets to last about 11 years so you’d like to issue bonds with a maturity of 11 years and a face value of $1,000. To set the coupon payment, you ask Moody’s what...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT