Sign in to follow this  
Followers 0
PMREDDY19

Visual C# 2008 Work.. Answers Please

9 posts in this topic

[color=#ff0000][size=6][b]Visual C # 2008 - homework[/b][/size][/color]

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







[color=#ff0000][size=5][b]Chapter -3 [/b][/size][/color]

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..




[color=#ff0000][size=5][b]Chapter -5 ..[/b][/size][/color]

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

Share this post


Link to post
Share on other sites
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.
0

Share this post


Link to post
Share on other sites
[b]2.6 -
[i]a) The [u]image[/u] property specifies which image a Picturebox displays.[/i][/b]
[b][i]B) The [u]window[/u] menu contains commands for arranging and displaying windows.[/i][/b]
[b][i]c) The [u]backcolor[/u] property determines a form's or control's background color.[/i][/b]
0

Share this post


Link to post
Share on other sites
[b]2.7 -[/b]
[b]Toolbar[/b]- Contains graphics which are called icons that graphically represent commands.

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

[b]Toolbox[/b]- Contains icons representing controls used to customize forms.

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

[b]Form[/b]- 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.

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

Share this post


Link to post
Share on other sites
[quote name='PMR aka OM' timestamp='1320451761' post='3065492']
[b]2.6 -[/b]
[b][i]a) The [u]image[/u] property specifies which image a Picturebox displays.[/i][/b]
[b][i] B) The [u]window[/u] menu contains commands for arranging and displaying windows.[/i][/b]
[b][i]c) The [u]backcolor[/u] property determines a form's or control's background color.[/i][/b]
[/quote]

_-_ _-_
0

Share this post


Link to post
Share on other sites
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);
}

}
}
}
0

Share this post


Link to post
Share on other sites
Thanks for ur reply buddy....


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

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0