Write a program to create a console application

Assignment Help C/C++ Programming
Reference no: EM13804588

Purpose

To build a complete working C++ program to review basic C++ concepts focusing on multi-file C++ applications, input files, and strings.

Specifications

Write a program to create a console application that allows the user to access sunrise/sunset almanac data for up to 30 days for a given choice of cities.

Read the data from the file cityinfo.txt into one or more arrays. This will be the set of cities the use can choose from. Your program should first prompt the user for a city airport code (such as MBS). If information is not available for this city, provide feedback to the user and terminate the program.

If this city is in the list of available cities, access the geographical coordinates (latitude, longitude) and time zone code (E-eastern, C-central, M-mountain, P-pacific). If the city code is valid and in the list, next prompt the user for a calendar date in a coded form of such as 20130831 (for August 31, 2013). If the date is invalid, inform the user. Do not allow them to continue until they have entered a valid date. Next, prompt the user for a number of days to write. This value must be in the range 1 and 30. An error message should be displayed if the number is not. For any input errors, be sure that no output is generated until all input data are valid.

Attachment:- advanced.zip

Reference no: EM13804588

Questions Cloud

Write about what did i learn from the english writting essay : Write about what did I learn from the english writting essay, I have some few points to describe. it is 500 words.
The standard error of the estimated regression line : Use the estimated regression equation to predict Wins when ERA 5.42, Runs Score is 938, Hits Allowed is 1596 and Saves are 30.
About academic integrity : About Academic Integrity
In what ways can you categorize your key abilities and attri : A. How can identifying your job interests, abilities, and attributes help you develop an effective resume? B. In what ways can you categorize your key abilities and attributes to project credibility? C. What are some ways of identifying the key abili..
Write a program to create a console application : Write a program to create a console application that allows the user to access sunrise/sunset almanac data for up to 30 days for a given choice of cities
Effects of the policies implemented in reaction to crisis : What were the effects of the policies implemented in reaction to the crisis and do you think the solutions worked in the short term? In the long term?
What are the health benefits of golf : 1) What are the health benefits of golf? 2) What are skills that are needed in golf that can be used in other sports?
About support progress and motivation : About Support Progress and Motivation
How can you influence competitors to avoid competing with yo : Easy titled "Low Tech Cost Leader"  which include the following sections:  (use subheadings please): Introduction · What are this plan's strengths? Weaknesses? · How will competitors respond to your actions? · How can you influence competitors to avo..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Assume that section

Assume that section _1 seats are in front of the stage, and the price is expensive. say, each seat in the 1st three rows is $180.00, and each seat in the last two rows is 10% less;

  Design a class named employeerecord

Design a class named EmployeeRecord that holds an employee's ID number, name, and payrate. Include mutator methods to set the values for each data field and output the values for each data field. Create the class diagram and write the code that

  Write an application that creates a quiz

Write an application that creates a quiz, which contains at least 5 questions about a hobby, popular music, astronomy, or any other personal interest. Each question can be multiple choice(a,b,c,d should be user accepted response), or true or false(t ..

  Write a c program that reads in five numbers

Q1. (Bar Chart /Histogram printing) Write a C program that reads in five numbers (each between 1 and 30). For each number read, your program should print a line containing that number of adjacent asterisks. For example, if your program reads the numb..

  How many generations do you want to wait

How many generations do you want to wait? How many jackalopes do you have?

  About recursion that makes it useful tool

What is it about recursion that makes it a useful tool when working with trees?

  Reads from the external file input.txt

Program that reads from the external file input.txt, counts the letters in every word, replaces the word by that number, and then writes the numbers to an external file output.tx

  Test a program that prompts for the user

Write and test a program that prompts for the user to input a file name and uses two functions head() and tail() - head() displays the first 10 lines of a file

  The actual solution of the equation shall be done

The actual solution of the equation shall be done by a function named equSolver(), which takes three coefficients as parameters and returns a structure of three fields: two roots (if they exist) and a boolean indicator, whether the roots do exist.

  Write a c program generates a ordered sequence of random num

Write a C program Gen.c that generates a ordered sequence of 20 random numbers within a range of 1000 to 9999. The program is invoked by a command line % gen datfile1

  Program that computes the monthly loan payment

Write a program that computes the monthly loan payment, given the loan amount (a double value), the interest, as a percent % (a double value), and the number of years to repay the loan

  Generate a set of 75 random integers in the range -26 to + 4

Write a program that will generate a set of 75 random integers in the range -26 to + 42. The program

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