Given Create a program that when run with a name, an integer and a double as CMD arguments, it prints out a greeting using the name and also print the difference of the two given numbers: Sample run 1:
Create a base class called shape. Use this class to store two double type values that could be used to compute the area of figures. Derive two specific classes called triangle and rectangle from the base shape. Add to the base class, a member function setData(int, int) to initialize base class data members and another member function displayArea( ) to compute and display the area of figures.
Given the following declarations, what is the result of each of the assignments?
int w = 5, y = 9, z = 2;
a. z = w * y;
b. z += y;
c. y /= z;
d. y %= z;
e. y += y++;
f. y += --y;
Given the following declarations, what is the result of each of each output?
char a = 'a', b = 'B';
char c = ' ', d;
string s = "This is fun.";
int e;
System.out.println a. ("a = " + a); b.("a = " + 'a'); c.(a + b);
d. (s);
e. (s.length());
Kindly answer this urgently.
You can access the question via the link below. Thanks and plz answer.
https://drive.google.com/file/d/1mfyGOKUB_vdWvXTg6R9tHKYe0du0Rnqi/view?usp=sharing
Kindly answer this as soon as possible. Very urgent. And need a correct answer.
The program does 2 + 2; I need the program do 3 * 2; and 3 / 2; and 3^2;
The code is already written. You need to fix the code, so it accepts *, / and ^ operations need to add multiplication, addition, and power.
You can access the code via the link given below. Thanks
https://drive.google.com/file/d/1NoVc1HNT9kPNJhnFg0x2V44tak9C0x4c/view?usp=sharing