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 TheDoctor Your Own Question

TheDoctor
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1287
Experience:  M.S. in Internet Information Systems
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

you are working a developer at green valley travels. Green

Customer Question

you are working a developer at green valley travels. Green valley travel deals in making travels arrangements for its customers visiting various cities.


The employees of green valley frequently need to know the distances between tourist places, in order to plan the routes for their customers, for this, they have maintained a text file that contains the direct distances between several pairs of cities.

if a pair of cities does not appear in the text file, it means that there is no routes between the two cities, and they may be connected via another city. More rover it is possible that multiple routes may exist between a given pair of cities. To minimize the travel time of the customer, it become important for the employees of Green Valley to determine the shortest route connecting a given pair of cities.


in this Case, the employees need to manually check all possible to determine the shortest route between a pair of the cities, because only the direct distance are stored in the file.

Your Project Manager has assigned you the task to develop a utility, TravelSmart that will help the employees of Green Valley to determine the shortest route connecting a given pair of cities. The utility need to include the following features:


* Display Map: This option will provide a graphical interface to the users showing the various cities as dots and the direct paths connecting the cities as lines, The city names will be retrieved from the next text file cities.txt that contain the names of all cities. The direct distance between the various cities will be retrieved from the text file route.txt in which each record consists of the following fields a source city, a destination city and the direcr distance between Them.


* Determine the shortest Route: This option will enable a user to select source city and a destination city by clicking on their corresponding dots on the user interface. Once both the source and destination cities are selected, the utility will display the shortest route connecting the two cities, IN addition , the utility will also display the distance for the shortest route.


Hint: the text file containing city names needs to specify the cordinates from each city on the map. therefore in the cities.txt files will include three fields: city name xCordinates and yCoordinates. To draw a line connecting the points (X1,Y1) and (X1,X2) on a coordinates control, say panell, the following code need to be written in the paint event of the form.

Graphics gr = e.graphics;
pen p = new pen (color.white, 3);
gr.DrawLine (p, 30, 40, 20, 80);
panell.control.Add(1);
for using the Graphics and pen classes, the following namespaces need to be included

using System.Drawing;
using System.Drawing.Drawing2D;
Submitted: 9 months ago.
Category: Homework
Expert:  R.R. Jha replied 9 months ago.
Hi,

I'd be glad to help with your question. When do you need this by?
Customer: replied 9 months ago.

today

Expert:  R.R. Jha replied 9 months ago.
Ok, I'll work over it and let you know.
Expert:  R.R. Jha replied 9 months ago.
Could you please provide the original requirement file, cities.txt, route.txt and sample output?
Customer: replied 9 months ago.

ON C# XXXXX

Customer: replied 9 months ago.

there is no original requirement file ... we have to create it ... here is just the hints that was given


 


Hint: the text file containing city names needs to specify the cordinates from each city on the map. therefore in the cities.txt files will include three fields: city name xCordinates and yCoordinates. To draw a line connecting the points (X1,Y1) and (X1,X2) on a coordinates control, say panell, the following code need to be written in the paint event of the form.

Graphics gr = e.graphics;
pen p = new pen (color.white, 3);
gr.DrawLine (p, 30, 40, 20, 80);
panell.control.Add(1);
for using the Graphics and pen classes, the following namespaces need to be included

using System.Drawing;
using System.Drawing.Drawing2D;


 


Optional Information:
Subject: PROGRAMMING

Expert:  R.R. Jha replied 9 months ago.
Ok. Let me see if I could complete it by today itself.

Thanks
Customer: replied 9 months ago.

ok

Expert:  R.R. Jha replied 9 months ago.
Ok, thanks
Customer: replied 9 months ago.

welcome

Expert:  R.R. Jha replied 9 months ago.
Ok (please don't reply to this unless necessary, because that locks me out from replying in other threads)
Customer: replied 9 months ago.

hello please i will like to know how the work is going ?

Customer: replied 9 months ago.
Relist: Other.
lack of responce
Customer: replied 9 months ago.
Relist: Other.
he is not responding
Expert:  Josie-Mod replied 9 months ago.
Hi, I’m Josie a moderator for this topic. It seems the professional has left this conversation. This happens occasionally, and it's usually because the professional thinks that someone else might be a better match for your question. I've been working hard to find a new professional to assist you right away, but sometimes finding the right professional can take a little longer than expected.

I was checking to see if you had already found your answer or if you still needing assistance from an other one of our professionals?

Please let me know if you wish to continue waiting or if you would like for us to close your question.

Also remember that JustAnswer has a multitude of categories to help you with all your needs from Pet to Legal.

Thank you,

Josie~Moderator
Customer: replied 9 months ago.

well i am still waiting and i will like you to forward my question to TheDoctor he has helped me once and i believe he can handle this one as well

Expert:  Josie-Mod replied 9 months ago.
Hi, I'm Josie and I am a moderator for this topic. Thank you for your reply, I am glad to assist you with your request. I sent your requested professional, The Doctor, 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.
Expert:  TheDoctor replied 9 months ago.

Hello again. Thank you for requesting me.

Yes, I can complete this for you. By what time do you need it?

It will take a while. I can probably get it to you before 11PM EDT.

Will that be acceptable?

Customer: replied 9 months ago.

alright good ... when you done with this i have one more for you ... thanks

Expert:  TheDoctor replied 9 months ago.
Thank you. I will contact you once this is complete.
Customer: replied 9 months ago.

ok

Expert:  TheDoctor replied 9 months ago.
Hello again. Please do not respond until I have completed this. When you respond, I am required to reply back to you. I will let you know when this is done.
Customer: replied 9 months ago.

how is it going ?

Expert:  TheDoctor replied 9 months ago.
It is going nicely. I will contact you when it is complete.
Expert:  TheDoctor replied 9 months ago.

Hello again!

Please download the project here:

Attachment: 2013-07-12_225046_travelsmart.zip



Simply open the project in VS 2008 C# XXXXX Open the Form1 file and press the play button to run the project.

Everything is there and all the requirements are met. When you click on the display map button, the map will be displayed. You can click on any of the visible cities and then a second city. A line is drawn and you are shown the distance.

The utility is entirely complete and functional. Here is a screen cast of the project in action:

http://www.screencast.com/t/uqfzZ12aVTs

As you can see, all of the requirements have been met and the project is ready to turn in.

Let me know if you have any questions. I'm here to help.

Please remember to rate my answer. Thank you so much and have a wonderful day!

Customer: replied 9 months ago.

please do you have the link to where i can download the V8 express

Expert:  TheDoctor replied 9 months ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1287
Experience: M.S. in Internet Information Systems
TheDoctor and 7 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's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4514
    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:

    4514
    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:

    3099
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2453
    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:

    2258
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    2193
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1962
    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:

    1865
    Bachelors Degree and CPA with Accounting work experience