├── README.md └── level_2.txt /README.md: -------------------------------------------------------------------------------- 1 | # Programming-Skills-Level2 2 | 3 | This repository contains a series of entry-level exercises that can be solved in any programming language. The purpose of these exercises is to develop your programming logic. This repository is the number #3 in a series of more exercises to improve your programming skills. 4 | -------------------------------------------------------------------------------- /level_2.txt: -------------------------------------------------------------------------------- 1 | Author: @blindma1den 2 | 3 | 1. The Big Six of the English Premier League is composed of six teams: Manchester United, Liverpool, Arsenal, Chelsea, Manchester City, and Tottenham Hotspur. 4 | Develop a system that generates between 0, 1, and 3 points randomly for each team. 5 | The winner of the Big Six will be the team with the highest accumulated points at the end. 6 | Each team will play 3 matches against every opponent. 7 | After the matches, the system will display on-screen the team standings from highest to lowest points. 8 | --------------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | 10 | 2. Lottery System: 11 | 12 | The lottery system produces results consisting of 4 digits + 1 letter, e.g., 0345F. Develop a lottery ticket purchase system with the following features: 13 | Users can choose from the following tickets: 14 | 5678B 15 | 9876C 16 | 2345D 17 | 6789E 18 | 3456F 19 | 8765G 20 | 4321H 21 | 7890J 22 | 5432K 23 | 2109L 24 | 8765M 25 | 1357N 26 | 2468P 27 | 6543Q 28 | 7891R 29 | 3579S 30 | 9821T 31 | 4682U 32 | 5763V 33 | 1234A 34 | 35 | -Users can buy a minimum of 1 and a maximum of 2 tickets. 36 | -Payment is accepted in cash, and each ticket costs 1 USD. 37 | -After choosing tickets and quantity, the system prompts the user to pay in cash or by bank card. 38 | -This system only accepts 1 USD and 5 USD bills. The user must choose the bill to use for payment, and the system should return the change if applicable. 39 | -After payment, the ticket is issued. 40 | -The user returns to the main menu to play the lottery. 41 | -The lottery system generates 1 random ticket code. 42 | -------------------------------------------------------------------------------------------------------------------------------------------------------------- 43 | 44 | 3. Manchester United FC Player Management System: 45 | 46 | As a developer for Manchester United FC, the executive management has tasked you with creating a CRUD system for the current players, including the following information: Jersey number, position, age, height, and other statistical data. Additionally, integrate the system from the previous level where it was possible to compare two players and visualize their characteristics. You may find player information by searching on the internet. 47 | 48 | Features: 49 | 50 | Create: 51 | Add new players to the system with their respective details. 52 | Read: 53 | View the complete list of current players with their jersey number, position, age, height, and other statistical information. 54 | Update: 55 | Modify player information as needed, such as position, age, or height. 56 | Delete: 57 | Remove players from the system if they are no longer part of the team. 58 | Compare Players: 59 | Utilize the comparison feature to analyze and contrast the characteristics of two players. 60 | Visualize Characteristics: 61 | Display the statistical and physical attributes of each player for a comprehensive overview. 62 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 63 | 64 | 4. Old Trafford Stadium 65 | 66 | The executive management of Manchester United FC aims to implement a ticket sales system for the team's matches at Old Trafford Stadium. Develop a ticket purchase system with the following features: 67 | 68 | Membership Discount: 69 | Users with a Manchester United membership card receive a 15% discount on their total purchase. 70 | Seating Capacity and Distribution: 71 | The total seating capacity at Old Trafford is 74,310. 72 | 5% for VIP boxes, 15% for VIP seats, and 80% for general seating. 73 | Seat Selection: 74 | Seats are identified by a ticket number from 1 to 74,310. 75 | Users can choose their seats. 76 | The first seats correspond to VIP boxes, the next to the VIP area, and the rest to general seating (considering the percentages). 77 | Ticket Purchase Limits: 78 | Users with a membership card can buy up to 10 tickets, while non-members can purchase up to 3 tickets. 79 | Seat Availability Validation: 80 | The system must validate if a seat has already been sold to another user and offer a nearby seat if necessary. 81 | Seat Costs: 82 | VIP boxes: £1000 per seat. 83 | VIP seats: £500 per seat. 84 | General seating: £90 per seat. 85 | System Workflow: 86 | Login. 87 | Confirm membership status. 88 | Select seats. 89 | Make payment. 90 | Generate and issue tickets. 91 | Remaining Seat Display: 92 | The system should display the number of available seats after each purchase. 93 | --------------------------------------------------------------------------------------------------------------------------------------------------------------- 94 | 95 | 5. Manchester United FC Talent Acquisition System: 96 | 97 | The Manchester United FC is in search of new talents to enhance its player roster. The head coach aims to recruit two forwards, two midfielders, a right-back, a defender, and a goalkeeper. To achieve this, the club needs to sell some players to fund these new signings. Develop a system to assist the head coach in choosing which players can be sold based on their market price, salary, position, and performance within the club. 98 | 99 | Current Squad: 100 | 101 | Goalkeepers: 102 | 103 | André Onana - Price: £25,000,000 - Salary: £15,000,000 - Performance: Good 104 | Altay Bayindir - Price: £5,000,000 - Salary: £5,000,000 - Performance: Normal 105 | Tom Heaton - Price: £5,000,000 - Salary: £2,000,000 - Performance: Normal 106 | Defenders: 107 | 108 | Victor Lindelof - Price: £10,000,000 - Salary: £7,000,000 - Performance: Normal 109 | Harry Maguire - Price: £15,000,000 - Salary: £10,000,000 - Performance: Good 110 | Raphael Varane - Price: £15,000,000 - Salary: £10,000,000 - Performance: Good 111 | Lisandro Martínez - Price: £15,000,000 - Salary: £8,000,000 - Performance: Good 112 | Jonny Evans - Price: £7,000,000 - Salary: £4,000,000 - Performance: Good 113 | Willy Kambwala - Price: £4,000,000 - Salary: £1,000,000 - Performance: Normal 114 | Rhys Bennett - Price: £4,000,000 - Salary: £2,000,000 - Performance: Normal 115 | Right Side: 116 | 117 | Diogo Dalot - Price: £40,000,000 - Salary: £10,000,000 - Performance: Good 118 | Aaron Wan Bissaka - Price: £30,000,000 - Salary: £9,000,000 - Performance: Normal 119 | Left Side: 120 | 121 | Luke Shaw - Price: £40,000,000 - Salary: £16,000,000 - Performance: Good 122 | Sergio Reguilón - Price: £20,000,000 - Salary: £8,000,000 - Performance: Normal 123 | Tyrell Malacia - Price: £16,000,000 - Salary: £7,000,000 - Performance: Normal 124 | Midfielders: 125 | 126 | Sofyan Amrabat - Price: £25,000,000 - Salary: £9,000,000 - Performance: Normal 127 | Mason Mount - Price: £25,000,000 - Salary: £12,000,000 - Performance: Normal 128 | Carlos Casemiro - Price: £25,000,000 - Salary: £15,000,000 - Performance: Good 129 | Bruno Fernandes - Price: £50,000,000 - Salary: £11,000,000 - Performance: Good 130 | Christian Eriksen - Price: £25,000,000 - Salary: £8,000,000 - Performance: Normal 131 | Scott McTominay - Price: £40,000,000 - Salary: £8,000,000 - Performance: Good 132 | Hannibal Mejbri - Price: £12,000,000 - Salary: £2,000,000 - Performance: Good 133 | Kobbie Mainoo - Price: £12,000,000 - Salary: £2,000,000 - Performance: Good 134 | Daniel Gore - Price: £9,000,000 - Salary: £2,000,000 - Performance: Normal 135 | Strikers: 136 | 137 | Alejandro Garnacho - Price: £12,000,000 - Salary: £10,000,000 - Performance: Good 138 | Rasmus Hojlund - Price: £20,000,000 - Salary: £7,000,000 - Performance: Good 139 | Marcus Rashford - Price: £25,000,000 - Salary: £10,000,000 - Performance: Good 140 | Antony - Price: £25,000,000 - Salary: £10,000,000 - Performance: Normal 141 | Anthony Martial - Price: £18,000,000 - Salary: £4,000,000 - Performance: Normal 142 | Facundo Pellistri - Price: £18,000,000 - Salary: £6,000,000 - Performance: Good 143 | Market Players: 144 | 145 | Goalkeepers: 146 | 147 | Andriy Lunin - Price: £30,000,000 - Salary: £10,000,000 - Performance: Good 148 | Dominic Livakovic - Price: £15,000,000 - Salary: £9,000,000 - Performance: Good 149 | Rui Patricio - Price: £10,000,000 - Salary: £7,000,000 - Performance: Normal 150 | Yassine Bounou - Price: £14,000,000 - Salary: £9,000,000 - Performance: Normal 151 | Midfielders: 152 | 153 | Enzo Fernández - Price: £35,000,000 - Salary: £15,000,000 - Performance: Good 154 | Jamal Musiala - Price: £30,000,000 - Salary: £10,000,000 - Performance: Good 155 | Arda Guler - Price: £18,000,000 - Salary: £9,000,000 - Performance: Normal 156 | Right Side: 157 | 158 | Achraf Hakimi - Price: £20,000,000 - Salary: £15,000,000 - Performance: Good 159 | Jeremie Frimpong - Price: £12,000,000 - Salary: £8,000,000 - Performance: Good 160 | Ronald Araujo - Price: £15,000,000 - Salary: £10,000,000 - Performance: Good 161 | Strikers: 162 | 163 | Victor Osimhen - Price: £30,000,000 - Salary: £12,000,000 - Performance: Good 164 | Harry Kane - Price: £40,000,000 - Salary: £15,000,000 - Performance: Good 165 | Karim Benzema - Price: £20,000,000 - Salary: £20,000,000 - Performance: Normal 166 | ------------------------------------------------------------------------------------------------------------- 167 | 168 | 169 | Enjoy Coding! :) 170 | 171 | @blindma1den 172 | 173 | 174 | --------------------------------------------------------------------------------