Answered step by step
Verified Expert Solution
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 Write a Console Application
Part 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 datatypes, and the value for the installation cost per hour will be while the number of feet that can be installed per hour will be
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 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
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 datavariables
TechnicalGrading Requirements
You must ensure that the application you submit meets all technicalgrading 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 datatype.
The cost per hour and number of square feet that can be installed per hour must both be defined as constants.
All moneycost 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 Is name with your name.
Console application:
Your outputs must look as shown below. However, you may replace Dr Is name with your name.
Console application:
Dr I Flooring Cost Estimator
Please enter length of floor:
Please enter width of floor:
Please enter the cost per square foot for the flooring selected:
For a total floor size of the flooring cost is $
It will take hours to install the floor at a cost of $
The total finished cost for the new floor is: $
Desktop WinForm application:
Dr I Flooring Cost Estimator
Length of floor:
Width of floor:
Cost per square foot:
Cost of total floor size of : $
Number of hours to install the floor: At a cost of $
The total finished cost for the new floor is: $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started