Jump to content


Photo

Visual C# 2008 Work.. Answers Please


  • Please log in to reply
8 replies to this topic

#1 PMR aka OM

PMR aka OM

    Director, Andhra Friends

  • Members
  • 25,114 posts

Posted 04 November 2011 - 04:17 PM

Visual C # 2008 - homework

2.5)))Some features appear throughout Visual Studio performe similar actions in different contexts. Explain and give examples of how plus/minus boxes, ellipsis buttons, down arrows and tool tips act in this manner. Why do you think Visual Studio .NET was designed to be this way?



2.6)))Fill in the blanks in each of the following statements:
a) The _______________property specifies which image a picture box displays.
B) The_______________ menu contains commands for arranging and displaying windows.
c) The_____________Property determines a form’s or control’s background color.


2.7)) Briefly describe each of the following terms:
a) toolbar
B) menu bar
c) Toolbox
d) control
e) Form
f) solution







Chapter -3

3.15 ::
Write an application that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, difference and quotient of the two numbers.


3.17 ::

Write an application that inputs 3 integers from the user and displays the sum, avg, product, smallest and the largest,,, of the three.
The avg must display in an integer form.

3.24::
Write an application that reads in a integer and detemines whether it is even or odd.
(use remainder operator)

3.26::


Write an application that inputs from the user the radius of a circle and prints the circle’s diameter, circumference and area. Use the following formulas (r is the radius): diameter = 2r, circumference = 2πr, area = πr2.

Note :: Inputs must be taken as integer and out can be float.
Try using the Class Math and also try to specify the calculation in the WriteLine statement instead of storing the value inside a variable and printing it..




Chapter -5 ..

e-book lo kuda levu..
konchem late gaa cheyyallli.

#2 PMR aka OM

PMR aka OM

    Director, Andhra Friends

  • Members
  • 25,114 posts

Posted 04 November 2011 - 04:40 PM

%<>( sSc_hidingsofa sSc_hidingsofa sSc_hidingsofa %<>(

#3 PMR aka OM

PMR aka OM

    Director, Andhra Friends

  • Members
  • 25,114 posts

Posted 04 November 2011 - 05:26 PM

:3D_Smiles_38: :3D_Smiles_38: :3D_Smiles_38: :3D_Smiles_38:

#4 PMR aka OM

PMR aka OM

    Director, Andhra Friends

  • Members
  • 25,114 posts

Posted 04 November 2011 - 06:08 PM

2.5)))Some features appear throughout Visual Studio performe similar actions in different contexts. Explain and give examples of how plus/minus boxes, ellipsis buttons, down arrows and tool tips act in this manner. Why do you think Visual Studio .NET was designed to be this way?

Regardless of the setting or context, the features mentioned above will work the same way. Clicking a plus box will always expand a list while a minus box will always collapse it. In the same manner, ellipsis buttons, down-arrow buttons and tool tips will perform the same action regardless of the situation. The only difference lies in what choices are shown/revealed when they are used.

For example, the ellipsis button we used to import the bug.png image file displayed a different dialog box than the one we used to change the font in the label box.

#5 PMR aka OM

PMR aka OM

    Director, Andhra Friends

  • Members
  • 25,114 posts

Posted 04 November 2011 - 06:09 PM

2.6 -
a) The image property specifies which image a Picturebox displays.

B) The window menu contains commands for arranging and displaying windows.
c) The backcolor property determines a form's or control's background color.

#6 PMR aka OM

PMR aka OM

    Director, Andhra Friends

  • Members
  • 25,114 posts

Posted 04 November 2011 - 06:09 PM

2.7 -
Toolbar- Contains graphics which are called icons that graphically represent commands.

Menu Bar- Commands for managing the IDE and for developing, maintaining and executing programs are contained in menus.

Toolbox- Contains icons representing controls used to customize forms.

Control- Controls are the options we have to get the applications up and running much faster than having to write the code ourselves.

Form- Forms are used to create the GUI's for programs. A form is a graphical element that appears on your computer's desktop; it can be a dialop, a window or a MDI window which is a multiple document interface window.

Solution- a solution is basically a group of related files that make up a project. Visual Studio 2005 organizes programs into projects and solutions.

#7 Silence..Please

Silence..Please

    LEGEND

  • Members
  • 34,561 posts

Posted 04 November 2011 - 06:09 PM

2.6 -
a) The image property specifies which image a Picturebox displays.
B) The window menu contains commands for arranging and displaying windows.
c) The backcolor property determines a form's or control's background color.


_-_ _-_

#8 Naga7983

Naga7983

    Jr Artist

  • Members
  • 4 posts

Posted 04 April 2012 - 09:24 AM

3.15)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace arithmetic
{
class Program
{
static void Main(string[] args)
{
int number1;
int number2;
int sum;
int product;
int difference;
int division;

Console.Write("enter first integer:");
number1 = Convert.ToInt32(Console.ReadLine());

Console.Write("enter second integer:");
number2=Convert.ToInt32 ( Console.ReadLine ());

sum = number1 + number2;
product = number1 * number2;
difference = number1 - number2;
division = number1 / number2;

Console.WriteLine ("Sum is {0}", sum);
Console.WriteLine("Product is {0}", product);
Console.WriteLine("difference is {0}", difference );
Console.WriteLine("division is {0}", division );
}
}
}


3.17)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace smallest_and_largest
{
class Program
{
static void Main(string[] args)
{
int number1;
int number2;
int number3;
int sum;
int product;
int Average;

Console.Write("enter first integer:");
number1 = Convert.ToInt32(Console.ReadLine());

Console.Write("enter second integer:");
number2 = Convert.ToInt32(Console.ReadLine());

Console.Write("enter third integer:");
number3 = Convert.ToInt32(Console.ReadLine());

sum = number1 + number2 + number3 ;
product = number1 * number2 * number3 ;
Average = (number1 + number2 + number3) / 3;

Console.WriteLine("Sum is {0}", sum);
Console.WriteLine("Product is {0}", product);
Console.WriteLine("Average is {0}", Average );
if ((number1 > number2) && (number1>number3 ) )
{
Console.WriteLine("number1 is largest={0}", number1);
}
else if(number2>number1 && number2 >number3 )
{
Console.WriteLine("number2 is largest={0}", number2);

}
else if(number3>number1 && number3 >number2 )
{
Console.WriteLine("number3 is largest={0}", number3);
}

}
}
}

#9 PMR aka OM

PMR aka OM

    Director, Andhra Friends

  • Members
  • 25,114 posts

Posted 04 April 2012 - 09:31 AM

Thanks for ur reply buddy....


anyhow i am done with those school classes and I am in my H1B now..