Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C# console application for a furniture company. Ask the user to choose P

ID: 3655997 • Letter: W

Question

Write a C# console application for a furniture company. Ask the user to choose P for pine, O for oak, and M for mahogany. Show the price of a table manufactured with the chosen wood. Pine tables cost $100, oak tables cost $225, and mahogany tables cost $310. If the user enters something other than P, O or M, set the price to $0. Save your program as Furniture.cs.

Explanation / Answer

using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string a; int x; Console.WriteLine("Please Enter an Integer:"); a = Console.ReadLine(); x = Convert.ToInt32(a); if (x > 0) { Console.WriteLine("The entered integer is possitve"); } else if (x < 0) { Console.WriteLine("The entered integer is negative"); } else { Console.WriteLine("The entered integer is equal to zero"); } } } }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote