+91-9519066910

Sample

Calories Counter Application Assignment Help

UK Assignment Help

Calories Counter Application Assignment Help

Rating:

programming assignment help, java assignment help, java homework help, programming homework help, python assignment help, programming assignment, computer science assignment help, computer science homework help, python homework help, do my pro
 
//Calories Counter Application Program.

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 WindowsFormsApplication2
{
    public partial class CalorieCounter : Form
    {
        int input1 = 0; //Declaring variable for input of calories 80
        int input2 = 0;//Declaring variable for input of calories 115
        int input3 = 0;//Declaring variable for input of calories 90
        int input4 = 0;//Declaring variable for input of calories 120
    
        char operation;
        double result = 0.0; // Holds the total calculation of calories

public CalorieCounter()
{
   InitializeComponent();
            
     }

private void Form1_Load(object sender, EventArgs e)
  {

        }

Private void TotalCalories_TextChanged(object sender, EventArgs e)
  {
           
        }

 private void btn1_Click(object sender, EventArgs e)
    {
            this.TotalCalories.Text = "";//New Lines
            input1 += 80;//Records user inputs for 80 Calories
            this.TotalCalories.Text += input1;//New Lines

            
operation = '+';//Addition operator

  if (operation == '+')
            {
                result = result = input1 + input2 + input3 + input4;//Calculates the total after clicking
                TotalCalories.Text = result.ToString();//Display the total Calories at the textbox
            }

                    
        }

private void btn2_Click(object sender, EventArgs e)
        {
            this.TotalCalories.Text = "";//New Lines
            input2 += 115;//Records user inputs for 115 Calories
            this.TotalCalories.Text += input1;//New Lines


Operation = '+';//Addition operator

   if (operation == '+')
            {
                result = result = input1 + input2 + input3 + input4;//Calculates the total after clicking
                TotalCalories.Text = result.ToString();//Display the total Calories at the textbox
            }
            
        }

 private void btn3_Click(object sender, EventArgs e)
        {
            this.TotalCalories.Text = "";//New Lines
            input3 += 90;//Records user inputs for 90 Calories
            this.TotalCalories.Text += input1;//New Lines


operation = '+';//Addition operator

 if (operation == '+')
            {
                result = result = input1 + input2 + input3 + input4;//Calculates the total after clicking
                TotalCalories.Text = result.ToString();//Display the total Calories at the textbox
            }
        }

private void btn4_Click(object sender, EventArgs e)
        {
            this.TotalCalories.Text = "";//New Lines
            input1 += 120;//Records user inputs for 120 Calories
            this.TotalCalories.Text += input1;//New Lines


operation = '+';//Addition operator

 if (operation == '+')
            {
                result = result = input1 + input2 + input3 + input4;//Calculates the total after clicking
                TotalCalories.Text = result.ToString();//Display the total Calories at the textbox
            }
           
        }

private void reset_Click(object sender, EventArgs e) //This Reset The variable inputs and textbox TotalCalories to Zero interger.
        {
            this.TotalCalories.Text = "0";
            input1 = 0;
            input2 = 0;
            input3 = 0;
            input4 = 0;
           
            
        }

private void exitbtn_Click(object sender, EventArgs e)//Close the application window
        {
            this.Close ();
        }
    }
}
java assignment helpjava homework helpprogramming homework helppython assignment helpprogramming assignmentcomputer science assignment helpcomputer science homework helppython homework helpdo my programming homeworkcomputer science assignmentcomputer science homeworkc++ homework help, java programming assignment helpphp assignment help

 DOWNLOAD FULL SAMPLE

Submit Works

Drop File To Upload Or
BROWSE
Assignment Help Australia

Our Top Experts


Karen Betty

Holding a PhD degree in Finance, Dr. John Adams is experienced in assisting students who are in dire need...

55 - Completed Orders


Daphne Lip

Canada, Toronto I have acquired my degree from Campion College at the University of Regina Occuption/Desi...

52 - Completed Orders


Mr Roberto Tuzii

Even since I was a student in Italy I had a passion for languages, in fact I love teaching Italian, and I...

102 - Completed Orders


Harsh Gupta

To work with an organization where I can optimally utilize my knowledge and skills for meeting challenges...

109 - Completed Orders


ARNAB BANERJEE

JOB OBJECTIVE Seeking entry level assignments in Marketing & Business Development with an organization...

202 - Completed Orders


KARAN BHANDARI

Current work profile Project manager- The Researchers Hub (2nd Jan 2016 to presently working) Researc...

20 - Completed Orders


Tan Kumar Ali

Sales Assistant, Mito Marina Assigned to the Stationery dept – assisted in merchandising, stock taking...

100 - Completed Orders


Wesenu Irko

Personal Profile Dedicated and highly experienced private chauffeur. High energy, hardworking, punctua...

200 - Completed Orders