For this task, you are to create a neat table of values that is outputted to the screen. The table is going to represent the cost of flooring materials. This flooring is available in different width and length values. It is available in 8 different widths (1 foot through 8 feet) and 12 different lengths (1 foot through 12 feet). The cost per square foot will be stored as a constant at the top and should be specified by the user at startup. ( this cost will usually be between 1 and 2 dollars per square foot ) – use different test values to attempt to get a nice looking table. Use one set of nested for loops to get this to work. Make sure you have row and column labels and headers. You may use a separate to loop print headers if you need two, but there should not be one loop per row. Note: final costs should not be shown with more or less than 2 decimal places. Should have 8 rows and 12 columns of costs.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

For this task, you are to create a neat table of values that is outputted to the screen. The table is going to represent the cost of flooring materials. This flooring is available in different width and length values. It is available in 8 different widths (1 foot through 8 feet) and 12 different lengths (1 foot through 12 feet). The cost per square foot will be stored as a constant at the top and should be specified by the user at startup. ( this cost will usually be between 1 and 2 dollars per square foot ) – use different test values to attempt to get a nice looking table. Use one set of nested for loops to get this to work. Make sure you have row and column labels and headers. You may use a separate to loop print headers if you need two, but there should not be one loop per row. Note: final costs should not be shown with more or less than 2 decimal places. Should have 8 rows and 12 columns of costs.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning