Please send me answer of this code from the given output ,just i have written the code but some error so please write correct code

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter11: Nonlinear Programming
Section11.13: Pareto Optimality And Tradeoff Curves
Problem 1P
icon
Related questions
icon
Concept explainers
Question

Please send me answer of this code from the given output ,just i have written the code but some error so please write correct code and i will give you like sure sir 

OUTPUT
Microsoft Visual Studio Debug Console
Chris 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
Show Transcribed Text
using System;
using static System.Console;
namespace Exercise1_Console
{
class Program
{
// variable declaration
static int floor Length, floorWidth;
static double costPerSqFt, totalMaterial,
totalLabor, installTime, total;
static string floor LengthString,
floorWidthString, costSqFtString;
// initialize constants
const double COST_PER_HOUR = 35.75;
const double SQ_FT_PER_HOUR = 40.00;
static void Main(string[] args)
{
Console.WriteLine("Jo's Flooring Cost
Estimator");
// get user input
Console.Write("\nPlease enter the floor length:
");
floor LengthString = ReadLine();
floorLength =
Convert.Tolnt32(floorLengthString);
Console.Write("Please enter the floor width: ");
floorWidthString = ReadLine();
floorWidth =
Convert.Tolnt32(floorWidthString);
Console.Write("Please enter the cost per
square foot for the chosen flooring: ");
costSqFtString = ReadLine();
costPerSqFt =
Convert.ToDouble(costSqFtString);
Console.WriteLine("--
// calculate total cost
totalMaterial = floorLength * floorWidth *
costPerSqFt;
installTime = (floorLength* floorWidth) /
SQ_FT_PER_HOUR;
totalLabor = installTime * COST_PER_HOUR;
total = totalLabor + totalMaterial;
-");
// display results
Console.WriteLine("For a total floor size of {0}
the flooring cost is {1}",
(floor Length * floorWidth),
totalMaterial.ToString("C"));
Console.WriteLine("It will take {0} hours to
install the floor at a cost of {1}",
installTime.ToString("F"),
totalLabor.ToString("C"));
Console.WriteLine("The total installation cost
for the new floor is: {0}",
total.ToString("C"));
}
}
// end of program
Transcribed Image Text:OUTPUT Microsoft Visual Studio Debug Console Chris 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 Show Transcribed Text using System; using static System.Console; namespace Exercise1_Console { class Program { // variable declaration static int floor Length, floorWidth; static double costPerSqFt, totalMaterial, totalLabor, installTime, total; static string floor LengthString, floorWidthString, costSqFtString; // initialize constants const double COST_PER_HOUR = 35.75; const double SQ_FT_PER_HOUR = 40.00; static void Main(string[] args) { Console.WriteLine("Jo's Flooring Cost Estimator"); // get user input Console.Write("\nPlease enter the floor length: "); floor LengthString = ReadLine(); floorLength = Convert.Tolnt32(floorLengthString); Console.Write("Please enter the floor width: "); floorWidthString = ReadLine(); floorWidth = Convert.Tolnt32(floorWidthString); Console.Write("Please enter the cost per square foot for the chosen flooring: "); costSqFtString = ReadLine(); costPerSqFt = Convert.ToDouble(costSqFtString); Console.WriteLine("-- // calculate total cost totalMaterial = floorLength * floorWidth * costPerSqFt; installTime = (floorLength* floorWidth) / SQ_FT_PER_HOUR; totalLabor = installTime * COST_PER_HOUR; total = totalLabor + totalMaterial; -"); // display results Console.WriteLine("For a total floor size of {0} the flooring cost is {1}", (floor Length * floorWidth), totalMaterial.ToString("C")); Console.WriteLine("It will take {0} hours to install the floor at a cost of {1}", installTime.ToString("F"), totalLabor.ToString("C")); Console.WriteLine("The total installation cost for the new floor is: {0}", total.ToString("C")); } } // end of program
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
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
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Microsoft Windows 10 Comprehensive 2019
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L