public static void Main()
int pens, tape, highlighter, paper_clips, scissors, trash_can, wireless_router, push_pen, chair,
desk, cleaner, eraser, table, paper, computer_system, hole_puncher;
double tax, discount_5, discount_20, discount_50, fdiscount5, fdiscount20, fdiscount50,
t_pen, t_tape, t_highlighter, t_clips, t_scissors, t_trashcan, t_router, t_pushpin, t_chair,
t_desk, t_cleaner, t_eraser, t_table, t_paper, t_computer, t_puncher,
pen_price, tape_price, highlighter_price, clip_price, scissors_price, trashcan_price, router_price, pin_price, chair_price,
desk_price, cleaner_price, eraser_price, table_price, paper_price, computer_price, puncher_price,
total_1, total_5, total_20, total_50, discount_0, total_0;
Console.Write(" How many pens do you want to order? ");
pens = Convert.ToInt16(Console.ReadLine());
Console.Write(" How mnay rolls of tape do you want to order? ");
tape = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many highlighters do you want to order? ");
highlighter = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many boxes of paper clips do you want to order? ");
paper_clips = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many pair of scissors do you want to order? ");
scissors = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many trash cans do you want to order? ");
trash_can = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many wireless routers do you want to order? ");
wireless_router = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many boxes of push pens do you want to order? ");
push_pen = Convert.ToInt16(Console.ReadLine());
Console.Write(" Hoe mnay chairs do you want to order?");
chair = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many desks do you want to order? ");
desk = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many bottles of white board cleaner do you want to order? ");
cleaner = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many white board erasers do you want to order? ");
eraser = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many tables do you want to order? ");
table = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many boxes of paper do you want to order? ");
paper = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many computer systems do you want to order? ");
computer_system = Convert.ToInt16(Console.ReadLine());
Console.Write(" How many hole punchers do you want to order? ");
hole_puncher = Convert.ToInt16(Console.ReadLine());
t_pen = pens * pen_price;
t_tape = tape * tape_price;
t_highlighter = highlighter * highlighter_price;
t_clips = paper_clips * clip_price;
t_scissors = scissors * scissors_price;
t_trashcan = trash_can * trashcan_price;
t_router = wireless_router * router_price;
t_pushpin = push_pen * pin_price;
t_chair = chair * chair_price;
t_desk = desk * desk_price;
t_cleaner = cleaner * cleaner_price;
t_eraser = eraser * eraser_price;
t_table = table * table_price;
t_paper = paper * paper_price;
t_computer = computer_system * computer_price;
t_puncher = hole_puncher * puncher_price;
total_1 = t_pen + t_tape + t_highlighter + t_clips + t_scissors + t_trashcan + t_router + t_pushpin + t_chair + t_desk + t_cleaner + t_eraser + t_table + t_table + t_paper + t_paper + t_computer + t_puncher;
discount_5 = 0.05 * total_1;
fdiscount5 = total_1 - discount_5;
discount_20 = 0.20 * total_1;
fdiscount20 = total_1 - discount_20;
discount_50 = 0.50 * total_1;
fdiscount50 = total_1 - discount_50;
total_5 = total_1 + tax - fdiscount5;
total_20 = total_1 + tax fdiscount20;
total_50 = total_1 + tax - fdiscount50;
total_0 = total_1 + tax + discount_0;
Console.WriteLine(" Cost List of Items ");
Console.WriteLine(" Pens...................$ 5.00 ");
Console.WriteLine(" Tape...................$ 2.00 ");
Console.WriteLine(" Highlighter............$ .50 ");
Console.WriteLine(" Paper Clips............$ .75 ");
Console.WriteLine(" Scissors...............$ 1.50 ");
Console.WriteLine(" Trash Can..............$ 10.00 ");
Console.WriteLine(" Wireless Router........$ 50.00 ");
Console.WriteLine(" Push Pins..............$ .50 ");
Console.WriteLine(" Chair..................$ 35.00 ");
Console.WriteLine(" Desk...................$ 40.00 ");
Console.WriteLine(" White Board Cleaner....$ 4.50 ");
Console.WriteLine(" White Board Eraser.....$ 2.00 ");
Console.WriteLine(" Table..................$ 65.00 ");
Console.WriteLine(" Box of Paper...........$ 35.00 ");
Console.WriteLine(" Computer System........$890.00 ");
Console.WriteLine(" Hole Puncher...........$ 5.00 ");
Console.WriteLine(" The total number of Pens .................... {0}", pens);
Console.WriteLine(" The total number of Tape .................... {0}", tape);
Console.WriteLine(" The total number of highlighters............. {0}", highlighter);
Console.WriteLine(" The total number of paper clips.............. {0}", paper_clips);
Console.WriteLine(" The total number of scissors................. {0}", scissors);
Console.WriteLine(" The total number of trash cans............... {0}", trash_can);
Console.WriteLine(" The total number of wireless routers......... {0}", wireless_router);
Console.WriteLine(" The total number of push pins................ {0}", push_pen);
Console.WriteLine(" The total number of chairs................... {0}", chair);
Console.WriteLine(" The total number of desks.................... {0}", desk);
Console.WriteLine(" The total number of white board cleaners..... {0}", cleaner);
Console.WriteLine(" The total number of white board erasers...... {0}", eraser);
Console.WriteLine(" The total number of tables................... {0}", table);
Console.WriteLine(" The total number of boxes of paper........... {0}", paper);
Console.WriteLine(" The total number of computer systems......... {0}", computer_system);
Console.WriteLine(" The total number of hole punchers............ {0}", hole_puncher);
Console.WriteLine(" Receipt ");
Console.WriteLine(" Price before tax...................$ {0:f2}", total_1);
Console.WriteLine(" Discount...........................$ {0:f2}", fdiscount50);
Console.WriteLine(" Tax................................$ {0:f2}", tax);
Console.WriteLine(" Total Cost.........................$ {0:f2}", total_50);
Console.WriteLine(" Cost List of Items ");
Console.WriteLine(" Pens...................$ 5.00 ");
Console.WriteLine(" Tape...................$ 2.00 ");
Console.WriteLine(" Highlighter............$ .50 ");
Console.WriteLine(" Paper Clips............$ .75 ");
Console.WriteLine(" Scissors...............$ 1.50 ");
Console.WriteLine(" Trash Can..............$ 10.00 ");
Console.WriteLine(" Wireless Router........$ 50.00 ");
Console.WriteLine(" Push Pins..............$ .50 ");
Console.WriteLine(" Chair..................$ 35.00 ");
Console.WriteLine(" Desk...................$ 40.00 ");
Console.WriteLine(" White Board Cleaner....$ 4.50 ");
Console.WriteLine(" White Board Eraser.....$ 2.00 ");
Console.WriteLine(" Table..................$ 65.00 ");
Console.WriteLine(" Box of Paper...........$ 35.00 ");
Console.WriteLine(" Computer System........$890.00 ");
Console.WriteLine(" Hole Puncher...........$ 5.00 ");
Console.WriteLine(" The total number of Pens .................... {0}", pens);
Console.WriteLine(" The total number of Tape .................... {0}", tape);
Console.WriteLine(" The total number of highlighters............. {0}", highlighter);
Console.WriteLine(" The total number of paper clips.............. {0}", paper_clips);
Console.WriteLine(" The total number of scissors................. {0}", scissors);
Console.WriteLine(" The total number of trash cans............... {0}", trash_can);
Console.WriteLine(" The total number of wireless routers......... {0}", wireless_router);
Console.WriteLine(" The total number of push pins................ {0}", push_pen);
Console.WriteLine(" The total number of chairs................... {0}", chair);
Console.WriteLine(" The total number of desks.................... {0}", desk);
Console.WriteLine(" The total number of white board cleaners..... {0}", cleaner);
Console.WriteLine(" The total number of white board erasers...... {0}", eraser);
Console.WriteLine(" The total number of tables................... {0}", table);
Console.WriteLine(" The total number of boxes of paper........... {0}", paper);
Console.WriteLine(" The total number of computer systems......... {0}", computer_system);
Console.WriteLine(" The total number of hole punchers............ {0}", hole_puncher);
Console.WriteLine(" Receipt ");
Console.WriteLine(" Price before tax...................$ {0:f2}", total_1);
Console.WriteLine(" Discount...........................$ {0:f2}", fdiscount20);
Console.WriteLine(" Tax................................$ {0:f2}", tax);
Console.WriteLine(" Total Cost.........................$ {0:f2}", total_20);
Console.WriteLine(" Cost List of Items ");
Console.WriteLine(" Pens...................$ 5.00 ");
Console.WriteLine(" Tape...................$ 2.00 ");
Console.WriteLine(" Highlighter............$ .50 ");
Console.WriteLine(" Paper Clips............$ .75 ");
Console.WriteLine(" Scissors...............$ 1.50 ");
Console.WriteLine(" Trash Can..............$ 10.00 ");
Console.WriteLine(" Wireless Router........$ 50.00 ");
Console.WriteLine(" Push Pins..............$ .50 ");
Console.WriteLine(" Chair..................$ 35.00 ");
Console.WriteLine(" Desk...................$ 40.00 ");
Console.WriteLine(" White Board Cleaner....$ 4.50 ");
Console.WriteLine(" White Board Eraser.....$ 2.00 ");
Console.WriteLine(" Table..................$ 65.00 ");
Console.WriteLine(" Box of Paper...........$ 35.00 ");
Console.WriteLine(" Computer System........$890.00 ");
Console.WriteLine(" Hole Puncher...........$ 5.00 ");
Console.WriteLine(" The total number of Pens .................... {0}", pens);
Console.WriteLine(" The total number of Tape .................... {0}", tape);
Console.WriteLine(" The total number of highlighters............. {0}", highlighter);
Console.WriteLine(" The total number of paper clips.............. {0}", paper_clips);
Console.WriteLine(" The total number of scissors................. {0}", scissors);
Console.WriteLine(" The total number of trash cans............... {0}", trash_can);
Console.WriteLine(" The total number of wireless routers......... {0}", wireless_router);
Console.WriteLine(" The total number of push pins................ {0}", push_pen);
Console.WriteLine(" The total number of chairs................... {0}", chair);
Console.WriteLine(" The total number of desks.................... {0}", desk);
Console.WriteLine(" The total number of white board cleaners..... {0}", cleaner);
Console.WriteLine(" The total number of white board erasers...... {0}", eraser);
Console.WriteLine(" The total number of tables................... {0}", table);
Console.WriteLine(" The total number of boxes of paper........... {0}", paper);
Console.WriteLine(" The total number of computer systems......... {0}", computer_system);
Console.WriteLine(" The total number of hole punchers............ {0}", hole_puncher);
Console.WriteLine(" Receipt ");
Console.WriteLine(" Price before tax...................$ {0:f2}", total_1);
Console.WriteLine(" Discount...........................$ {0:f2}", fdiscount5);
Console.WriteLine(" Tax................................$ {0:f2}", tax);
Console.WriteLine(" Total Cost.........................$ {0:f2}", total_5);
Console.WriteLine(" Cost List of Items ");
Console.WriteLine(" Pens...................$ 5.00 ");
Console.WriteLine(" Tape...................$ 2.00 ");
Console.WriteLine(" Highlighter............$ .50 ");
Console.WriteLine(" Paper Clips............$ .75 ");
Console.WriteLine(" Scissors...............$ 1.50 ");
Console.WriteLine(" Trash Can..............$ 10.00 ");
Console.WriteLine(" Wireless Router........$ 50.00 ");
Console.WriteLine(" Push Pins..............$ .50 ");
Console.WriteLine(" Chair..................$ 35.00 ");
Console.WriteLine(" Desk...................$ 40.00 ");
Console.WriteLine(" White Board Cleaner....$ 4.50 ");
Console.WriteLine(" White Board Eraser.....$ 2.00 ");
Console.WriteLine(" Table..................$ 65.00 ");
Console.WriteLine(" Box of Paper...........$ 35.00 ");
Console.WriteLine(" Computer System........$890.00 ");
Console.WriteLine(" Hole Puncher...........$ 5.00 ");
Console.WriteLine(" The total number of Pens .................... {0}", pens);
Console.WriteLine(" The total number of Tape .................... {0}", tape);
Console.WriteLine(" The total number of highlighters............. {0}", highlighter);
Console.WriteLine(" The total number of paper clips.............. {0}", paper_clips);
Console.WriteLine(" The total number of scissors................. {0}", scissors);
Console.WriteLine(" The total number of trash cans............... {0}", trash_can);
Console.WriteLine(" The total number of wireless routers......... {0}", wireless_router);
Console.WriteLine(" The total number of push pins................ {0}", push_pen);
Console.WriteLine(" The total number of chairs................... {0}", chair);
Console.WriteLine(" The total number of desks.................... {0}", desk);
Console.WriteLine(" The total number of white board cleaners..... {0}", cleaner);
Console.WriteLine(" The total number of white board erasers...... {0}", eraser);
Console.WriteLine(" The total number of tables................... {0}", table);
Console.WriteLine(" The total number of boxes of paper........... {0}", paper);
Console.WriteLine(" The total number of computer systems......... {0}", computer_system);
Console.WriteLine(" The total number of hole punchers............ {0}", hole_puncher);
Console.WriteLine(" Receipt ");
Console.WriteLine(" Price before tax...................$ {0:f2}", total_1);
Console.WriteLine(" Discount...........................$ {0:f2}", discount_0);
Console.WriteLine(" Tax................................$ {0:f2}", tax);
Console.WriteLine(" Total Cost.........................$ {0:f2}", total_0);