C#.net

Profit and CommissionCalculation using C#.net

This tutorial will teach you Profit and Commission Calculation using C#.net.while calculating the commission from the profit include 1% commission.

Paste the code inside the ok button

private void button1_Click(object sender, EventArgs e)
        {
            double buyprice = double.Parse(txtBprice.Text);
            double sellprice = double.Parse(txtSprice.Text);

            //Profit
            double tot = sellprice - buyprice;

            txtProfit.Text = tot.ToString();

            //Commission
            double comm = tot * 1/100;

            txtComm.Text = comm.ToString();

       }

I have attached the video tutorial below it will help you  to do this  step by step.

 

AddThis Website Tools
admin

Recent Posts

Hotel Management System using Laravel 11

Relationships: Hotel ↔ Rooms (One-to-Many) A hotel can have many rooms, but a room belongs…

2 days ago

Creating Grocery Inventory App Using React

Introduction to Grocery Inventory Apps Managing grocery inventory can be a daunting task, but with…

1 week ago

Fish Inventory Shop Management System in Angular

This article explain how to make a Fish Inventory Management App in Angular.this app explain…

2 weeks ago

Fish Inventory Management with React

Introduction to Fish Inventory Management In the aquaculture industry, managing fish inventory is crucial for…

2 weeks ago

Java GUI CRUD for Beginners

Introduction to Java GUI CRUD Java is a powerful programming language widely used for building…

2 weeks ago

Creating Beautiful Login Form Design Using React

Introduction to Login Form Design Designing an effective and beautiful login form is crucial for…

3 weeks ago