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
Enables businesses and consumers to share data or use software applications directly from a remote server over the Internet or w
Sindrei [870]

Answer:

Cloud Computing        

Explanation:

Cloud Computing is basically an infrastructure to deliver various computing resources and services  to the users online (via Internet). These resources include networks, applications, servers, databases, software, storage etc.

These services are mostly utilized by organizations for recovery and backup of data, using virtual hardware and other computing resources such as desktops, memory etc. Cloud computing is also used for developing software, for securing data by providing with access control and for storing bulk of data.

The benefits of cloud computing are as following:

Because of cloud computing the customers do not have to buy hardware or install software on their computer which might be very costly to maintain and update. Servers and data centers are provided by cloud service providers and experts are available for managing the services and resources.

These services are scalable and can be adjusted as per the users requirements.

Cloud computing offers a variety of protocols, tools, and access controls that improve security and protects confidential data, applications, and networks against security threats and attacks. It also provides with data backup, disaster recovery.

5 0
3 years ago
 Formulas within table cells always begin with
Delicious77 [7]
(D) I don't know about other spread sheet software, but in Microsoft Excel, a formula is always entered beginning with an 'equals' sign. ( = ).
4 0
3 years ago
What is spam? electronic junk mail e-mail abuse e-mail subscriptions the e-mail server the opt out feature unethical use of e-ma
expeople1 [14]

Answer:

electronic junk mail.

Explanation:

7 0
3 years ago
While conducting a vulnerability assessment, you're given a set of documents representing the network's intended security config
Sophie [7]

Answer:

The baseline review

Explanation:

Solution:

The baseline review: this can be defined as the gap analysis or the beginning environmental review (IER). it is an assess study to get information about an organisation's present activities and associated environmental impacts,  impacts and legal requirements.

This review issues an overview of the quality and weaknesses of an organisation’s environmental execution and opportunities for improvement.

6 0
3 years ago
If the audio has no sound:
Mice21 [21]

Answer:

B

Explanation:

the file to be transcribes should have an audio,it maybe a scam,so you have to file a report.

6 0
3 years ago
Other questions:
  • Which activity constitutes legal computer activity?
    12·1 answer
  • What component of a computer system holds the operating system when the computer is not running
    6·2 answers
  • As long as users refer to files in the ____ directory, they can access the files without entering the absolute filename.
    10·1 answer
  • The website of an international human rights organization stores a large database of information and provides search functionali
    15·1 answer
  • Which of the following occurs when the amount of money earned is greater than the
    5·1 answer
  • What are non-examples of wage and salary?
    7·1 answer
  • Who wrote Hamlet? <br><br>Brainliest for the right answer​
    12·2 answers
  • Need the answer ASAP!!! I’ll mark brainliest if correct
    5·1 answer
  • 3. Answer the following questions.
    14·1 answer
  • ---------- is a flat fish which swims using its huge side fins.​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!