Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ACME Tour Company offers tours to various locations; all tours include a tour guide. The spHWtourGuidesData.txt file contains the following information for the company's recent

ACME Tour Company offers tours to various locations; all tours include a tour guide. The spHWtourGuidesData.txt file contains the following information for the company's recent tours

  • employee ID number
  • number of days of the tour
  • dollar amount for each day (total of meals, tips, entry fees, transportation, etc)
  • dollar amount for each night's accommodations

Each line of the file contains data for a single tour guide in the order described above with a space separating each piece of data.

Write a program that will read all of the data contained in the file. Using the data file provided with this assignment, the program should produce the following table:

Employee Tour Daily Accommodation Total ID Number Length Expenses Expenses Expenses -------------------------------------------------------- 1,001 6 337.85 1,109.60 1,447.45 9,999 10 333.81 1,334.07 1,667.88 5,521 8 2,737.75 6,618.53 9,356.28 4,563 6 0.00 1,550.43 1,550.43 ============ 14,022.04

Note that the data used in grading will differ from the one provided with the assignment, but the format will remain the same.

***I AM WORKING WITH C++ AND I AM WANTING TO USE LOOPS FOR THIS PROGRAM***

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Define Administration?

Answered: 1 week ago

Question

2. Develop a persuasive topic and thesis

Answered: 1 week ago

Question

1. Define the goals of persuasive speaking

Answered: 1 week ago