Write program that will calculate square and cube of numbers

Assignment Help Basic Computer Science
Reference no: EM13306994

Write a program that will calculate square and cube of numbers ranging from 0 to 10. Print the output like the following table (hint: use for loop, to print as a table use printf formatting for width).

Number        Square            Cube

0                     0                      0

1                     1                      1

2                     4                      8

3                     9                      27

4                    16                     64

5                    25                    125

6                    36                    216

7                    49                    343

8                    64                    512

9                    81                    729

10                  100                  1000

 

Reference no: EM13306994

Questions Cloud

What do will result if the concentration of waste is reduced : The discharge from a sugar beet plant causes the DO at the critical point to fall to 4.0 mg/L. The stream has a negligible BOD and the initial deficit after the river and wastewater have mixed is zero.
Calculate the rate of heat loss due to radiation : A cryogenic storage container holds liquid helium, which boils at 4.2 K. Suppose a student painted the outer shell of the container black, Determine the rate of heat loss due to radiation
What is return on assets (roa) : 11. A large organic farm operation had sales of $24 million, total assets of $18 million, and total debt of $7 million. If the profit margin is 8%, what is return on assets (ROA)?
What is the backwards velocity of the cannon : A cannonball (20kg) is shot from a cannon(200kg) with a velocity of 20m/s. what is the backwards velocity of the cannon
Write program that will calculate square and cube of numbers : Write a program that will calculate square and cube of numbers ranging from 0 to 10. Print the output like the following table (hint: use for loop, to print as a table use printf formatting for width).
List your estimate for g2 and explain your reasoning : The third step is to estimate a second stage (also called the stable stage) growth rate in dividends, g2, for use in the Two-Stage DDM. Your estimate for g2 should not be greater than the expected future growth in the overall economy (expected..
Which address should be evicted at each replacement : An MRU replacement policy? Which address should be evicted at each replacement to maximize the number of hits? How many hits does this address sequence exhibit if you follow this optimal policy?
Find the net work done by the car : A 1000kg car accelerates from rest to 60mph (134m/s) in 10s. During this time, its engine was operating at 3600rpm. Use the work-energy theorem to find the net work done by the car
Determine what is the current value of grannys savings : Granny viola has been saving money in the Bread and Butter mutual fund for 15 years . She has been a steady depositor over those years and has a pattern of putting $100 into the account every 3 months.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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