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

Halting problem on no input

Suppose you are given a function Halt that can be used to determine whether a program that requires no input halts. To make this concrete, assume that you are writing a C or

Define a class called blogentry

Define a class called BlogEntry that could be used to store an entry for a Web log. The class should have instance variables to store the poster's username, text of the entr

Threads main view

1. It is hard to imagine an organization without a website. IIS is a very popular server. What are the characteristics of IIS? What are the advantages and disadvantages of u

Contribute an article for company internal newsletter

You have been asked to contribute an article for your company's internal newsletter. The topic for this special issue is Cybersecurity for the Internet of Things. The guest e

Risk assessment on the above network deployment

Name and describe one technology that could be used to reduce each of the risks you identified above (one technology per risk). Briefly discuss when and where the technology

What would say in a job interview

What would say in a job interview if you were asked to comment on the following statement: "A Database Administrator (DBA) should create as many indexes as possible for a

Differences between ip addresses and mac addresses

Explain the difference between packet switching and circuit switching. Describe the differences between IP addresses and MAC addresses. Diagram the route of data over an Eth

Create case manifest and record order fulfillment

Develop sequence diagrams for the use cases Enter New Order, Create Case Manifest and Record Order Fulfillment . Update the design class diagram with attribute information a

Reviews

Write a Review

 
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