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

When entering data in Access if the data is entered using an Access form, that data is stored in a table or tables. TRUE FALSE

Answers

Answer:

The answer is true, the data is stored in tables.

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

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



Tech A says that no matter which way the vehicle turns, the inside wheel must always turn less sharply than the outside wheel. Tech B says that the

Ackermann principle angles the steering arms toward the center of the rear axle. Who is correct?


A Tech A


B Tech B

C Both A and B


D Neither A nor B

Answers

D would hxh vigil be correct

The Ackermann level of a vehicle's steering geometry is expressed as a percentage, with 100% Ackermann denoting that the angle of steer difference between the inside and outside tyres exactly matches the geometric low-speed turn center. Ackermann or Anti-Ackermann are rarely used in full force in racing vehicles. Thus, option B is correct.

What Ackermann principle angles the steering arms?

In the picture on the left, the steering arms are slanted inward to provide a way for the wheel angles to change more slowly. This causes the wheels to turn at an uneven angle and is the basis of the Ackerman Steering Principle.

As you turn the wheel, the steering wheel's shaft also revolves. This then rotates the pinion, which is situated on top of the rack. While the tie rod is moved by the rotation of the pinion, the rack moves linearly. The tie rod connected to the steering arm then causes the wheel to revolve.

Therefore, Ackermann principle angles the steering arms toward the centre of the rear axle.

Learn more about Ackermann here:

https://brainly.com/question/29676606

#SPJ5

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

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.

A5.3 1012 kg satellite is 1,800 m from another satellite that has a mass of 3.5 x 108 kg. What is the gravitational
force between the satellites?
3.82 x 104N
6.87 x 107 N
5.72 x 1014 N
0 1.03 x 1018 N​

Answers

Answer:

[tex]F = 3.82 * 10^4N[/tex]

Explanation:

Given

Mass of satellite 1 = 5.3 * 10¹²kg

Mass of satellite 2 = 3.5 * 10⁸kg

Distance between them = 1,800 m

Required

Gravitational Force between them.

The gravitational force between them is calculated as thus;

[tex]F = \frac{Gm_1m_2}{r^2}[/tex]

Where G = Gravitational Constant

[tex]G = 6.67408 * 10^{-11} Nm^2/kg^2[/tex]

[tex]m_1 = 5.3 * 10^{12}kg[/tex]

[tex]m_2 = 3.5 * 10^8kg[/tex]

[tex]r = 1800m[/tex]

Substituting these values in the above formula;

[tex]F = \frac{Gm_1m_2}{r^2}[/tex] becomes

[tex]F = \frac{6.67408 * 10^{-11} * 5.3 * 10^{12}*3.5 * 10^8}{1800^2}[/tex]

[tex]F = \frac{6.67408 * 5.3 * 3.5 * 10^{-11} * 10^{12} * 10^8}{1800^2}[/tex]

[tex]F = \frac{123.804184 * 10^{9}}{3240000}[/tex]

[tex]F = \frac{123804184000}{3240000}[/tex]

[tex]F = 38211.1679012[/tex]

[tex]F = 3.82 * 10^4N[/tex] ---- Approximated

Hence the gravitational force between them is [tex]3.82 * 10^4N[/tex]

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!

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 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

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

2.
What does LAN stand for?
Little area network
Large area network
Local area network
O Locally available network

Answers

Answer:

Local Area Network

Explanation:

A computer network that links devices within a building or group of adjacent buildings, especially one with a radius of less than 1 km.

Option 3 (Local area network)

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

What does a production possibilities curve represent?Which of the following statements are true? Economic stability means fair distribution of goods in an economy. Full employment is a macroeconomic goal. Inflation is a fall in the prices of goods and services. Inflation is a rise in the prices of goods and services. Microeconomics studies the economy as a whole.

Answers

Answer:

What does a production possibilities curve represent?

The Production Possibilities Curve (PPC) is a model used to show the tradeoffs associated with allocating resources between the production of two goods. The PPC can be used to illustrate the concepts of scarcity, opportunity cost, efficiency, inefficiency, economic growth, and contractions.

Which of the following statements are true?

Full employment is a macroeconomic goal.

Answer:

Full employment is a macroeconomic goal.

Inflation is a rise in the prices of goods and services.

Explanation:

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("");

}

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

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:

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

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.

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

Which option lists the correct steps to apply a style?

A. Select the text, click the Home tab, and in the Styles Gallery, click to select a style to apply.
B. Select the text, click the Insert tab, and in the Formatting Gallery, click to select a style to apply.
C. Select the text, click the Home tab, and in the Font group, select a font, font size, and type to apply.
D. All of the options listed above are correct.

Answers

Answer:

B

Explanation:

just took the test

Answer:c

Explanation:

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).

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

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

Lower doses blank causes confusion and memory loss and hallucination

Answers

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

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

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:

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:

Meghla has brought a smartphone with length is 4 unit and breadth is 3 unit, what is the screen size of the smartphone

Answers

Answer:

[tex]12unit^2[/tex]

Explanation:

Assuming that the screen covers the entire area of the smart phone.

[tex]3 * 4 = 12 unit^2[/tex]

Most likely this wouldn't be the case, so the screen size would be at most [tex]12unit^2[/tex]

[tex]0unit^2<size < 12unit^2[/tex]

And would most likely fall under this range of answers.

You multiply 4 by 3 to get the screen size of the smartphone.
Other Questions
Find the missing expressions... (6+4n) - (8+3n) =? And (4+6n) - (3+8n)=? Economics isa social science that studies culturesO an early form of moneyO a social science that focuses on decision-makingO a book by Adam Smith 3a^2 * 2a^3 multiply the monomial For this project, you have to write 3 functions. C++ 1. remove_adjacent_digits. This takes in 2 arguments, a std::vector, and a std::vector of the same size. You need to return a std::vector, where each of the strings no longer has any digits that are equal to, one more, or one less, than the corresponding integer in the 2nd vector. 2. sort_by_internal_numbers. This takes in a single argument, a std::vector, and you need to return a std::vector, which is sorted as if only the digits of each string is used to make a number. 3. sort_by_length_2nd_last_digit. This takes in a std::vector>. It returns a vector of the same type as the input, which is sorted, first by the length of the string in the pair, and if they are the same length, then the second last digit of the int. See the test cases for examples of each of the above functions. You need to submit a single file called main.cpp that contains all these functions. You can (and should) write additional functions as well. There is no need for a main function. No loops (for, while, etc) are allowed. You must use only STL algorithms for this project. An urban economist is curious if the distribution in where Oregon residents live is different today than it was in 1990. She observes that today there are approximately 3,109 thousand residents in NW Oregon, 902 thousand residents in SW Oregon, 244 thousand in Central Oregon, and 102 thousand in Eastern Oregon. She knows that in 1990 the breakdown was as follows: 72.7% NW Oregon, 20.7% SW Oregon, 4.8% Central Oregon, and 2.8% Eastern Oregon.Can she conclude that the distribution in residence is different today at a 0.05 level of significance? a) Yes, because the p-value = .0009. b) No, because the p-value = .0009. c) Yes, because the p-value = .0172. d) No, because the p-value = .0172. What is the best way to put a quotation into a paragraph? 1,Put it at the start of the paragraph, then explain it. 2.Start a new sentence with the quotation, use speech marks around it. 3.Put it into a sentence, embedding it, and introduce who is speaking, when and why. Which two representations are considered to be only partial representations? OThe equation and the verbal description OThe verbal description and the graph OThe table and the equation OThe graph and the table What does the VSEPR theory predict?A. The chemical formula of a moleculeB. The size of a moleculeC. The shape of a moleculeD. The charge of a molecule Using the activity series provided. Which reactants will form products? Na > Mg > Al > Mn > Zn > Cr > Fe > Cd > Co > Ni > Sn > Pb > H > Sb > Bi > Cu > Ag Ag +NaNO3 Right arrow. Fe + Al2O3 Right arrow. Ni + NaCl Right arrow. Fe + Cu(NO3)2 Right arrow. When did the following countries become independent states?IndiaPakistan BangladeshSri Lanka. Describe how the author's language choices show howCharlie changes. Use examples from the story to supportyour answer. In the southern colonies in the 1600s, most people were followers of theA. Orthodox churchB. Anglican churchC. Catholic Church D. Lutheran church Can you guys plsssss help me with the questions plsss my assigment is already due plss help me guys!!!!! Airborne Airlines Inc. has a $1,000 par value bond outstanding with 20 years to maturity. The bond carries an annual interest payment of $102 and is currently selling for $880. Airborne is in a 30 percent tax bracket. The firm wishes to know what the aftertax cost of a new bond issue is likely to be. The yield to maturity on the new issue will be the same as the yield to maturity on the old issue because the risk and maturity date will be similar.a. Compute the yield to maturity on the old issue and use this as the yield for the new issue. (Do not round intermediate calculations. Input your answer as a percent rounded to 2 decimal places.)b. Make the appropriate tax adjustment to determine the aftertax cost of debt. (Do not round intermediate calculations. Input your answer as a percent rounded to 2 decimal places.) Which TERM means that the cell membrane will only let SOME substancesIN/OUT of the cell? Witch of the following is NOT a legal document? A- A U.S Passport B- A library card C- A birth certificate D- A social security card A business will construct its financial statements in a particular order because they are interrelated. This means that items formulated in an earlier statement feed into the subsequent statements, and changes to items on one financial statement can have compounding effects on the overall financial position of a company. Which of the following is one reason the statement of owner's equity is prepared after the income statement?a. Retained earnings are computed on the income statement.b. Net income is the beginning retained earnings amount.c. Retained earnings is really an asset.d. Net income is part of the computation for ending retained earnings. Solve x4 7x2 18 = 0 How many terms in (3x^2-4x+2)-(2x^2-4x-5) North Star prepared the following unadjusted trial balance at the end of its second year of operations ending December 31. Account Titles Debit Credit Cash $ 12,800 Accounts Receivable 6,800 Prepaid Rent 2,560 Equipment 21,800 Accumulated Depreciation $ 1,080 Accounts Payable 1,080 Income Tax Payable 0 Common Stock 25,600 Retained Earnings 2,900 Sales Revenue 52,400 Salaries and Wages Expense 25,800 Utilities Expense 13,300 Rent Expense 0 Depreciation Expense 0 Income Tax Expense 0 Totals $ 83,060 $ 83,060 Other data not yet recorded at December 31: Rent expired during the year, $1,280. Depreciation expense for the year, $1,080. Utilities used and unpaid, $9,800. Income tax expense, $470. Prepare the adjusting journal entries required at December 31. (If no entry is required for a transaction/event, select "No Journal Entry Required" in the first account field.)