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

  Organizational behavior1 consider your current or previous

organizational behavior1 consider your current or previous workplace. share an example of how organizational behavior

  Analyze at least three failed deployments or strategies

Conduct web research focusing upon failed e-business/e-commerce strategies and/or e-commerce systems deployments. (Google "failed e-commerce" and you will find many examples). Try to analyze at least three failed deployments or strategies.

  Submit the peer evaluation report for the evaluations

Submit the peer evaluation report for the evaluations

  Compute its current position in terms company''s key

Compute its current position in terms of two (2) of the company's key competitors and the industry as a whole

  What is the problem of childhood obesity

Child Obesity - What is the problem of childhood obesity, make recommendations for prevention and treatment. Why it is on the rise.

  Enriching through fruitful opposition

How might you alter the process to better suit your circumstances? Is there another component you would suggest to make this a more viable problem-solving model?

  There are three methods for evaluating a corporate

There are three methods for evaluating a corporate investment decision. Which of the following is not one of those methods        payback period

  What are the generally accepted accounting principles

What are the generally accepted accounting principles

  Effective resumes

If success in business is due to effective planning, how may an individual proactively prepare for an interview or a job in regards to a resume or cover letter?

  Research strategy on stressresearch strategy paperdevelop a

research strategy on stressresearch strategy paperdevelop a research strategy to find a solution for your selected

  Job of facilitating learning on the jobsite

Safety and health managers can do a better job of facilitating learning on the jobsite if they understand certain principles of learning. According to the National Safety Council, those conducting training should have what characteristics?

  Selection process

Each stakeholder in the selection process - line managers, coworkers, and applicants - has distinctly different needs, desires, and goals for selection. Discuss whether each stakeholder's needs, desires, and goals for selection should be equally ..

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