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
Dvinal [7]
3 years ago
12

Plz help me in this example

Computers and Technology
1 answer:
Gekata [30.6K]3 years ago
4 0

Answer:

import java.util.*;

public class calcarms

{

public static void main(String [] args)

{

 Scanner input = new Scanner(System.in);

 //Declare Variable

 int num;

 //Initialize num to 0

 num = 0;

 //Print heading

 System.out.println("Armstrong Numbers\t\tDifference between Successive Armstrong Numbers");

 //Call Armstrong method

 boolean result = Armstrong(num);  

}

public static boolean Armstrong(int num)

{

 int nums;

 //Initialize old_Arms and new_Arms to 0

 int old_Arms =0; int new_Arms = 0;

 for(int i = 0;i<=500;i++) //Iterate from 0 to 500

 {

  nums = i;

 int temp,calc = 0;

 temp = nums;  

  //Check individual digit of each number

 while(nums > 0)

 {

  int a=nums%10;  

  nums/=10;

  calc+=(a*a*a);//Find cube of number

 }

 if(temp == calc) //Check if number is armstrong

 {

  new_Arms = calc;

  old_Arms = new_Arms - old_Arms;

  System.out.println(calc+"\t\t\t"+old_Arms);//Print

  old_Arms = calc;      

 }

 }

 return true;  

};

}

Explanation:

Comments are used to explain difficult lines

You might be interested in
Call of duty vanguard, war zone , fornite, gta what’s your favorite
tia_tia [17]
Warzone easily but gta a close second
8 0
3 years ago
What is Telerobotic?
Dennis_Churaev [7]

Answer:

Telepresence refers to a set of technologies which allow a person to feel as if they were present, to give the appearance that they were present, or to have an effect, at a location other than their true location. Teleoperation is the operation of a machine at a distance.

Explanation:

4 0
3 years ago
Read 2 more answers
To create a query string, you add a ____ immediately after a url, followed by the query string.
salantis [7]
The answer is question mark (?).  To create a query string, you add a question mark (?) immediately after a url, followed by the query string.
5 0
3 years ago
Explain 2 ways in which data can be protected in a home computer??
Nonamiya [84]

Answer:

The cloud provides a viable backup option. ...

Anti-malware protection is a must. ...

Make your old computers' hard drives unreadable. ...

Install operating system updates. ...

3 0
3 years ago
( BRANLIEST)
Irina-Kira [14]

Answer:

A monitor is an electronic output device that is also known as a video display terminal <em><u>(VDT) or a video display unit (VDU). It is used to display images, text, video, and graphics information generated by a connected computer via a computer's video card. Although</u></em> it is almost like a TV, its resolution is much higher than a TV. The first computer monitor was introduced on 1 March 1973, which was part of the Xerox Alto computer system.

Older monitors were built by using a fluorescent screen and Cathode Ray Tube (CRT), which made them heavy and large in size and thus causing them to cover more space on the desk. Nowadays, all monitors are made up by using flat-panel display technology, commonly backlit with LEDs. These modern monitors take less space on the desk as compared to older CRT displays.

8 0
3 years ago
Read 2 more answers
Other questions:
  • Hannah had been a newspaper carrier for four years. Each year she delivered more papers then the year before. The first year she
    13·1 answer
  • What Is the output of the following: =OR (5 &lt;7, 16*Rand ()&gt;23,FALSE)
    5·1 answer
  • Write a statement that declares a PrintWriter reference variable named output and initializes it to a reference to a newly creat
    5·1 answer
  • What is the prediction in technology for the future?
    6·1 answer
  • A common type of non-volatile memory is _____.
    12·1 answer
  • Rapid development programming languages eliminate the possibility of having bugs in code. True or False
    8·1 answer
  • 6) RAM, 5 main memory<br>which storage conbe used<br>as permanent storage<br>Rom<br>a) R<br>)​
    8·2 answers
  • Assume the list numbers1 has 100 elements, and numbers2 is an empty list. Write code that copies the values in numbers1 to numbe
    15·1 answer
  • Are scripted languages easier or more difficult to port than programming languages? Why?
    6·1 answer
  • Who is known as the first computer programmer?​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!