Print Friendly and PDF
(Inventory Enhancement) Extend the Inventory application to include a TextBox in which the user can enter the number of shipments received in a week . Assume every shipment has the same number of cartons (each of which has the same number of items).Then, modify the code so that the Inventory application uses that value in its calculation.
(Inventory Enhancement) Extend the Inventory application to include a TextBox in
which the user can enter the number of shipments received in a week . Assume every shipment has the same number of cartons (each of which has the same number of items).Then, modify the code so that the Inventory application uses that value in its calculation.

Inventory Enhancement

Solution:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Inventory_Enhancement
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{

lblTotalResult.Text = Convert.ToString(
Int32.Parse(txtCartons.Text) *
Int32.Parse(txtItems.Text) *
Int32.Parse(txtShipments.Text));
}
}
}
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: