Difference between revisions of "Area Calculation"

From CompSciWiki
Jump to: navigation, search
Line 1: Line 1:
 
{{Template:1010ExtraLabs
 
{{Template:1010ExtraLabs
 
|Chapter_TOC=[[Extra Labs]]
 
|Chapter_TOC=[[Extra Labs]]
|Introduction= This program calculate the area of a ceiling in a room.
+
|Introduction= It's time to replace the ceiling in your living room, but you are not sure how much  it will cost? The required materials cost $8 per square foot plus an installation fee of $500. Your roommate has agreed to pay half, and you have a coupon for $50 off the total cost. Write a program that accepts the length and width (as integers) of a room. Calculate the total cost (as a double) of ceiling  by multiplying the square footage by the price per square foot, plus installation. Your program will print total square footage, total cost, and your cost (half the total cost less the coupon)
 
|Body:  
 
|Body:  
==Program==
+
 
It's time to replace the ceiling in your living room, but you are not sure how much  it will cost? The required materials cost $8 per square foot plus an installation fee of $500. Your roommate has agreed to pay half, and you have a coupon for $50 off the total cost. Write a program that accepts the length and width (as integers) of a room. Calculate the total cost (as a double) of ceiling  by multiplying the square footage by the price per square foot, plus installation. Your program will print total square footage, total cost, and your cost (half the total cost less the coupon)
+
 
  
 
== Step 1: ==
 
== Step 1: ==

Revision as of 19:51, 3 April 2012

COMP 1010 Home > Back to Extra Labs

Introduction

It's time to replace the ceiling in your living room, but you are not sure how much it will cost? The required materials cost $8 per square foot plus an installation fee of $500. Your roommate has agreed to pay half, and you have a coupon for $50 off the total cost. Write a program that accepts the length and width (as integers) of a room. Calculate the total cost (as a double) of ceiling by multiplying the square footage by the price per square foot, plus installation. Your program will print total square footage, total cost, and your cost (half the total cost less the coupon)

Contents

{{{Body}}}

Bla in area.