Question
Write in C You and your friends decide to take a road trip for spring break. You all have decided to leave Tuscaloosa without planning
Write in C
You and your friends decide to take a road trip for spring break. You all have decided to leave Tuscaloosa
without planning a route; the group's word for 2021 is "spontaneity" with a motto of "No plan is the best plan.",
after all. To help decide where to drive during the road trip, you decide to write a program.
Your program will prompt the user for the next destination until you reach the end of the road trip,
according to the downloadable flowchart below.
Examples
From tuscaloosa: oxford, jackson, mobile, or birmingham?
From jackson: oklahoma-city or dallas-fort-worth? dallas-fort-worth
From dallas-fort-worth: albuquerque or kansas-city? kansas-city
You ended your trip in kansas-city!
From tuscaloosa: oxford, jackson, mobile, or birmingham? birmingham
From birmingham: montgomery, atlanta, or huntsville? huntsville
From huntsville: chattanooga or nashville? nashville
From nashville: st-louis, knoxville, or louisville? st-louis
From st-louis: minneapolis or chicago? minneapolis
You ended your trip in minneapolis!
Notes
- Name the program roadtrip.c.
- Have a header block of comments that includes your name and a brief overview of the program.
- Test your program against all of the branches in the flowchart.
- Assume valid input.
- Use the same names in the flowchart.
- The test cases are checking if your output ends with "You ended your trip in X!".
buscaloosa mobile oxford memphis fayettevile new-orleans tallahassee houston baton-rouge jacksonville gainesville lincon wichita austin san-antonio orlando tampa jackson birmingham dallas-fort-worth oklahoma-city - montgomery hunstville atlanta albuquerque kansas-city auburn troy charleston charlotte chattanooga nashville derver phoenix savannah athens st-louis knoxville louisvile minneapolis chicago washington pittsburgh
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started