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

Write a program that would print the information (name, year of joining, salary,address) of three employees by creating a class named 'Employee'. The outputshould be as follows: Name Year of joining Address Robert 1994 64C-


What is the output of each of the following statements? Assume that

x = 5, y = 2, z = 10, and temp = 0

 

 


1. if (y >= x)

      y = z;

   cout<< x << " " << y << " " << z << endl;

 

2. if (y >= x)

   {

      y = z;

      cout<< x << " " << y << " " << z << endl;

   }

 

3. if (z < y)

      temp = x;

      x = z;

   z = temp;

   cout<< x << " " << y << " " << z << endl;

 

 

4. if (z > y)

   {

      temp = x;

      x = z;

      z = temp;

   }

   cout<< x << " " << y << " " << z << endl;

 


5. if (x >= 6)

   cout<< x + y << endl;

   cout<< x + y << endl;

 

 

 

6. if (x + y > z)

      x = y + z;

   else

      x = y - z;

   cout<< x << " " << y << " " << z << endl;


Instructions:


  • Using a do...while() loop, continuously scan for random integers that will be inputted by the user and print out its square, separated in each line.
  • Once the inputted value is 0, it will still print out its square value but should then terminate the loop afterwards. Use this concept in making your loop condition.

Sample Results:


Input


Multiple lines containing an integer.


2

6



Output


Multiple lines containing an integer.


4

36



    I.       z = [a2 + 4ac] ÷ 2


Identify errors in the following program.After identification make correction and write correct code again



(1)



namespace FirstSessional1



{



interface MyInterface{



string name;



public void Function1();



void Function2() {Console.WriteLine("Function 2");}



}



Class Employee:MyInterface{



void Function1() { }





static void Main(string[] args)



{



MyInterface obj=MyInterface();



}



}



}




(2)



byte a=300,b=500,result;



try



{



r=a+b;



MessageBux.Display("A+B" +r);



}



catch(Exception err)



{



MessageBux.Display("Handle Exception");



}



catch(ArithmeticException ex)



{



MessageBux.Display("Handle Arithmetic Exception);



}

1.Write a code to close the curent form and show second form?



2.Write a code that raise an event after 10second,in event display your complete name using messageBox.



3.Supose you have a form that has one Button,when you click on Button,yoy should display a OpenDialogBox.When OpenDialogBox is open,if user click on Button,Show Message that you click on ok button.If user click cancel button,show messgae that yo click on cancel button.

Notify syntax eroor, if any do correct them.



(1)MsgBox.Display("Wel Come") ;



(2)txtPassword.txt="MyText" ;



(3)Project.Run(new Form1 ()) ;



(4)private void btn1Click(object sender, EventArgs e)



(5)In Click even of Button named btn_2



txtResult.Text==txtResult. Text+ "B";

Write a program in c++ to check wether a number is positive, negative or zero


  1. using the range function and parameters print a range multiple of 20 starting with 20 ending in 20 add the print of finally finished after the range

can you give me example code for Python?



Make a c++ program that will print the average of the values of an array named areas with values 84, 76, 48 using while loop.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS