To connect 4 PCs with a Cisco switch in Packet Tracer, you can follow these steps:
Open Cisco Packet Tracer and create a new network topology.
Drag a Cisco switch and four PCs onto the workspace.
Connect one end of a straight-through Ethernet cable to one of the Ethernet ports on the switch and the other end to the Ethernet port on the first PC.
Repeat step 3 for the remaining three PCs.
Power on all devices.
Configure IP addresses and default gateways for each PC.
Configure the switch with appropriate VLANs.
Test connectivity between the devices.
These are the basic steps to connect 4 PCs with a Cisco switch in Packet Tracer. If you have more than 4 PCs, you can repeat steps 3 and 4 as needed to connect them to the switch. You can also customize the network further by adding additional devices, configuring routing protocols, and implementing security features as needed