Determining the sum of the cubes of the digits

Assignment Help Business Management
Reference no: EM131036735

Write a program using while loop that can read an integer number and determines whether the sum of the cubes of the digits is equals to the number itself. display a message indicating whether the sum of the cubes is equal or not equal to the number.

For example, if the number 563 is entered as input, the sum of the cubes of the digits is 5^3 + 6^3 + 3^3 = 125+ 216 +27 = 368 which is not equal to 563.

On the other hand, if the number 371 is entered as input, the sum of the cubes of the digits is 3^3 + 7^3 + 1^3 = 27 + 343 + 1 = 371 which equal to 371.

The program will be repeated until input number is equal to the sum of the cubes.

Reference no: EM131036735

Questions Cloud

Macro to move to a particular cell : 1.Get the macro to move to a particular cell (the Range statement) 2. Fill that cell with a value 3. Store the value in a variable (call it x)
Specific aspects of that brand establish its brand equity : Identify a specific brand that has developed a high level of brand equity. What specific aspects of that brand establish its brand equity? Online marketing research seems to be the wave of the future. What drawbacks do you see associated with online ..
Scientific misconduct and breaches of medical ethics : During the last months, there has been a lively media coverage concerning the case of surgeon Paolo Macchiarini who has been accused of scientific misconduct and breaches of medical ethics. I would like you analyze the behavior of Macchiarini and the..
Streamlining the note-taking process : When an instructor writes on a(n) ________ whiteboard, all information can be sent to a PC, simplifying and streamlining the note-taking process for meetings and classes.
Determining the sum of the cubes of the digits : Write a program using while loop that can read an integer number and determines whether the sum of the cubes of the digits is equals to the number itself. display a message indicating whether the sum of the cubes is equal or not equal to the numbe..
The party would be improved with a bonfire : Boris and his friends decide to hang out in a local park one night. Boris decides, after a few beers, that the party would be improved with a bonfire. Unfortunately, the bonfire gets out of control and sets off wildfire that burns about 5,000 acres o..
Write an essay that explain usa constitutional freedom : Write an essay that Explain united state of America constitutional freedom.
Definition for a constructor for the class : Write the definition for a constructor for the class Tournaments, whereby the variables eventName and numGames are initialized according to parameters, eventName and numGames, respectively.
Why and how are users mental models buggy : How are HCI researchers designing everyday or office-based devices and applications to be "attention aware" and not to interrupt or distract their human users at the wrong moment?

Reviews

Write a Review

Business Management Questions & Answers

  Perform sales analysis

In the following project, you will perform sales analysis, calculate summary data using database functions, and complete an amortization table.

  Demonstrate a plan to get the firm back into good standing

You are the new department manager for a utility company, replacing a longtime manager who failed to address internal theft and accounting indiscretions that have become public knowledge and cause for legal action against some ex-employees. to ..

  Environmental sustainabilityshow the concept of

environmental sustainabilityshow the concept of environmental sustainability. discuss the challenges to sustainability

  Sequential designs versus concurrent research designs

drawbacks of using sequential designs versus concurrent research designs?

  What is the purpose of the calculation of the cpi

What is the purpose of the calculation of the CPI?

  Evaluate integrated asset allocation

Evaluate, compare, and contrast  Integrated asset allocation and  Strategic asset allocation.

  What differences are evident between the two companies

What differences are evident between the two companies in terms of the range of issues dealt with in the reports and the depth of coverage on specific issues

  Managing changedescribing an organizational change that

managing change.describing an organizational change that your organization is likely to make e.g. new structure new

  Explain role of cpa vs employee in preparing financialsthe

explain role of cpa vs employee in preparing financialsthe majority stockholder of a small corporation tells you the

  Monthly mortgage payment

You have just purchased a primary home for $345,000 with a 20% down payment on a 30-year Fixed Rate Mortgage, Monthly Payments, 3.625% Interest Rate. Property Taxes are 100 Mills with 75 Effective Mills. Fees for this loan are $2250 and it cost 2 ..

  Market share growth and product diversification

Which course of action seems preferable? In answering, please cite one or more examples of companies that exhibit these approaches.

  Explain how does eharmony define its market segment

Explain how does eHarmony define its market segment? Illustrate what strategy or strategies does eHarmony use to target one particular segment?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd