Write program to enter name-number of planet from sun

Assignment Help Programming Languages
Reference no: EM1382161

Write down the program which permits the user to enter name of planet, and then prints message stating that planet's number when counted outward from sun. If user enters datum which is not a planet, your program must print message to that effect.

You will probably wish to start your program by declaring array of string literals, given below. You can then refer to name of planet i with planets[i].

char* planets[8] = {"Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"};

Example run might look like following:

Enter planet name: Earth
Earth is planet 3, counting outward from the Sun.

Reference no: EM1382161

Questions Cloud

Charactristics of the atomic structure of helium : In modern blimps, the gas of choice used to inflate them is helium rather than hydrogen. Hydrogen would be lighter, but helium is safer. Compare and contrast the atomic structure of hydrogen and helium.
What is your business are being sued for a breach : What is your business are being sued for a breach of contract. Create a matrix that list each business and compare and contrast your personal liability exposure as a sole owner as a result of the lawsuit.
Factor label method to calculate number of grams of kmno4 : Discuss how do use the factor-label method to calculate the number of grams of KMnO4 that you would need to make 100 ml of a 0.0045 M potassium permanganate solution?
Many students of the second city training center : Many students of the Second City Training Center arebusinesspeople looking to gain skills for the corporatecontext. What skills from the world of improvisationalcomedy would be valuable to a business manager?
Write program to enter name-number of planet from sun : Write down the program which permits the user to enter name of planet, and then prints message stating that planet's number when counted outward from sun.
Design project : Specify a fire wall of appropriate resistance which utilizes masonry. Provide a construction detail of how it is to be constructed. Please note this is a load bearing wall - FSE 445 Design Project
Reality of the current organizational situation : According to Senge, leaders must understand this notion, which represents the difference between the "vision" of where the organization could be and the reality of the current organizational situation.
Abc airlines has calculated the total costs : ABC Airlines has calculated the total costs (fixed and variable) for the passenger service flights between Los Angeles, California and Orlando, Florida.
The firm is opening its headquarters in chicago : The firm is opening its headquarters in Chicago and is considering three office locations, which differ in cost due to square footage and office equipment requirements

Reviews

Write a Review

Programming Languages Questions & Answers

  Display policy data after revisions have made

The day is not correct for the month (that is, between 1 and 31 for January, 1 and 29 for February, and so on), then set the month, day, and year to 0. Display the policy data after any revisions have been made.

  Write the program which simulates shopping

Write the program which simulates shopping. Program must have a loop which continues as long as user wants to shop. Each time through loop read in name, price, and quantity of the item.

  Implement two different versions of file copy utility

You will implement two different versions of file copy utility, one by using read()/write() operations and one by using mmap(). You are only prmitted to use following system calls:

  Creating table-find employee attended meeting on given date

The rows of this table record the fact that an employee from a particular project attended a meeting on the given date.

  Design program to accepts account number

Design a program that accepts an account number, the account owner's first and last names, and a balance. Print the projected running total balance for each year for the next 20 years.

  Write program to calculate how much person earns

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day.

  Write a program to calculate diameter in centimeters

Write a program to compute the diameter in centimeters of steel rod, aluminum rod, adn copper rod, which can withstand a particular compression load.

  Write a program to enter any number of integers in array

Write a program which permits a user to enter any number of integers, which are then stored in the array. After user enters integers, perform the following operations on array.

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Advantages of using invisible html table to create web page

What advantages do you see in using an invisible HTML table to structure an entire Web page? What disadvantages does the table structure pose?

  Store normal for each face in array using technique

Use technique of the Astle text to store normal for each face in faceData array enable lighting and add point light source if the light is positioned at the origin

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