Day 23

 Hello.

In today's course, I learned how to make an airport program that measures the weight of passengers' bags so that:

Passengers in the first class have a weight, let's say 30 kilograms per bag, and if it exceeds this weight, they pay $10 per kilo

In the second class, the weight of the bag does not exceed 20 kilograms, and $10 is also paid for each additional kilo

In the economy class, they are allowed 10 kilograms, and they are charged $10 for each additional kilo

In the end, we dealt with the program as if it were dealing with one person, and after it worked correctly without error, we started adding the loop to allow these operations to be repeated with more than one passenger

This was today's project. It was a wonderful experience and it took me all day. I need to rest now and we will continue the course tomorrow. Goodbye

تعليقات

المشاركات الشائعة