Page 206 - CodePilot V5.0 C8
P. 206
List the names and departments of all employees earning more than 40,000.
Show the names of employees who work in the HR department.
Delete all employees from the IT department.
21 st #Critical Thinking
Century #Information Literacy
5. Create a Python program to implement a Shopping Cart System Skills
using lists to store item names and prices, functions to calculate the total bill and apply
a 10% discount if the total bill exceeds 500. Use the math module to round values, the
random module to display a surprise shopping message and string methods for proper
formatting, to finally display a complete Shopping Cart Summary with all details as shown
in the given sample.
21 st #Creativity
Century #Technology Literacy
6. You will control a VR Robot in a virtual environment where pieces Skills
of ocean waste are scattered across the coral reef area. Now, program the VR Robot to
collect and remove all the waste from the coral reef as quickly as possible in the Coral Reef
Cleanup Playground.
While programming the VR Robot, keep the following points in mind:
Plan a systematic path to cover the entire reef without leaving any waste behind.
Use precise movement commands to pick up and remove each piece of waste
efficiently.
204
CodePilot (V5.0)-VIII

