Hi Iam new to programming Can Any one help me to learn new skills .
I need solution and explanation for following problem . C#.NET using TextBox
1.Write a function that displays a message indicating the number of times it gets called: For
instance “The function has been called three times”. Write a program that calls this function
10 times from main(). You will need to use a global variable to store the count. A global
variable is declared outside the main() function. for following problems ..........
2 .A calculator for a supercomputer is to be designed using C language. While the engineers were
working on the project they found that the calculator was not giving correct answers for very
large calculations. For example, if 150000000 is to be multiplied by 10; the calculator gave faulty
result. The bug was detected to be the limited range of integers. Use type casting to design a
calculator that performs arithmetic operations of large inputs. (e.g; 150000000 *10) Take input
from the user in integer data type.
<From Comment>
Let me submit another type of Question which I have tried .
Write a program which takes two numbers as input from user and determines which is the larger
of the two numbers. The Program should also tell which of the entered numbers is even or odd.Please reviwe my version of this question , if possible try to correct it . I am having error .
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Unnamed1_Click(object sender, EventArgs e)
{
if (Convert.ToInt16(TextBox1.Text) > Convert.ToInt16(TextBox2.Text))
if (Convert.ToInt16(TextBox2.Text) > Convert.ToInt16(TextBox3.Text))
if (Convert.ToInt16(TextBox1.Text) > Convert.ToInt16(TextBox3.Text))
{
Label2.Text = "Number 1 is greatest amoung 3 + Number 2 is the AVERAGE + Number 3 is the smallest ";
}
else if (Convert.ToInt16(TextBox1.Text) < Convert.ToInt16(TextBox2.Text))
if (Convert.ToInt16(TextBox2.Text) < Convert.ToInt16(TextBox3.Text))
if (Convert.ToInt16(TextBox1.Text) < Convert.ToInt16(TextBox3.Text))
{
Label3.Text = "Number 3 is greatest amoung 3 + Number 2 is the AVERAGE + Number 1 is the smallest ";
}
}
}
Thanks for your Interest. It will be really greatful if you help me with this learning process.