Programming Homework

Hello, how are you!!

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Before you begin, please please please read therequirements file before you begin. Take them into consideration!!!

I have anexperience that many missing parts existed when I got the assignment from thetutor!! So, please, read the assignment carefully(the red lines ) and do not finish the homework without complete it as my professor wants!!! if something is missing!! my grade in this assignment will be ZERO immediately.

So, please, stick with the requirements( read them to know what to do and what you need to be aware of ) + read the assignment with the ( extra Credits part). Do not do the assignment without doing the extra part.

Before you begin, and if you have questions , let me know.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Thanks

CS 313 01
Program Assignment 04
Chapter 09
20 Points
Name ___________________________________
Due:
Wednesday, March 21, 2018
The Westfield Carpet Company has asked you to write an application that calculates the price of
carpeting. To calculate the price of carpeting, you multiply the area of the floor (width X length) by the
price per square foot of carpet. For example, the area of a floor that is 12 feet long and 10 feet wide is
120 feet. To cover that floor with carpet that costs $8 per square foot would cost $960.
You should create a class named Rectangle with the following properties:
Width:
A single
Length:
A single
Area:
A single
The Area property should be read-only. Provide a method named CalcArea that calculates width X
length and stores the result in the Area property.
Next, create a class named Carpet with the following properties:
Color:
A string
Style:
A string
Price:
A decimal
The application should have a form similar to the following. (The carpet price is the price per square
foot.) When the Calculate button is clicked, the application should copy the data in the text boxes into
the appropriate object properties, and then display the area and price.
Add the following comments to the beginning of the program.
Name:
Your Name
Class and Section:
CS 313 01
Assignment:
Program Assignment 04
Due Date:
See above
Date Turned in:
Program Description: You write a short description of what the program will do
When you complete the program, do the following.
1. Turn in a printout of the source code from Visual Studio with this sheet attached to the front
2. Create a folder with the following name: Program 04
3. Copy your project to this folder
4. Copy the folder to the following location: I:\kopp\inbox\CS 313 01\your name where your
name is a folder located in I:\kopp\inbox\CS 313 01.
Extra Credit 5 points:
Create another form that contains the company’s information. You make up the address and phone
number. Load this form at startup. Include a button that allows the user to close this form and load the
other form in order to start the program.
CS Classes
Requirements for Programming Assignments
Comments
The following comments are required on all programming assignments
Name: Insert your name here
Class and Section: Insert your class and section here
Due Date: Insert the due date (shown at the top of the assignment sheet)
Date Submitted: Insert the date you turn in your program
Description: a short description of what the program will do
Descriptive Identifiers
All identifiers (ex. Variable names, constants, method and function names, class names) must be
descriptive. Names such as s1, label3, button4 are not acceptable.
Unnecessary Code Headings
In Visual programming classes (Visual Basic and Visual C#), avoid double-clicking on controls that
will not contain code. This leaves event handler headings with no code.
Code not discussed in class
Do not include code in your programs that has not been discussed in class. You need to learn
to write code from what you have been given. If you add code not covered in class, I don’t
know if you already knew that code or if you copied it off a Google site. Any programs
submitted with this type of coding will be drastically reduced in grade.
Correctly copy to Instructor Drive
This can be accomplished by following these steps:
Create a folder on your device (Z:, desktop or flash drive)
Copy your program, including all appropriate files to this folder. For C# students, copy
the entire program folder.
Copy this folder to the folder with your name that is located on the l: drive. Go to
kopp\inbox, find your class folder and then your name folder. Paste the folder from
your device into this folder.
Print from the IDE
In C#, print from Visual Studio (no screen shots or copying it to Notepad++ or other editor)
In Python, print from IDLE.

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER