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

  Use postings intersection procedure to find list of document

Assume we want to use postings intersection procedure to find simply the list of documents which satisfy a /k clause, rather than returning list of positions.

  Process for information systems management for organization

Describe the process for Information Systems Management for any organization using clear example.

  What should you do return computer to an operational state

Because you can't see the display, you can't work with the system. What should you do return the computer to an operational state?

  Which search engine do you believe provided

Which search engine do you believe provided you the best results? Support your position by explaining why you believe the particular search engine to be better based upon your experience.

  Distinguish object frameworks-components-system installation

Distinguish object frameworks and components in terms of ease of modification before system installation, ease of alteration after system installation, and overall cost savings from code reuse.

  Diversity of approaches

Diversity of Approaches

  Assume that you have a 64-bit architecture

Assume that you have a 64-bit architecture, but you need to work with numbers that are up to 2^4096. Your available programming language can support 64-bit numbers. How would you design software to do this (Use a maximum of one to two paragraphs o..

  What do the following commands do

What do the following commands do

  Explaining problem-solving and brainstorming skills

Use problem-solving and brainstorming skills to find out a procedure to follow. Write down a one-page report outlining what to do.

  Jane''s farm stand sells a variety of vegetables

Jane's farm stand sells a variety of vegetables. Write a program that produces an output file of vegetables sold, sorted by the biggest selling vegetable in terms of money made to the poorest selling.

  What is ldap and what are its security vulnerabilities

Why do you think an organization would continue to use directory services that have known security flaws?

  Explain how to satisfy storeitrite-s requirements

StoreItRite is interviewing candidates for position of Chief Information Officer (CIO). They are asking candidates to describe briefly how they would satisfy StoreItRite's requirements as stated above. How would a successful candidate respond?

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