Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C language: You have a train with 12 seating cars and 3 sleeping cars. The sleeping cars have a capacity of 20 passengers, the seating
C language: You have a train with 12 seating cars and 3 sleeping cars. The sleeping cars have a capacity of 20 passengers, the seating cars 60 passengers. Ask the user for the number of passengers to be transported and if they need sleeping accomodations or not. Write a message if there is enough room on the train for all or not.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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