Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

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

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.


2 197

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

Create a program that takes in an even sized String and prints out the first half concatenated with
original string separated by a single space.
Sample run 1:
Enter a single string: HelloThere
Output: Hello Hello There
Your task is to then create
a java program that when give a sentence will replace the first occurrence of NUST with Namibia
University of Science and Technology.
Sample run 1:
Enter a sentence: Welcome to my NUST.
Output: Welcome to my Namibia University of Science and Technology.
Sample run 2:
Enter a sentence: The nust is a great institution of high learning.
Output: The Namibia University of Science and Technology is a great institution of high learning.
Given three numbers from user input, decrement the first number by 1 and increment the third
number by 2, Then do the magic calculations as follows: get the sum of the first two numbers,
deduct the third number from the second and get the product of the first and third number, then sum
up the results of the three magic calculations and finally divide you outcome by 3.
Sample run 1:
Enter three numbers separated by spaces: 4 2 3
Output: Result of Magic calculations = 5
Sample run 2:
Enter three numbers separated by spaces: 2 8 5
Output: Result of Magic calculations = 5
a) Write an Pseudocode to solve the above problem
b) Create a flowchart for the above pseudocode
c) With the help of both your Pseudocode and Flowchart, create a Java program that solves the
program as per the given sample out puts and problem description
LATEST TUTORIALS
APPROVED BY CLIENTS