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

  Technical project: sample website project

Technical Project: Sample Website Project , This assignment consists of three (3) sections: a narrative, a storyboard, and a business Website. You must submit all three (3) sections for the completion of this assignment.

  Create program to read file calculate numbers of single men

Create a program to read through file and calculate numbers of married men, single men, married women and single women.

  Building airline reservation system

Problem Description The aim of this project is to build airline reservation system. System must give two basic sets of services to an airline: First set of services allows the airline to provision its system.

  How to complete input assertion and output assertion

Complete input assertion and output assertion which will guarantee that student always ends game passing class. Add assertions and invariants which can help reason about claim.

  Explaining data-driven multicast routing paradigm

The data-driven multicast routing paradigm works best on local networks that have low delay and excess capacity, while the demand driven paradigm works best in a wide are environment.

  Program to keep track of the seat availability of flight

A small airline company needs a program to keep track of the seat availability of its flights. Design the structure type FLIGHT to store a four-digit flight number.

  C program to accept three numbers inputs by user

Write down C program to accept three numbers input by a user, and outputs a table of temperatures in Fahrenheit, Celsius, and Kelvin.

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Write program which prompts for boiling point of substance

Write program which prompts user for observed boiling point of substance in Centigrade and identifies substance if observed boiling point is within 5% of the expected boiling point.

  Determine branch folding for unconditional branches

Determine the improvement from branch folding for unconditional branches. Assume a 90% hit rate, a base CPI without unconditional branch stalls of 1.

  Write program to test class-compute next month-s interest

Write the program to test class SavingsAccount. Instantiate two savingsAccount objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Compute next month's interest and print new balances for both savers.

  Design program to calculate amount of money spend

Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day.

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