Question: 1 . Open the chatgpt and paste ( Create a dataset, which should contain at least 2 0 records and five fields. Provide in Python

1. Open the chatgpt and paste
(Create a dataset, which should contain at least 20 records and five fields. Provide in Python 3 list and sublist format.)
2. The output you will get contains five fields: id (integer), name (string), gender (string), age (integer), and salary (integer). Each record is represented as a sublist within the main list.
data =[[1, 'Alice', 'Female', 25,50000],[2, 'Bob', 'Male', 32,75000],[3, 'Charlie', 'Male', 45,90000],[4, 'David', 'Male', 21,40000],[5, 'Eve', 'Female', 28,55000],[6, 'Frank', 'Male', 39,80000],[7, 'Grace', 'Female', 52,100000],[8, 'Harry', 'Male', 31,70000],[9, 'Isabel', 'Female', 27,60000],[10, 'Jack', 'Male', 41,85000],[11, 'Kate', 'Female', 23,45000],[12, 'Leo', 'Male', 37,75000],[13, 'Mary', 'Female', 48,95000],[14, 'Nick', 'Male', 29,60000],[15, 'Oliver', 'Male', 35,85000],[16, 'Patty', 'Female', 26,50000],[17, 'Quinn', 'Male', 43,90000],[18, 'Rachel', 'Female', 30,65000],[19, 'Steve', 'Male', 50,120000],[20, 'Tina', 'Female', 33,70000]]
3. Submit your Python program and a report outlining the details of your program, the ChatGPT details, the data generated, and the methods used to process and manipulate the data. 4. Ensure that your code is well-documented, with comments explaining the purpose of each line of code. 5. Your program should be efficient and error-free, with well-structured and optimised code
4. Aks the user the data he/she want to access from the dataset we get from the chatgpt. also provide the pesudo and flow chart of this codeAlso, calculate the average salary displayed in the dataset. Also, use the loop in the program and use the method if the user wants to insert or delete data in the dataset.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!