RSS

Visual Studio 2005 Interview Questions and Answers 


 

Visual Studio 2005 Interview Questions and Answers
here is the problems, what i tried is below it, having trouble putting this code togeather could somone help me with it and mainly getting the variables right and using the loops correctly.

this is using visual studios 2005


Name this project Marks.
Create a console application for the following problem.
• Place a title on the screen “Marks Program by Your Name”
• Prompt the user: “Do you want to calculate average marks (Y/N)?”
• If the user enters a Y/y, the program will prompt “How many marks (3-6)?” and read an integer between 3 and 6. Use a do while pre-test loop to get a valid number, displaying an invalid message if necessary. Use constants for 3 and 6. Once you get a valid number, read in that many marks (single) from the user and find the average. Marks entered must be between 0.0 and 100.0. Keep reading marks until they are in that range. Use a for loop to read in the marks. Display the following on the screen: “n marks entered and the average is nn.nn”, where n represents the number the user entered and nn.nn represents the average.
• If the user enters an N/n, the program will end.
• If the users enters anything besides a Y/y or N/n, display invalid and re-prompt “Do you want to calculate average marks (Y/N)?”
• Hand in pseudocode by Tuesday, Nov. 4 at 8:30 am. (5 marks)
• Pseudocode must be typed in Word with your name on it.

Your test cases are as follows with messages:

Marks Program by Your Name
Do you want to calculate average marks (Y/N)? X
Invalid option, please try again
Do you want to calculate average marks (Y/N)? y
How many marks? (3-6): 14
Invalid number of marks, choose (3-6): 4
Enter mark 1: -17
Error - marks must be between 0 - 100: 120
Error - marks must be between 0 - 100: 67.5
Enter mark 2: 73.5
Enter mark 3: 76.5
Enter mark 4: 96.5
4 marks entered and the average is 78.5
Do you want to calculate average marks (Y/N)? Y
How many marks? (3-6): 3
Enter mark 1: 77
Enter mark 2: 84
Enter mark 3: 63
3 marks entered and the average is 74.66666
Do you want to calculate average marks (Y/N)? N
Press any key to continue . . .


Imports system.console
Dim num as integer
Dim counter as integer
Dim Marks as Single
Dim Grade as single
Dim char as string=''Y,y" , N,n''

Const MIN as integer= 3
Const MAX as integer = 6
Const grademin as single = 0.0
Const grademax as single = 100.0


Writeline(“ Marks program by Brian Murphy”)
Readline()

Writeline(“ Do you want to calculate average marks (Y/N)?
Readline= char

If char = "Y,y" Then



‘ prompt user to enter number of marks


For counter = 3 to 6

‘prompt user for a valid number
Write= (“ Enter a number “ & counter & “ of 6:”)
Num= readline()

Do while counter >3 or <6


'tell user number is invalid . Prompt for number again

Loop while counter <3 or >6
Write (“Invalid number. Enter another number")


Else if char="N,n" Then
Writeline("

Loop

Next
For

here is the problems, what i tried is below it, having trouble putting this code togeather could somone help me with it and mainly getting the variables right and using the loops correctly.

this is using visual studios 2005


Name this project Marks.
Create a console application for the following problem.
• Place a title on the screen “Marks Program by Your Name”
• Prompt the user: “Do you want to calculate average marks (Y/N)?”
• If the user enters a Y/y, the program will prompt “How many marks (3-6)?” and read an integer between 3 and 6. Use a do while pre-test loop to get a valid number, displaying an invalid message if necessary. Use constants for 3 and 6. Once you get a valid number, read in that many marks (single) from the user and find the average. Marks entered must be between 0.0 and 100.0. Keep reading marks until they are in that range. Use a for loop to read in the marks. Display the following on the screen: “n marks entered and the average is nn.nn”, where n represents the number the user entered and nn.nn represents the average.
• If the user enters an N/n, the program will end.
• If the users enters anything besides a Y/y or N/n, display invalid and re-prompt “Do you want to calculate average marks (Y/N)?”
• Hand in pseudocode by Tuesday, Nov. 4 at 8:30 am. (5 marks)
• Pseudocode must be typed in Word with your name on it.

Your test cases are as follows with messages:

Marks Program by Your Name
Do you want to calculate average marks (Y/N)? X
Invalid option, please try again
Do you want to calculate average marks (Y/N)? y
How many marks? (3-6): 14
Invalid number of marks, choose (3-6): 4
Enter mark 1: -17
Error - marks must be between 0 - 100: 120
Error - marks must be between 0 - 100: 67.5
Enter mark 2: 73.5
Enter mark 3: 76.5
Enter mark 4: 96.5
4 marks entered and the average is 78.5
Do you want to calculate average marks (Y/N)? Y
How many marks? (3-6): 3
Enter mark 1: 77
Enter mark 2: 84
Enter mark 3: 63
3 marks entered and the average is 74.66666
Do you want to calculate average marks (Y/N)? N
Press any key to continue . . .


Imports system.console
Dim num as integer
Dim counter as integer
Dim Marks as Single
Dim Grade as single
Dim char as string=''Y,y" , N,n''

Const MIN as integer= 3
Const MAX as integer = 6
Const grademin as single = 0.0
Const grademax as single = 100.0


Writeline(“ Marks program by Brian Murphy”)
Readline()

Writeline(“ Do you want to calculate average marks (Y/N)?
Readline= char

If char = "Y,y" Then



‘ prompt user to enter number of marks


For counter = 3 to 6

‘prompt user for a valid number
Write= (“ Enter a number “ & counter & “ of 6:”)
Num= readline()

Do while counter >3 or <6


'tell user number is invalid . Prompt for number again

Loop while counter <3 or >6
Write (“Invalid number. Enter another number")


Else if char="N,n" Then
Writeline("

Loop

Next
For

When you install VisualStudio 2005, the default directory that gets created is C:\program Files\Microsoft Visual Studio 8. It's all very confusing.
i already try the microsoft studio 2005 in the msdn but then it seem to be error requesting for me to download the microsoft winndow xp service pack 2. I already try to install it but then i still can't see the result. Help me Please.
I have Microsoft Visual Studio C Sharp (Microsoft Visual C#) 2005 Express Edition (I prefer to keep it like this, because I got a DLL file from a camp I went to, that changes the programming language used, and that's what I learned at said camp. I heard about Microsoft Silverlight from someone at that camp. What is it, and do I get it free because of my owning C Sharp?
The book I am consulting is Gary Bronson, C++ for Engineers and Scientists, Second Edition, Course Technology, 2006, ISBN 0-534-99380-X

I’m using Microsoft Visual Studios 2005 .
So here is what I’m attempting to do:
1. Write a function rightTriangle that accepts two double arguments (the two sides of a right triangle a, and b) and returns one double value (the length of the hypotenuse). The function prototype should be defined in file student.h and the function itself should be written in file student.cpp.
2. Write a program in Main.cpp that reads the two sides from a file, uses the function rightTriangle to calculate the hypotenuse length, and writes all three values to an output file.
3. Execute the program using the following triangle side input.
First Side (a) Second Side (b)
3 4
5 12
12 16
2.8 4.5


The problem is that I cannot get the function to strip values from my inFile. It says that inFile is an undeclared indentifier in my function
here is the problems, what i tried is below it, having trouble putting this code togeather could somone help me with it and mainly getting the variables right and using the loops correctly.

this is using visual studios 2005


Name this project Marks.
Create a console application for the following problem.
• Place a title on the screen “Marks Program by Your Name”
• Prompt the user: “Do you want to calculate average marks (Y/N)?”
• If the user enters a Y/y, the program will prompt “How many marks (3-6)?” and read an integer between 3 and 6. Use a do while pre-test loop to get a valid number, displaying an invalid message if necessary. Use constants for 3 and 6. Once you get a valid number, read in that many marks (single) from the user and find the average. Marks entered must be between 0.0 and 100.0. Keep reading marks until they are in that range. Use a for loop to read in the marks. Display the following on the screen: “n marks entered and the average is nn.nn”, where n represents the number the user entered and nn.nn represents the average.
• If the user enters an N/n, the program will end.
• If the users enters anything besides a Y/y or N/n, display invalid and re-prompt “Do you want to calculate average marks (Y/N)?”
• Hand in pseudocode by Tuesday, Nov. 4 at 8:30 am. (5 marks)
• Pseudocode must be typed in Word with your name on it.

Your test cases are as follows with messages:

Marks Program by Your Name
Do you want to calculate average marks (Y/N)? X
Invalid option, please try again
Do you want to calculate average marks (Y/N)? y
How many marks? (3-6): 14
Invalid number of marks, choose (3-6): 4
Enter mark 1: -17
Error - marks must be between 0 - 100: 120
Error - marks must be between 0 - 100: 67.5
Enter mark 2: 73.5
Enter mark 3: 76.5
Enter mark 4: 96.5
4 marks entered and the average is 78.5
Do you want to calculate average marks (Y/N)? Y
How many marks? (3-6): 3
Enter mark 1: 77
Enter mark 2: 84
Enter mark 3: 63
3 marks entered and the average is 74.66666
Do you want to calculate average marks (Y/N)? N
Press any key to continue . . .


Imports system.console
Dim num as integer
Dim counter as integer
Dim Marks as Single
Dim Grade as single
Dim char as string=''Y,y" , N,n''

Const MIN as integer= 3
Const MAX as integer = 6
Const grademin as single = 0.0
Const grademax as single = 100.0


Writeline(“ Marks program by Brian Murphy”)
Readline()

Writeline(“ Do you want to calculate average marks (Y/N)?
Readline= char

If char = "Y,y" Then



‘ prompt user to enter number of marks


For counter = 3 to 6

‘prompt user for a valid number
Write= (“ Enter a number “ & counter & “ of 6:”)
Num= readline()

Do while counter >3 or <6


'tell user number is invalid . Prompt for number again

Loop while counter <3 or >6
Write (“Invalid number. Enter another number")


Else if char="N,n" Then
Writeline("

Loop

Next
For
I have a huge program made with Visual Studio C++6. I'm using SQL 2000. Can anybody tell me how easy or difficult it is to change it to SQL 2005?
Is there a way I can system date in Windows Vista without being loged in as an administrator? We have used both SetSystemTime and set Date = new date with a SendMessage(HWND_BROADCAST, WM_TIMECHANGE, 0, 0&) following, in the past and they both work on XP and prior operating systems. I work in VB but have both Visual Studio 6 and .net (2003 & 2005) aviable.
hi

when i inserted ajax update panel or script manger i was given following error....

Error 2 Element 'UpdatePanel' is not a known element. This can occur if there is a compilation error in the Web site. C:\Documents and Settings\admin\Desktop\BDSGame\BDSWebUI\... 3 10 C:\...\BDSWebUI\

and also i dnt get folowing dll's added to My web site bin as i have seen in other ajax projects

web.extentions.design.dll

system.web.extentions.dll



i used visual studio 2005 and instaleed asp.net ajax 1.0 extention

please gve me a favorable reply
I was trying to get on to be-bratz.com to register. i bought the doll and plugged the usb key in. System.Data.RecordManager.NewRecordBase(... +1694516
System.Data.DataTable.NewRecord(Int32 sourceRecord) +21
System.Data.DataRow.BeginEditInternal() +82
System.Data.DataRow.set_Item(DataColumn column, Object value) +138
RegistrationAndLogin.DataSets.CountriesR... value) in C:\Visual Studio 2005\be-bratz\RegistrationAndLogin\DataS...
ChildRegistration.OnLoad(EventArgs e) +2489
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Bo... includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
that popped up and i cant get on. PLZ HELP!!
Heres the problem i am working in Visual Studio 2005 and i can not get my timers to work.
saying timer1.enabled = true, starts the timer but i cant get the blasted thing to stop nor can i get any of the 2 other timers working please someone help this is my 3rd time asking a question like this

I am using Visual Studio 2005 / C++

I have a struct named addrStruct defined above a class.

In the class I have:

addrStruct list[10];

I am running into the error:

cannot define 'list' as a member of managed 'myClass': mixed types are not supported

Can anyone explain why to me?

the output disappear without letting me check if it's right or not. how can i make it to stay? i am usin microsoft visual studio 2005.

this is my code:

#include <iostream>
#include <iomanip>

using std::cout;
using std::cin;
using std::endl;
using std::fixed;
using std::setprecision;

int main()
{
//declare variables
int registrants = 0;
int fee = 0;

//enter input
cout << "Enter number of registrants: ";
cin >> registrants;

//calculate and display order price

cout << fixed << setprecision(2);

if (registrants > 0)
{
if (registrants > 1 && registrants <= 4)
cout << "Seminar Fee: $" << registrants * 100 << endl;
else if (registrants >= 5 && registrants <= 10)
cout << "Seminar Fee: $" << registrants * 80 << endl;
else if (registrants > 11)
cout << "Seminar Fee: $" << registrants * 60 << endl;
//endifs
}
else
cout << "Invalid Data" <<endl;
return 0;
} //end of main function
How can I make dropdownbox2 populate with the people in the department selected in dropdownbox1? Using Visual Studio 2005, .ASP, in VB. I've got DDB1 reading the departments fine - from a SQL "Departments" table that also has a field labeled "Dept ID". I want DDB2 to read from the "Users" table which has a corresponding Dept ID for each user. This is how the users are connected to the departments. How can I make this happen? Please help!
RSS
12345648Showing 46 to 60 of 719

Top Tags

Sorry - no Tags found for specified category