Question: using System; using System.Collections.Generic; using System.Globalization; namespace PaintingEstimate { class PaintingEstimate / / C# class { static void Main ( string [ ] args )

using System;using System.Collections.Generic;using System.Globalization;namespace PaintingEstimate{class PaintingEstimate //C# class{static void Main(string[] args){Console.Write("Enter length of the room in feet : ");int length = int.Parse(Console.ReadLine());Console.Write("Enter width of the room in feet : ");int width = int.Parse(Console.ReadLine());Console.WriteLine("The price of Room painting is : {0}", costOfRoomPainting(length,width).ToString("C", CultureInfo.GetCultureInfo("en-US")));}public static double costOfRoomPainting(int length,int width){int squareFoot =(length + length + width + width)*9;return squareFoot *6;}}}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!