Answers

Answer 1

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


Related Questions

What are some ways to change column width? Check all that apply.
clicking and dragging the border between the column names
clicking and dragging the column letter
double-clicking a column, clicking Width, and then clicking OK
selecting a column, clicking the Format drop-down list in the Cells group, and then clicking AutoFit Column Width
right-clicking a selected column, clicking Column Width, typing the width in numbers, and clicking OK
selecting a column, clicking the Width drop-down list in the Format group, and then clicking AutoFit

Answers

Answer:

A D E are the right answers

Explanation:

why is updating your anti-virus a good thing?

Answers

Answer:

Antivirus vendors play a 'cat and mouse' game with malware creators. As malware is discovered definitions are written to discover the program and other programs written in a similar way. If an existing piece of malware is extensively rewritten or a new piece of malware is created, the existing malware definitions are unlikely to detect the program as malicious. This means that antivirus vendors have to find a 'sample' of the new malware being used and create a new definition for it. When you update your anti-virus these malware definitions are downloaded allowing your antivirus to detect this newer malware and keeps your computer secure from these newer threats.

Yes! It helps prevent any virus’s from happening and it’s power would be stronger to keep our viruses

Lower doses blank causes confusion and memory loss and hallucination

Answers

The guy above me is correct use him or her :)

Which method is the quickest for removing multiple different indent types applied to a paragraph?
O Drag the left and right indent markers back to their respective positions against the page margins.
O Launch the Paragraph djalog box and clear the values for the left and right indents and set Special indents to "none."
O Press Ctrl+Q on your keyboard to clear paragraph formatting.
O Click the indent markers and drag them off the horizontal ruler.
Mark this and retum
Next
Submit ASAP

Answers

Answer:

c

Explanation:

Press Ctrl+Q on your keyboard to clear paragraph formatting is the quickest for removing multiple different indent types applied to a paragraph.

What is paragraph?

A paragraph is a self-contained unit of speech in writing that addresses a certain subject or idea. Though paragraphs are not needed by the orthographic standards of any language with a writing system, they are a common way of structuring long portions of prose. The earliest classical British and Latin writing was boustrophedon, with little or no gap between words. Text direction (left to right) became standardised over time, as did word dividers and terminal punctuation.

To delete the paragraph's formatting, press Ctrl+Q. The Ctrl+Q key in various programmes can be used to terminate the programme or close the programme window. To utilise the keyboard shortcut Ctrl+Q, press and hold either Ctrl key on the keyboard, then press the "Q" key with either hand while continuing to hold.

So, C is correct.

To learn more about paragraph
https://brainly.com/question/27243200

#SPJ2

While working on a group project, you notice something does not look right in the presentation. You call a meeting with your team. At the meeting, everyone works together to identify what is missing, define what needs to be done, and assign tasks.
What is this called?

Answers

Answer:

Teamwork

Explanation:

What are some of the current trends in fashion?
For women,____tote bags and high-heeled sandals are popular now. For men, ____colors are the new trend. Bomber jackets and prints are also a fad among ____.

1.oversized
Tattered
Pocket sized

2.muted
Pastel
Bright

3.men
Women
Children

Answers

Answer:

1. pocket sized

2. muted

3. children

Full Paragraph :

For women, pocket sized tote bags and high-heeled sandals are popular now. For men, muted colors are the new trend. Bomber jackets and prints are also a fad among children.

Yeah that's basically the new trends in fashion. =v=  

I think its oversized, bright and men but i may be wrong sorry

9. Alcohol begins to affect your brain
O With the first drink
O Depending upon what you have eaten that day
Only if you are drinking under-aged
O After the second or third drink

Answers

Answer:

With the first drink

Explanation:

In which case will the linear search return the lowest value faster than the
binary search?

Answers

Answer:

A linear search is one that scans every record/file until it discovers the value being searched for.

Binary search, on the other hand, is also known as Logarithmic search. It is used to locate the position of a value inside an array that has already been sorted.  

The linear search will return the lowest value faster than the binary search when small arrays are involved.

This will only be feasible when the array is sorted prior.

Cheers!

In the story, what are the song pauses a metaphor for?
O A. The necessity of pausing before speaking
B. The idea that life is reflected in song lyrics
C. The idea that making rock music is tiring
D. The need to slow down more often in life
Need help ASAP !!

Answers

Answer:

D. The need to slow down more often in life.

The song pauses as a metaphor for the need to slow down more often in life. Thus, the correct option for this question is D.

What is Metaphor?

A metaphor may be characterized as a type of figure of speech that significantly elaborates an object or action in a way that is not literally true but still helps in explaining an idea or constructing a comparison. It generally involves the sense of comparison between two objects.

According to the context of this question, the song pauses as a metaphor for representing the aspect of slowing down things more often in life. This is because it involves the sense of comparison which eventually slows down the process at its actual rapid pace.

Therefore, the song pauses as a metaphor for the need to slow down more often in life. Thus, the correct option for this question is D.

To learn more about Metaphor, refer to the link:

https://brainly.com/question/9418370

#SPJ7

Dell XPS 15 or MacBook pro 13?​

Answers

Answer:

MacBook Pro 13

Explanation:

Mostly cause of the brand.

And also I have a MacBook pro

Answer:

I think I would pick a MacBook Pro 13

Explanation:

The reason why is because personally I like apple products alot and Im not saying that Dell products are bad but I think apple products are just better. Also they do look the same but its really up to you to decide which brand you like better. If  you had more experince with one brand you might want to stick with it or if you have experinced with both brands you should decide which you liked better.

vectors
Pre-Test
Active
1
2
3
4
5
6
THE REMAINI
24:13
Two vectors, X and Y, form a right angle. Vector X is 48 inches long and vector Y is 14 inches long. The length of the resultant
vector is
inches.​

Answers

Answer:

[tex]c { }^{2} = a ^{2} +b {}^{2} [/tex]

[tex]c {}^{2} = 48 {}^{2} + 14 {}^{2} [/tex]

[tex]c {}^{2} = 2304 + 196[/tex]

[tex]c {}^{2} = 2500[/tex]

[tex]c = 50[/tex]

An item with both magnitude and direction is referred to be a vector. A vector can be visualized geometrically as a directed line segment, with an arrow pointing in the direction and a length equal to the magnitude of the vector.

What is Vector?

The vector points in a direction from its tail to its head. If the magnitude and direction of two vectors match, they are the same vector.

This indicates that if we take a vector and move it to a different point (without rotating it), the vector we finish up with is the same vector we started with.

The vectors that denote force and velocity are two examples. The direction of force and velocity are both fixed. The size of the vector would represent the force's strength or the velocity's corresponding speed.



Therefore, An item with both magnitude and direction is referred to be a vector. A vector can be visualized geometrically as a directed line segment, with an arrow pointing in the direction and a length equal to the magnitude of the vector.

To learn more about vector, refer to the link:

https://brainly.com/question/13322477

#SPJ7

Explain how Icd 10 cm codes can help identify a patient’s health conditions?

Answers

The ICD-10-CM (International Classification of Diseases, Tenth Revision, Clinical Modification) is a system used by physicians and other healthcare providers to classify and code all diagnoses, symptoms and procedures recorded in conjunction with hospital care in the United States

Higher resolution images mean they can be enlarged better,
True or false

Answers

Answer:

False

Explanation:

High resolution just mean It looks better

False: Higher resolution images doesn’t mean they can be enlarged better

There are several vehicles in a parking lot. Some of them are motorcycles
(with 2 wheels), and some are cars (with 4 wheels). There are 11 vehicles in
the lot, and there are 34 wheels. How many vehicles of each type are in the
lot?
O A. 7 motorcycles and 5 cars
B. 5 motorcycles and 6 cars
C. 6 motorcycles and 5 cars
D. 4 motorcycles and 7 cars​

Answers

Answer:

The answer is 34.

Explanation:

Look at the pic.

Answer:

B

Explanation:

5*2=10

6*4=24

24+10=34 wheels

5+6=11 vehicles

pls mark brainliest

waste water cannot be reversed? f or true​

Answers

Answer:

yes

Explanation:

Recycling, reducing waste and reusing can prevent pollution, because it reduces the need to harvest new, raw materials. It can also help reduce greenhouse gas emissions , save energy and allows products to be used to their fullest extent while reducing waste.

Answer:

true

Explanation:

Organisms are classified as producers or consumers acorrding to the way they
A)obtain
B)release wastes
C)produce offspring
D)move from place to place

Answers

A)obtain
as the rest are irrelevant to the given options and cannot be classified as release waste produce offspring or move from place to place are classifications of biotic or abiotic

There are 30 students in Alison's math class. She wants to bring 3 gallons of
juice to the end-of-year celebration. If each gallon of juice costs $5, how
much will Alison spend?
O A. All the information is needed.
B. Alison wants to bring 3 gallons of juice.
O
C. Each gallon of juice costs $5.
D. There are 30 students in Alison's math class.​

Answers

The answer is d there are 30 students in alisions math class and it’s how it goesss

Vehicle balance________
A. depends on your vehicle operating space
B. cannot be reached
C. is not affected by sudden acceleration
D. varies from vehicle to vehicle

Answers

I would say it’s D.

Vehicle balance varies from vehicle to vehicle. Therefore, option (D) is correct.

What is Vehicle balance?

Vehicle balance refers to the stability of a vehicle while in motion and its ability to maintain control and direction. The balance of a vehicle can be affected by a number of factors, such as the weight distribution, suspension, and tire wear.

The balance of a vehicle varies from vehicle to vehicle and depends on the design, construction and the state of maintenance of the vehicle. Factors such as sudden acceleration, the size of the vehicle and its operating space can also impact the balance of the vehicle. However, it is always important to maintain the balance of the vehicle by regular check ups and maintenance to ensure the safety of the driver and passengers.

Learn more about vehicle balance, here:

https://brainly.com/question/14307249

#SPJ2

in javascript, what can I put after player. to make my character go in the center of the screen? like example:

to put it at the bottom of the screen you put player.bottom(): to put it to the right of the screen you put player.right(): please help me i will mark brainlyest for the 1st correct answer

i need to put my character in the center of the screen

Answers

Answer:

0,0

Explanation:

you could try to use the x-axis and y-axis to put your character in a certain place. I'm not totally sure if that is how javascript works, but for the x-axis and y-axis, the center is always(0,0).

Software that interprets commands from the keyboard and mouse is also know as the

Answers

Answer:

The answer is option c

operating system

Hope this helps.

C; operating system :) hw

7

A CD holds 650 MB of data. A DVD holds 4 GB of data. How many CDs would you need

to equal one DVD

Answers

Answer:

Number of CDs = 7

Explanation:

We know that

1 GB = 1024 MB

So it means the 4 GB of data can be interpreted as:

4 GB = 1024*4 MB

4GB = 4096 MB

So a DVD hold 4096 MB of data while a CD holds 650 MB of data.

We need to find how many CDs could hold 4096 MB of data, to make it equivalent to a DVD

Number of CDs = 4096/650

Number of CDs= 6.3

As a CD can not be 0.3, a whole 1 CD will be used.

Number of CDs = 7

6. One 15 A general-purpose circuit should be installed per how many square feet of floor space?

O A. 750

OB. 400

O C. 600

O D. 500

Answers

Answer:

It will be as 600 square feet is the most satisfying

Answer:

Your answer option is C) 600

For which programming task would you use a for loop?
A. Computing the average of a list of integers of unknown length
B. Counting the vowels in a document of unknown length
C. Generating a list of the anagrams in a word Printing a specified number of integers in a list
D. Printing a specified number of integers in a list

Answers

Answer:

A. Computing the average of a list of integers of unknown length

what do u guys think of the coronavirus? and how has it affected ur life? thank you! :) :3

Answers

hella annoying anyways it's effected a lot of things, for example me not being able to see my friends and me not being able to get proper education
I believe the virus is a man made disease , because every 100 years on the year 20 a new deadly virus is shown. It has affected my life bc it has forced me to stay home. Allowing my anger issues to spiral more and my anxiety to spiral more.

1. The precious metals needed to make computer chips, graphic cards, and transistors are found in only a small population of countries. What economic implications does this have for the countries that have these metals to mine?

Answers

Answer:

it means that they can charge companies to come mine it making them more wealthy they can also upscale the materials needed to make it as they are the only countries that sell it so they have no one to compete with

According to data from the UN, China produces the most semiconductor chips worldwide. China has developed into a significant worldwide production hub for microelectronics, and the electronics value chain, which encompasses consumer electronics and ICT, has become more regionalized over time.

Which industries are affected by chip shortages?

Numerous industries are impacted by the scarcity of semiconductor chips, including automotive, data centers, video games, and others. You probably learned about the global scarcity of semiconductor chips or were personally impacted by it if you were considering buying a new or used car over the past 18 months.

In 2021, experts predict that the worldwide chip shortage will cost the American economy $240 billion. The Commerce Department reports that some American manufacturers have inventory that is only good for a few days. A chip scarcity is generating major problems at Optimal Design, which is located near Chicago.

Learn more about Computer Chips here:

https://brainly.com/question/23261568

#SPJ2

What process is a project manager doing when she or he defines and documents the stakeholders' needs to meet the project objectives?

Answers

The person is organizing the docs

Writa function to read content from "Zone. txt" and write it into another file "zone1. txt" by reversing each line if the line starts with A​

Answers

Answer:

You have specified no language. Here's an algorithm to follow with most platforms, my example is in NodeJS

const fs = require('fs');

let zone = fs.readFile('Zone.txt', 'utf8', function (err, data) {

 if (err) throw new Error(err);

 data = data.toString(); //convert the buffer to a string

 let lines = data.split("\n"),

       content = [];

 for (i in lines) {

   let l = lines[i];

   if (l.toLowerCase().startsWith("a")) l = reverseString(l);

   content.push(l);

 }

 content = content.join("");

 fs.writeFile('zone1.txt', content, , function (err) {

   if (err) throw new Error(err);

 }

});

function reverseString (str) {

   return str.split("").reverse().join("");

}

What is the area of rectangle URST?
24 mm
48 mm
135 mm2
144 mm2​

Answers

Answer:

135 mm²

Explanation:

Rectangles A B C D and U R S T are congruent. The length of sides A B is 9 millimeters and the length of sides R S is 15 millimeters.

What is the area of rectangle URST?

Answer: Two rectangles are said to be congruent if the size of their sides are equal. If Rectangles A B C D and U R S T are congruent, this means that AB = UR, BC = RS, CD = ST and AD = UR

Given that:

AB = 9 millimeters and the length of sides RS = 15 millimeters.  

Area of rectangle URST = length × breadth =  UR × RS

but since ABCD and URST are congruent, UR = AB. Therefore:

Area of rectangle URST = length × breadth =  AB × RS = 9 mm × 15 mm = 135 mm²

Answer:

C 135 MM2

Explanation:

Got it right on edge2020

An employee believes there is an imminent danger situation at her workplace. She contacts OSHA to report the safety hazard. Her employer finds out that she has reported the issue and threatens to fire her. Which of these is a correct statement about the situation?

Answers

Answer:

Here's all I know

Explanation:

OSHA stands for the Occupational Safety and Health Administration, an agency of the U.S. Department of Labor. OSHA's responsibility is worker safety and health protection. The U.S. Congress created OSHA under the Occupational Safety and Health Act of 1970 (the OSH Act). Congress passed the law and established OSHA "to assure so far as possible every working man and woman in the nation safe and healthful working conditions and to preserve our human resources.

OSHA began because, until 1970, there were no national laws for safety and health hazards.

What is the first step in setting paragraph or line spacing and their options?
Find the correct option that suits the situation.
Launch the Paragraph dialog box before doing anything
Select the text you wish to apply the setting to.
O Position the cursor at the beginning of the document.
W
ASAP

Answers

Answer:

Launch the paragraph dialog box before doing anything

The first step in setting paragraph or line spacing and their options is;

Option C; Select the text you wish to apply the setting to.

If we want to set up a paragraph of an existing statement in MS Word, the first thing we have to do will be to identify the particular text that requires the paragraph. This is because we cannot just use the tab key or indent option without a reference for what we want to paragraph.

Similarly, when we want to change the spacing of a text, depending on the spacing you want to use, you have to first select the text in which you want to apply the spacing. This is because if you click on the spacing you want without first selecting the text, the spacing will not be effected on the text you want.

Read more at; https://brainly.com/question/14135636

Other Questions
What is the fourteenth century word for diseases? a. illness c. sijknessis b. wymmen d. plague Please help stuck on this question Solve for xA) -8B) 3.5C) 8D) 26 11. In a group of six young pupils the mean weekly amount of pocket money is 5. When a new pupil joins, the mean weekly pocket money increases to 6. What does the new pupil receive each week ? Jack has a part time job selling clothes at a clothing store. He earns$50 per week plus 10% of the value of her weekly sales. This week Jackearned $250. What is the total value of his sales this week? * A sports physician conducts an observational study to learn the average amount of time that 3,000 swimmers in the town can hold their breath underwater. He uses 150 sampling of 60 people. The average of the means of all the samplings is 72.7, and the standard deviation is 0.92. This is a histogram of the sampling distribution of the sample mean Lily wants to build a business. She has very little capital. She does, however, have a partner with which she could run a business. Lily wants to be able to avoid being held personally liable for any problems the business has. Which of the following would lead Lily to choose a sole proprietorship organization for her business?a. Possession of a partner b. Little capital c. Avoidance of personal liabilityd. None of the above Michelle purchased a sofa that was on sale for $125 off. The original price of the sofa was $515. What was the sale price of the sofa? The ratio of the number of roses to the number of daises in a garden is 4:3. If there are 42 daises in the garden, how many roses are in the garden? Which describes a way the federal government tried to give blacks full civil rights during congressional Reconstruction?It appointed Ku Klux Klan officials to oversee elections. It outlawed the discriminatory system of sharecropping. It turned over all slaveowners' property to freed blacks. It sent U.S. army units south to enforce the law. 1a. What is a noun phrase? (3 marks)b. What is the relationship between a noun and a noun phrase? (3 marks)c. Name 4 components of a noun phrase. (2 marks)d. What is the head word in a noun phrase? (2 marks)2. Give the function of the underlined phrases in the sentences below.a. All the rotten baskets of tomatoes have been thrown away.b. Tomilola gave her mother a beautiful gold trinket box.c. Joan is a smart little girl.d. We have eaten most of the bananas in the fridge.e. I couldnt pick any reasonable opinion from your suggestions. Which quantity Has the same unit as potential difference PLZ SEE ATTACHED AND I WOULD REALLY APPRECIATE IT! ANYONE GOOD WITH CHEM Moonlight Bay Inn is incorporated on January 2, 2014, by its three owners, each of whom contributes $20,000 in cash inexchange for shares of stock in the business. In addition to the sale of stock, the following transactions are entered into during the month ofJanuary:January 2: A Victorian inn is purchased for $50,000 in cash. An appraisal performed on this date indicates that the land is worth $15,000, and the remaining balance of the purchase price is attributable to the house. The owners estimate that the house will have an estimated useful life of 25 years and an estimated salvage value of $5,000.January 3: A two-year, 12%, $30,000 promissory note was signed at the Second State Bank. Interest and principal will be repaid on the maturity date of January 3, 2019.January 4: New furniture for the inn is purchased at a cost of $15,000 incash. The furniture has an estimated useful life of 10 years and no salvage value.January 5: A 24-month property insurance policy is purchased for $6,000 in cash.January 6: An advertisement for the inn is placed in the local newspaper. Moonlight Bay pays $450 cash for the ad, which will run in the paper throughout January.January 7: Cleaning supplies are purchased on account for $950. The bill is payable within 30 days.January 15: Wages of $4,230 for the first half of the month are paid in cash.January 16: A guest mails the business $980 in cash as a deposit for a room to be rented for two weeks. The guest plans to stay at the inn during the last week of January and the first week of February.January 31: Cash receiptsfrom rentals of rooms for the month amount to $8,300.January 31: Cash receiptsfrom operation of the restaurant for the month amount to $6,600.January 31:. Each stockholder is paid $200 in cash dividends.Required 1. Prepare journal entries to record each of the preceding transactions. Dont forget the stock.2. Post each of the journal entries to T accounts.3. Prepare adjusting journal entries for each of the following transactions as of January 31.a. Depreciation of the houseb. Depreciation of the furniturec. Interest on the promissory noted. Recognition of the expired portion of the insurancee. Recognition of the earned portion of the guests depositf. Wages earned during the second half of January amount to $520 and will be paid on Feb. 3g. Cleaning supplies on hand on January 31 amount to $230h. A utility bill is received amounts to $740 and is payable by Feb. 5i. Income taxes are to be accrued at a rate of 30% of income before taxes4. Post each adjusting journal entry to T accounts5. Prepare the following financial statements: a. Income statement for month ended January 31 b. Statement of retained earnings for the month ended January 31 c. Balance sheet at January 316. What are your reactions to Moonlights first month of operations? Is the bank comfortable with the loan it made? What are angles 3 and 4 called in the diagram below ?A. vertical angles B. Alternate exterior anglesC. Alternate interior angles D. Corresponding Angles Please help me with this California Surf Clothing Company issues 1,000 shares of $1 par value common stock at $32 per share. Later in the year, the company decides to Purchase 100 shares at a cost of $35 per share. Record the transaction if California Surf resells the 100 shares of treasury stock at $37 per share HELPPPPPPP!!Capillaries do not have a tunica media layer. This implies which of the following about capillaries? Capillaries cannot close their valves. Capillaries cannot dilate or contract. Capillaries do not have an outer layer of connective tissue. Capillaries do not contain an inner layer of endothelial tissue. name 2 nature subtopics Factor completely: 32 + 10. A cell phone company is offering 2 different monthly plans. Each plan charges a monthly fee plus an additional cost per minute. Plan A: $ 40 fee plus $0.45 per minute Plan B: $70 fee plus $0.35 per minute a) Write an equation to represent the cost of Plan A b) Write an equation to represent the cost of Plan B c) Which plan would be least expensive for a total of 100 minutes?*Please Show Work*