Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

define a class called dc with two data members: cname and duration. Include relevant constructors & operator methods to perform these operations:
dc c1= new dc("BSC",2);
dc c2= new dc("BMS",2);
if (c1>c2)
System.Console.WriteLine("c1>c2");
else if(c1==c2)
System.Console.WriteLine("c1=c2");
else
System.Console.WriteLine("c2>c1");
// ask the user to enter how many years they had

// ask the user to enter the hobbies or interest they have
// Display how many years they had

// Display the hobbies or interest they have


// need to be put in so the display will remain until you hit the enter key
define a class called dc with two data members: name and duration.
why i cant store values in database but my code is correct pls help me ?????
why i cant store values in database but my code is correct when i executing my program that time it showing th value but when i open database that time there is no value shown in database pls somebody help me ??????????????

my stored procedure is

ALTER PROCEDURE registrtn
(
@empname varchar(150),
@desgination varchar(150),
@emailid varchar(150),
@phone varchar(150),
@skype varchar(150),
@address varchar(150),
@shifttime varchar(150),
@panel varchar(150)
)
As
begin
INSERT INTO registrationn VALUES(@empname,@desgination,@emailid,@phone,@skype,@address,@shifttime,@panel)
select SCOPE_IDENTITY() as empid
end

my c# code is
private void button1_submit_Click(object sender, EventArgs e)
{

if (conn.State == ConnectionState.Closed)
{
conn.Open();
}




//using (SqlCommand cmdd = new SqlCommand(query , cono))
create a class library and define class 'User'.In User class define the public,protected and Friend functions.Create a console application and add a reference to this library and call the user methods by creating the object.Which are the function allowes to call here?
define a console application project to display the different formatting styles used in display methods(i.e.console.writeLine())
Two functional methods
Deposit – increase the balance
Withdraw –decrease the balance

Button create account
• Create an anonymous account using the default constructor
• Create account another using the parameterized constructor
• Handle the exception
• Display a message that the objects have been created using a messagebox
Button Transact
• Make deposits and withdrawals from both accounts. Try to withdraw amount greater than balance
Create a console application. Add class ‘Account’ having variables as num (integer) name (String), bal (double), ac_code (byte). Define four different constructors to initialize these variables. Define a class ‘User’deriving from ‘account’ class. In user class add variables as group_no (int)and mail_id (string). Define three constructors for User class and within them call different parameterized constructors of Account. Can we call these base class constructors as second or last statement in User constructors? Define another class ‘Admin’. Can the User class derive from both ‘account’ and ‘Admin’ classes? How to make Class Admin such that No class can derive from it? How to make Account class such thatsome methods will not be allowed to override ?
Create a console application with a class ‘Account’ having variables as id(int) and name (String).Add property ‘account-no’

which can be set andget. Add a ‘ReadOnly’ property ‘IntRate’ and ‘WriteOnly’ property‘Password’ for this class. Add a

shared property ‘Branch’ with set/get methods. In main method create objects of ‘Account’ and test these properties and

print the results on the screen.
Define an abstract class ‘Bank’ having abstract methods as‘CreateAccount’ ‘depositAmount’ and ‘withDrawAmount’.Add methoddefinitions for ‘CalculateInterest’ and ‘SetIntereset’ as Non-Overridable.Define two classes ‘BharatiBank’ and ‘RupeeBank’ to derivefrom bank class.In main ,method create objects of BharatiBank’ andRupeeBank’ to represent Bank type and call their respective methods.Can Bank type call the derived classes own methods that re not defined inbank ?
LATEST TUTORIALS
APPROVED BY CLIENTS