1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Naddik [55]
3 years ago
12

Write a java program which will produce the following output. No variables are needed but the program must use numbers and math

operators for all the results. In other words, you cannot simply include all the answers inside the quotes. The calculations must be done by the computer
Engineering
1 answer:
Sav [38]3 years ago
8 0

The question did not include the output to be produced. However, below are the outputs.

My age is 21

Twice my age is 42

Three times my age is 63

ANSWER:

public class NewClasss{

   public static void main(String[] args) {

   int x,y,z;

   x = 21;

   y = 2*x;

   z=3*x;

   System.out.println("My age is " + x);

   System.out.println("twice my age is " + y);

   System.out.println("three times my age is " + z);

   

   }

  }

You might be interested in
Following in each of the following three mechanisms, the crank is the input link, 1) draw vectors with labeled angles 2) write t
elena-14-01-66 [18.8K]

<u>Explanation:</u>

1.\theta_{4}=90^{\circ}, \theta_{1}=\theta^{\circ} (diagram)

2.

vector loop equation is

\overline{R_{1}}+\overline{R_{2}}+\overline{R_{3}}=\overline{R_{4}}\\

the exponential form,

r_{1} e^{j \exp (0)}+r_{2} e^{j \theta_{2}}+r_{3} e^{j \theta_{3}}=r_{4} e^{j(90)}

e=\cos \theta+j \sin \theta

3.

Real part,r_{1}+\ r_{2} \cos \theta_{2}+\ r_{3} \cos \theta_{3}=0   (i)

Imaginary part,0+r_{2} \sin \theta_{2}+r_{3} \sin \theta_{3}=r_{4}     (ii)

From above equation,we get unknown variables,

Now,\theta_{2}, \theta_{3} \& r_{4}

If \theta_{2} is given,

From (i), \theta_{3}=\cos ^{-1}\left(\frac{-r_{1}-r_{2} \cos \theta_{2}}{r_{3}}\right)

and from (ii), we get

x_{4}=r_{2} \sin \theta_{2}+r_{3} \sin \left[\cos ^{-1}\left(\frac{-\gamma_{1}-r_{2} \cos \theta_{2}}{r_{3}}\right)\right]

8 0
4 years ago
Acquisition of resources from an external source is called?
densk [106]

Answer:

subcontracting

Explanation:

I hope this is right

6 0
3 years ago
Jordan's dad made a new recipe for dinner. Jordan looked at the food and saw that it was white, yellow, and purple in color. She
zhenek [66]

Answer:

Jordan used her eyes to see the food, her touch to feel the food, and her nose to smell the food, and lastly, but most importantly, she used her mouth to taste the food.

7 0
2 years ago
Which of the following activities could be considered unethical?
Zigmanuir [339]

Answer: u slap birds

Explanation: u order cheeseburgers with n cheese

8 0
3 years ago
Match each context to the type of the law that is most suitable for it.
Bas_tet [7]

Answer:

sorry i dont understand the answer

Explanation:

but i think its a xd jk psml lol

5 0
3 years ago
Other questions:
  • Which option should the engineers focus on as they develop the train in the following scenario?
    12·1 answer
  • The time to failure for a gasket follows the Weibull distribution with ß = 2.0 and a characteristic life of 300 days. What is th
    13·1 answer
  • Can you tell me important facts about Peggy A. Whitson?
    5·1 answer
  • A steam turbine receives 8 kg/s of steam at 9 MPa, 650 C and 60 m/s (pressure, temperature and velocity). It discharges liquid-v
    7·1 answer
  • . Steam is to be condensed from saturated vapor to saturated liquid in the condenser of a steam power plant at a temperature of
    5·1 answer
  • (a) Design a low-pass filter with a cutoff frequency of 12 kHz. Use0.15 uF capacitor and an appropriate resistor. B) Sketch and
    15·1 answer
  • Determine the average and rms values for the function, y(t)=25+10sino it over the time periods (a) 0 to 0.1 sec and (b) 0 to 1/3
    9·1 answer
  • F1 or MotoGP which one do u guys prefer.
    9·1 answer
  • ______________ help protect the lower legs and feet from heat hazards like molten metal and welding sparks. A) Safety shoesB) Le
    7·1 answer
  • Describe how you would control employee exposure to excessive noise in a mining environment
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!