Create a console-based application that computes the price of a desk and whose main() method calls four other methods
a method to accept the number of drawers in the desk an input from the keyboard. this method returns the number of drawers to the main method
a method to accept an input and return the type of wood 'm' for mahogany , 'o' for oak , or 'p' for pine
a method that accept the number of drawers and wood type, and calculate the cost of the desk based on the following:
pine 100$
oak 140$
all other woods 180$
a 30$ surcharge is added for each drawer
this method return the cost to main method
a method to display all the details and the final price
and i need to write it all in gui application
i started writing the code i am a beginner programmer
and i couldn't realize whet i am doing wrong
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DesksGui
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int drawers;
int num;
int desks;
int type;
desks = Convert.ToInt32(textBox1.Text);
numberOfDrawers(num);
woodType(string mahogany, string oak, string pine );
}
public static int numberOfDrawers(int number)
{
number = Convert.ToInt32(textBox2.Text);
return number;
}
public int woodType(int m, int o, int p)
{
if (textBox3 = m)
{
}
return m;
}
}
}