How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLProg Your Own Question

ATLProg
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 8641
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
Type Your Homework Question Here...
ATLProg is online now
A new question is answered every 9 seconds

Program help

Resolved Question:

For ATLProg only

 


Create a simple electronic runner’s journal that allows a user to log a list of runs. Your program must use the “list” API in the C++ standard template library (STL). Your program must keep track of a list of attributes associated with each run in a global linked list data structure. The program must implement at least one class, which will hold the following class variables:

• An integer variable to hold an identification number associated with the log entry. This must be a randomly generated number that contains exactly eight digits. For example, 12896123. Duplicate entries are not allowed.

• A string variable to hold the date of the log entry. The entered date must be in the form mm/dd/yyyy. If the user enters an invalid date format, the program must print an error and reprompt the user to enter the date in the correct format.

• A string variable to hold the time of day of the log entry (i.e. the time that the run will start). The entered date must be in the form hh:mm am or hh:mm pm. Again, if the user enters an invalidtime format, the program must print an error and re-prompt the user to enter the time in the correct format.

• A string variable to hold the users goal.
• A string variable to hold the current weather (e.g. rainy, cloudy, sunny, hot, cold, etc.).
• A string variable to hold the name of the route.
• A double variable to hold the distance of the run (in miles)
• A string variable to hold the running time in the format hh:mm:ss.

Provide the appropriate accessor methods to set and get the data for each of these class variables. For example getRoute() and setRoute(string route). The main program must provide the following functionality:

1. When the program is first started, it must read a data file called log.dat. If the file exists, the program will load the data for each log entry into the global linked list data structure. If the file does not exist, the program will start with an empty linked list.

2. Provide a simple text-based user interface that displays the name of your runner’s log and allows the user to operate on the global linked list of log entries. Each log entry must be placed in this global linked list as an object that will hold all of the information associated with each run. The program interface will allow the user to do the following:

(a) Enter a run – allows the user to enter all of the fields for log entry associated for a given run, except for the identification field, which will be an automatically generated eight digit random number. After the data fields are entered, the program will place the log entry in the global linked list data structure.

(b) Search for a run – allows the user to search for a log entry in the linked list based on a given date. The program should prompt the user to enter a data in the form mm/dd/yyyy. Display a message if there are no entries not found in the linked list for a given date. If there are multiple entries for a given date, the program should display all of the entries associated with that date.

(c) Modify a run – allows the user to modify any of the fields for a log entry (except for the log identification number) in the linked list. Use the eight digit identification number as the key to find the entry to modify. Display a message if the log entry is not found in the linked list.

(d) Delete a run – allows the user to delete a log entry from the linked list using the eight digit identification number as the key. Display a message if the item is not found in the linked list.

(e) Display the log – displays all of the entries in the linked list. The feature will display all of the fields associated with the each log entry. It should also print the total number of miles for all of the entries in the linked list.

(f) Exit program – before the program exits, it must save all of the data for each log entry that is contained within the linked list into the log.dat data file. At this point, if the file does not exist, the program will create it.

Submitted: 1 year ago.
Category: Homework
Expert:  Josie-Mod replied 1 year ago.
Hi, I am a Moderator for this topic. I sent your requested professional a message to follow up with you here, when he is back online. If I can help further, please let me know. Thank you for your continued patience.
Customer: replied 1 year ago.
Thank you for your help.
Expert:  ATLProg replied 1 year ago.
Hi, Welcome to JustAnswer, It will be my pleasure to help you. Can you please let me know how soon you need this done.
Customer: replied 1 year ago.
This is due at midnight central standard time on May 15.
Expert:  ATLProg replied 1 year ago.
Ok will have it ready by then for you.
Customer: replied 1 year ago.
Thank you.
Expert:  ATLProg replied 1 year ago.
ok
Customer: replied 1 year ago.
Sorry to be a bother, but how is the progress?
Expert:  ATLProg replied 1 year ago.
How much more time do we have ?
Customer: replied 1 year ago.
It is due Wed.
Expert:  ATLProg replied 1 year ago.
ok..
Expert:  ATLProg replied 1 year ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 8641
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
ATLProg and 4 other Homework Specialists are ready to help you

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience