Write a C# console application for a furniture company. Ask the user to choose P
ID: 3656037 • 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. The application has to be very basic, no IF, or LOOP. just variables and user input. thanksExplanation / 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"); } } } }Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.