Calculate the cost of installing fiber optic cable

Assignment Help Data Structure & Algorithms
Reference no: EM13801600

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.

Reference no: EM13801600

Questions Cloud

What is the inflation rate : Suppose that the nominal rate is 26%, and real interest rate is 5%. What is the inflation rate?
Community has the more unequal distribution of income : 3-Consider two communities. In Winchester two families earn $20,000 each, six families earn $50,000 each, and two earn $60,000 each. In Media four families earn $30,000 each, two earn $40,000 each and four earn $70,000. Which community has the more u..
Aggregate supply and aggregate demand : Put aggregate supply (AS) and aggregate demand (AD) together to get to equilibrium output (GDP) and price level (CPI). Calculate and graph what happens to government (G), AD, GDP, and Prices if the government increases government spending by 100 bill..
Clifford main argument : Read W.K. Clifford's "Ethics of Belief" and write an analysis paper addressing the following issues: What is Clifford's main argument?
Calculate the cost of installing fiber optic cable : 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
Clifford main argument : Read W.K. Clifford's "Ethics of Belief" and write an analysis paper addressing the following issues: What is Clifford's main argument?
Critiquing internet sources : Today, the Internet provides an unprecedented amount of information by way of blogs, videos, and podcasts. Conduct a critique of one blog, one video, and one podcast, which provide information that addresses the topic of your Final Research Paper.
Problems of using the chi-square tests : What are some examples of variables that you might want to check using the chi-square tests?
Outline the history of measuring performance : 1. Outline the history of measuring performance in public sector.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  How many students need to be entered

Write a program that would allow a user to enter student names and Final grades (e.g. A,B,C,D,F) from their courses. You do not know how many students need to be entered

  Find smallest element and its index

Write a C++ program that inputs 10 integers into an array and displays the inputs, the smallest element and its index

  Write operations for binary file operations

C++: templates, char arrays and their null terminated representation, sizeof operator, seekp, seekg, read and write operations for binary file operations, eof() function, proper opening and closing of files with different arguments, code to proces..

  Write essay on djkistrars algorithm

Write Essay on Djkistrars Algorithm

  Question about damaged database

Suppose if you were one of the users of a damaged database, discuss how would you be affected by such a failure and what measures could you take to prevent it?

  How the steps are performed by this algorithm

Consider the following algorithm (known as Horner's rule) to evaluate f(x) = summation from i=0 to N of aix^i.

  Question about isdn

Today ISDN cost $40 every month for BRI service which includes 1 D Channel and 2 B Channels. Every channel is capable of transmitting 64kbps of voice, data, video or fax for a total of 128 kbps.

  Q1 compare the average behavior of insertion sort for n

q1 compare the average behavior of insertion sort for n elements with that of the n insertions into an initially-empty

  Compare and contrast link-state and distance-vector routing

Examine the corresponding ping reply packet. What are the ICMP type and code numbers? What other fields does this ICMP packet have?

  Write efficient backtracking algorithm to inputs integers

Write efficient backtracking algorithm which inputs the integer N, and outputs all of the ways which a group of ascending positive numbers can be summed to N.

  The customer takes either a shopping cart or basket and

the business process you can use the business process provided in the following section but it may be more interesting

  In this programming assignment you will implement an open

in this programming assignment you will implement an open hash table and compare the performance of four hash functions

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd