Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Data Structure Expert

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

Step 1: Examine the following algorithm as a base for how the program should flow. (Reference: Designing a Program, page 31).

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

Step 2: Think of good variable names for the following pieces of data that will need to be stored with in this program.

Purpose of Variable

Variable Name

Stores the cost of fiber

fiberCost

Stores the company name

 

Stores the number of feet to be installed

 

Stores the calculated cost of installed fiber

 

Step 3: Complete the following pseudocode based on the algorithm and the variables you declared above.

Display "Welcome to the Fiber Optic Calculator Program"
Set fiberCost = ?
Display "What is the company name?"
Input ?
Display "How many feet of fiber will be installed?"
Input ?
Set ?
Display "For the company", ? ,"the total cost will be $",?

Now, think about the steps that take place in the above program of calculating the cost of installing fiber optic by designing a flowchart. While designing flowcharts can be done with paper and pencil, one mistake often requires a lot of erasing. Therefore, a flowcharting application such as Raptor or Visio should be used.

Step 4: Launch Raptor or Visio and convert your pseudocode from Lab 2-1 into a flowchart. Depending on what application you are using, select either lab2-2raptor.rap or lab2-2visio.vsd from the Lab 2 folder on the accompanying Lab Demo Media and Startup Files CD to get started. Once you double click on them to open, do a Save As to save it to your workspace. Watch the demo video 2-2 for instructions on how to input, calculate, and output using both applications.

Step 5: The final step is to insert your finished flowchart into a Word document. Inside Raptor, select File and then Print to Clipboard from the menu. If you are using Visio, select Edit, then Select All, then Edit and Copy. In your Word document, select Edit and Paste.

Data Structure, Computer Science

  • Category:- Data Structure
  • Reference No.:- M91371607
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in Data Structure

Problem regarding the management program

Problem: Looks like its just adding a save and load feature to the same file you sent me for python 3.5 Until now, you have had to leave your team management program running on your computer indefinitely since you did no ...

Data Communication Delivering Information anywhere

Topic: Data Communication Delivering Information anywhere. Write a 9-12 pages paper in which you: Present an overview of the origin and history of the concept. Describe the current use of and attitude toward the concept. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As