Question

In: Computer Science

Write a program that will calculate the cost of installing fiber optic cable at a cost...

Write a program that will calculate the cost of installing fiber optic cable at a cost of .87 per ft for a company. Your program should display the company name and the total cost.

  1. Display a welcome message for your program.
  2. Get the company name from the user
  3. Get the number of feet of fiber optic to be installed from the user
  4. Multiply the total cost as the number of feet times .87.
  5. Display the calculated information and company name.

Solutions

Expert Solution

public class FiberCost {
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       // reading the name of the company
       System.out.println("Enter name of the company");
       String name = sc.next();
       // putting price in constant
       final double PRICE = 0.87;
       //reading required cable
       System.out.println("Enter required fiber optics in feets");
       double feet = sc.nextDouble();
       //finding the total by multiplying the price with total
       double total = feet * PRICE;
       System.out.println("Company : " + name);
       System.out.println("Total Price : " + total);
       sc.close();
   }
}


Related Solutions

5. You are preparing a project to lay fiber optic cable. The first task is to...
5. You are preparing a project to lay fiber optic cable. The first task is to mobilize the team. You estimate this will take one week and cost $4000. The second task is to lay the cable. This will take three weeks and will cost $30,000. The total length of the cable is 15 miles. The last task, which will take one week, is to terminate and test the cable. You budget $6000 for this. At the end of the...
Why, a fiber optic cable cannot be called as a transmission line? Also clarify what are...
Why, a fiber optic cable cannot be called as a transmission line? Also clarify what are the primary conditions required for a transmission line. (b)Why a structured cabling system is required? Describe the structure in a proper flow with a neat diagram.
Write a short research paper to give a summary of different fiber optic technologies used for...
Write a short research paper to give a summary of different fiber optic technologies used for client layers.
Fresno Fiber Optics, Inc. manufactures fiber optic cables for the computer and telecommunications industries. At the...
Fresno Fiber Optics, Inc. manufactures fiber optic cables for the computer and telecommunications industries. At the request of the company vice president of marketing, the cost management staff has recently completed a customer-profitability study. The following activity-based costing information was the basis for the analysis. Chapter 5 Activity-Based Costing and Management 225hiL6956X_ch05_168-229.indd 225 06/17/16 08:10 PMRequired: 1. Prepare a customer profitability analysis for Trace Telecom and Caltex Computer. (Hint: Refer to Exhibit 5–13 for guidance.) 2. Build a spreadsheet: Construct...
Fresno Fiber Optics, Inc. manufactures fiber optic cables for the computer and telecommunication industries. At the...
Fresno Fiber Optics, Inc. manufactures fiber optic cables for the computer and telecommunication industries. At the request of the company VP of marketing, the cost management staff has recently completed a customer- profitability study. The following activity-based costing information was the basis for the analysis. Customer - Related Activities Cost Driver Base Cost Driver Rate Sales activity Sales visits $860 Billing and Collection Invoices 160 Order taking Purchase orders 220 Special shipping Shipments 430 Customer - Related Activities Trace Telecom...
Write a short research paper to compare fiber optics versus copper or cable alternatives.
Write a short research paper to compare fiber optics versus copper or cable alternatives.
Calculate the total foot board measure and calculate the total cost for furnishing and installing the...
Calculate the total foot board measure and calculate the total cost for furnishing and installing the following pieces of dimensional lumber: a. 270 – 2 x 4 – 8’0” 550 – 2 x 6 – 16’0” 1,820 – 2 x 4 – 12’0” 500 – 2 x12 – 16’0” b. Productivity Rate: Lumber - 15 crew-hrs/MBFM c. Crew’s Wage Rate: $26.75/wk-hr d. Material Costs: Lumber - $550/MBFM TOTAL BOARD REQUIRED BFM -? TOTAL MATERIAL COST $ LS - ? CREW...
Revised Problem 5-65 Fresno Fiber Optics, Inc. manufactures fiber optic cables for the computer and telecommunications...
Revised Problem 5-65 Fresno Fiber Optics, Inc. manufactures fiber optic cables for the computer and telecommunications industries. At the request of the company VP of marketing, the cost management staff has recently completed a customer profitability study. The following activity-based costing information was the basis for the analysis. Customer - Related Activities Cost Driver Base Cost Driver Rate Sales activity Sales visits $        860 Billing and Collection Invoices 160 Order taking Purchase orders 220 Special shipping Shipments 430 Customer -...
Write a program that will calculate and display the cost of a gasoline purchase based on...
Write a program that will calculate and display the cost of a gasoline purchase based on the brand of gasoline, the octane rating and the amount purchased. Your program should first display a menu prompting the user for the brand of gasoline.  Next prompt the user for the amount of gasoline in liters. Finally, your program should calculate and display the cost of the gasoline purchase using the formula below. Cost of Discount Gasoline = ($2.49 - (100 - Octane Rating)...
You will be writing a program to calculate the cost of an online movie order. Write...
You will be writing a program to calculate the cost of an online movie order. Write a program that calculates and prints the cost of viewing something through the CNR Cable Company’s on demand. The company offers three levels of viewing: TV, Movies that are New Releases and Movies (not considered new releases). Its rates vary depending on what is to be viewed. The rates are computed as follows: TV: Free New Releases: 6.99 Movies (not new releases): The cost...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT