Program.cs - using using using using using using System System.Collections.Generic System.Linq System.Text System.Threading.Tasks static System.Console

Program.cs - using using using using using using System...

This preview shows page 1 - 2 out of 2 pages.

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace Desks //Heather Jacobs //July 7,2018 // computes the type of wood and price of a desk with surcharge { class Program { public Program() { } static void Main(string[] args) { int drawers; char woodType; double deskCost; drawers = GetDrawers(); woodType = GetWoodType(); deskCost = CalculateDeskCost(drawers, woodType); DisplayDetails(drawers, woodType, deskCost); } //display all the details and the final price private static void DisplayDetails(int drawers, char woodType, double deskCost) { Console.WriteLine("Number of Drawers:" + drawers); Console.Write("Type of wood "); if (woodType == 'p') Console.WriteLine("Pine"); else if (woodType == 'o') Console.WriteLine("Oak"); else if (woodType == 'm') Console.WriteLine("Mahogany");
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Summer '18
  • T tran
  • Return statement, Desk, Void type, Desks, char woodType

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes