Write a code in python’s data structures (only in linked list) of:
Cargo system
START
Take information from user (Name, passport number)
Ask user to select country from (Australia, USA)
If Australia
Ask user “what kind of package do you want to send: a) luggage b) car c) Mail”
If a)
Ask weight of luggage
Calculate and show price= 75 $ /kg
If b)
Ask user “Select type of vehicle 1) light weight 2) heavy weight 3) motorcycles”
If 1)
“Price is =2500$”
If 2)
“Price is 3500$”
If 3)
“Price is 1000$”
If c)
Ask for address “enter address”
Show “Price is 100”
If USA
“same as above as Australia”
END
PS: you are only supposed to use linked list
Write a python program to generate a quiz using two files, named Questions.txt and Answers.txt. The program opens Questions.txt and displays the question with options on the screen. The program will verify the Answer.txt file and display the scores.
For example, Questions.txt file contains the following details:
1. Who is the prime minister of India?
A. Narendra Modi B. Shivraj Patil
2. Who is the President of USA?
A. Donald Trump B. Joe Biden
Answer.txt file contains the following details:
1.A
2.B
If inputs are A and B, then the Score is 100
case=1
input= A
B
output=100
case=2
input: A
A
output=50
case=3
input=B
A
output=0
1) Create a database c onsole application to perform the following applications:
a) Define a dictionary to store details of library books consisting of book id, title, author name, year of publication and publisher.
b) Show how the information can be stored in a SQLite or MySQL database named books, retrieved by book id or author name, updated using book id or title.
c) Handle all exceptions and validate data entry.
2) Redo question 1) above converting the application into a user-friendly GUI application using a python GUI library such as Tkinter and develop all operations stated above while connecting to the same database named books.
Write a code in python’s data structures (only in linked list) of:
Usual Airport cargo service which offer services for any usual airport:
PS: you are only supposed to use linked list
Write a python program to print the seventh table and store in file.
Write a python function to get three user information such as name,
address, phone number, email and store them in three separate file.
Write a python function to replace all the blank space in a file with star(*) and store the output in a new file. Note use regular expressions
write a method called solve which takes as parameter a list of tuples called A.
Each tuple contains some strings. You have to print the indexes of those tuples whose first element's first alphabet is the same as the last element's last alphabet.
Example, for this list:
[('hello','hi'), ('his', 'name', 'archith'), ('kremlin', 'russia', 'spartak'), ('error', 'none', 'wave'), ('indeed', 'numbers', 'work')]
The output is:
1 2 3
Because tuples in index 1 2 and 3 obey the given condition.
write a method called solve which takes as parameter a list of tuples called A.
You have to print that pair of tuple which have the same sum. There is only 1 such pair.
Example:
[(1,2), (1,0), (4,4), (10,2), (5,-1), (1,1,1)]
For this list, the pair is:
1,2
1,1,1
Because both these tuples sum up to 3.
Modify your program from Learning Journal Unit 7 to read dictionary items from a file and write the inverted dictionary to a file. You will need to decide on the following:
Create an input file with your original three-or-more items and add at least three new items, for a total of at least six items.
Include the following in your Learning Journal submission: