Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise: In this assig,assignment,nment you will be expected to write your first C# console and desktop applications. These applications will allow the user to calculate

Exercise:
In this assig,assignment,nment you will be expected to write your first C# console and desktop applications. These applications will allow the user to calculate the total cost of flooring and
installation:
Part 1- Write a Console Application
Part 2- Write a WinForm Application The objectives of this lab.
Assignments are as follows:
Declare variables
Declare constants
Display variable values
Format floating point data
Use arithmetic operators
Accept console input
Convert from string input to numeric data
Assignment User Story
As a user I want an application that will allow me to calculate the total cost for the installation plus
the materials for a floor having specific length and width dimensions, and per sq. foot cost.
Assignment Requirements
In this application we are calculating the total cost for a new floor, which includes the cost of the materials plus the cost of labor for installing the new floor. This application will accept three inputs from the user: floor length, floor width, and flooring cost per square foot. The length and width variables will be integers, but the cost per sq. ft. will be a double so that we can capture the value as dollars and cents. The total flooring cost is a function of length X width X cost per sq. ft.
As part of the work, I would like you to define two constant variables (you will need to search for what a C# constant is): the first will be the installation cost per hour and the second will be the number of square feet that can be installed per hour. Both of these constants will be defined as double data-types, and the value for the installation cost per hour will be 35.75 while the number of feet that can be installed per hour will be 40.
In addition to the cost of the flooring materials, you will need to calculate the cost for the labor to install the floor. You know that 40 sq. ft. of flooring can be installed per hour. You will therefore need to calculate how many hours it will take, in total, to install the floor. Once you know the total hours you will then be able to calculate the total installation cost as total hours X installation cost per hour, which is 35.75.
By adding together the total flooring cost plus the total installation cost, you will derive the total cost for the new floor. And, you will display all the relevant information to the user through a mixture of string literals and numeric data/variables.
Technical/Grading Requirements
You must ensure that the application you submit meets all technical/grading requirements. Your grade will be based on how well your application follows the application requirements plus the following:
The application will display the programmer's name.
You will allow the user to enter the floor's length, width, and square foot cost for the flooring.
Length and width values will be entered by the user as integers.
The per square foot flooring cost will be entered by the user as a double data-type.
The cost per hour and number of square feet that can be installed per hour must both be defined as constants.
All money/cost values must be properly formatted as currency with the dollar sign $.
Example Outputs
Your outputs must look as shown below. However, you may replace Dr. I's name with your name.
Console application:
Your outputs must look as shown below. However, you may replace Dr. I's name with your name.
Console application:
Dr. I Flooring Cost Estimator
Please enter length of floor: 75
Please enter width of floor: 15
Please enter the cost per square foot for the flooring selected: 5.25
For a total floor size of 1125 the flooring cost is $5,906.25
It will take 28.13 hours to install the floor at a cost of $1,005.47
The total finished cost for the new floor is: $6,911.72
Desktop (WinForm) application:
Dr. I Flooring Cost Estimator
Length of floor: 75
Width of floor: 15
Cost per square foot: 5.25
Cost of total floor size of 1125 : $5,906.25
Number of hours to install the floor: 28.13 At a cost of $1,005.47
The total finished cost for the new floor is: $6,911.72

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2021 Workshops Biokdd Iwcfs Mlkgraphs Al Cares Protime Alsys 2021 Virtual Event September 27 30 2021 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Anna Fensel ,Jorge Martinez-Gil ,Lukas Fischer

1st Edition

3030871002, 978-3030871000

More Books

Students also viewed these Databases questions