Page 1 of 1

#code in python The first task is to give a name of the software. The name should be unique. We all know name of the sof

Posted: Fri Jul 08, 2022 6:43 am
by answerhappygod
#code in python
The first task is to give a name of the software. The nameshould be unique. We all know name of the software is thefirst thing a person notices even before using the software.So, create a unique name to the software that you aregoing to make for the scenarios described in the problemabove.
- Name the software.- Think and list what are therules and tasks a personneeds to follow to get theboarding pass.
(Topic: Variables)Try to identify all the information that you need to collect andstore for this software and writedown their name. To store these information, you need variables.List all the variables (givethen representative names) and write comments to explain what theirdata types will be. (Topic: Condition & Decision Making)Suppose you are a passenger, and you are traveling to Dubai fromBangladesh with QATARAirways. When you reached the airport and went to the check incounter, the Airline staff askedyou the following questions.i. What is your name and ticket number?ii. What is your destination?If you are not going to Dubai, then the staff will tell you tocontact the help desk as you are inthe wrong counter.How you will handle this condition checking and decision makingwith your program. Writeappropriate code to mirror this situation.
(Topic: Loop)Suppose there are 25 passengers present in the queue for checkingfor destination. The airlinestaff is trying to check the same in 3 with all the 25passengers.What will be the efficient way to mirror the above situation i.e.,to get the name of all the 25passengers? Explain why with example. (Topic: Condition and calculation)If your destination is Dubai then the airline staff will ask youfor following information and makedecision accordingly.How many bags do you have?i. If number of bags is upto 2 then you don’t need to pay any extrafees.ii. If you have more than 2 bags then you are over the weightlimit. You need to pay 200USD for each additional bag.iii. After getting clearance with the luggage, he / she will getthe boarding pass.Update your program from 3 to ask the passenger for number of bags.Take it as input andinform the passenger whether he / she is (a) Overlimit or not, (b)If over limit, then calculatethe total amount he has to pay for the extra luggage, (c) take theamount that he has to pay forextra luggage, (d) finally, while the due is cleared handover theboarding pass (print thepassenger name, destination, seat number). (Topic: List)After boarding the plane a security person comes and asks theairline staff about various kindsof information regarding the passenger boarded on the businessclass.Create a 2D list of all the 25 passengers that boarded on thebusiness class that has theattributes name, age, address, profession.Also explain why python 2D list was created instead of python 1Dlist. (Topic: Function)Convert / update your code written in 5 with functions. Write threefunctions that will performthe three tasks listed in 5 and call them within your program toperform the same.Also Write a function to perform the task in 6.(Topic: File)Create a file named “passengerinfo.txt” and store all the 25passengers’ information in the file.Write two functions, named storeinfo() and readinfo() to writepassenger data to the file andread it back in the 2D list and display them.