Sum of the cubes of the digits

Assignment Help Basic Computer Science
Reference no: EM131039016

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

Questions Cloud

Member of the systems development team : You are a member of the systems development team for XYZ Car Manufacturer. The project manager has tasked you to design an object-oriented modeling for the company vehicle line that consists of cars, minivans, trucks, SUVs, and hybrids. The projec..
Briefly describe the threat : This assignment provides you with an opportunity to read an article about a current security threat (or attack) while also examining how security measures impact the customer experience.
How much was net income for 20x7 and 20x8 : Is total "working capital" reduced on the date of declaration, date of record, and/or date of payment?
The sponsor for project xy : You are the sponsor for project XY. The project manager has provided you the following three status reports. The project started on 2/1 and it is now the end of the 4th week. For this assignment, complete this packet in its entirety to include all..
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..
How much was net income for 20x7 and 20x8 : Is total "working capital" reduced on the date of declaration, date of record, and/or date of payment?
What is the percentage change for each of the given item : What is the percentage change for each item listed? What observations can you make for each item? Is there anything in the annual report that supports your observations?
Is there any income statement impact from these transaction : Believing that its share price was depressed due to general market conditions, Kenya's board of directors authorized the reacquisition of 250,000 shares of common stock. These treasury shares were purchased at $10 per share.
Program that uses a function to toss a thick coin : Write a c++ program that uses a function to toss a thick coin 100 times. The probablility of heads is 0.4, the probability of tails is 0.4 and the probability of the coin landing on its edge is 0.2. The function stores the results in an array.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write the definition of a function named addmoney

Now write the definition of a function named addMoney that receives two Money arguments and returns their sum, in normalized form. So if the equivalent of $1.85 and $2.19 is passed the function would return the equivalent of $4.04.

  Describe four business trends and three technology trends

Name and describe four business trends and three technology trends shaping e-commerce today. What are the principal e-commerce business and revenue models? How has e-commerce transformed marketing? Explain how social networking and the "wisdom of cro..

  Town has two burger restaurants located across the street

A small midwest town has two burger restaurants located across the street from each other: 'Burgerama' and 'The Burger Brothers'. As both restaurants compete for the same customers, they are both considering offering a larger burger with more topping..

  Utilized in enterprise network management systems

research and report on what RMON and RMON probes are and how they are utilized in enterprise network management systems and how they benefit.

  Virtual machine forensics

Determine what you perceive to be the greatest challenge when dealing with virtual machines from a system forensics perspective. Provide a rationale with your response.

  Application screen design and layout function

Design focus is on providing the application screen design and layout function for the purchaser. You do not have to worry about the accounting system for the bookshop

  In how many different ways can one plan such a tour

The price of a European tour includes four stopovers to be selected from among 10 cities. In how many different ways can one plan such a tour if the order of the stopover matters.

  When would a gui -graphical user interface be a poor choice

When would a GUI -graphical user interface be a poor choice for reading data into a program? Why? Please give detailed reasons for your answer.

  Cloud provider secure large amount of capital

Few organizations tend to prefer operating expense models. whether Cloud providers will continue to secure large amount of capital....or will equity firms stop their funding?

  How can you minimize the quantization error

How can you minimize the quantization error - Just a simple and quick answer and please no copy and paste.

  Conduct testing on the paper prototype

Continuing with the detailed project from W3 Assignment 2, where you documented user goals, this week, you will develop a paper prototype for the design of your proposed application, which can be tested. The prototype should demonstrate the follow..

  Give your experience playing computer games.

White et al. (2007) discuss a number of ways that database systems experts can help computer game designers. Discuss an example and support it with insights from your own experience playing computer games.

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