├── README.md └── level_1.txt /README.md: -------------------------------------------------------------------------------- 1 | # Programming-Skills-Level1 2 | 3 | This repository is the second one of 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 first in a series of more exercises to improve your programming skills. 4 | 5 | Author: @blindma1den 6 | -------------------------------------------------------------------------------- /level_1.txt: -------------------------------------------------------------------------------- 1 | Author: @blindma1den 2 | 3 | 1. Manchester United FC has hired you as a developer. Develop a program that helps the coach identify their fastest player, player with the most goals, assists, passing accuracy, and defensive involvements. 4 | The system should also allow comparison between two players. Use the following player profiles: 5 | 6 | Bruno Fernandes: 5 goals, 6 points in speed, 9 points in assists, 10 points in passing accuracy, 3 defensive involvements. Corresponds to jersey number 8. 7 | Rasmus Hojlund: 12 goals, 8 points in speed, 2 points in assists, 6 points in passing accuracy, 2 defensive involvements. Corresponds to jersey number 11. 8 | Harry Maguire: 1 goal, 5 points in speed, 1 point in assists, 7 points in passing accuracy, 9 defensive involvements. Corresponds to jersey number 5. 9 | Alejandro Garnacho: 8 goals, 7 points in speed, 8 points in assists, 6 points in passing accuracy, 0 defensive involvements. Corresponds to jersey number 17. 10 | Mason Mount: 2 goals, 6 points in speed, 4 points in assists, 8 points in passing accuracy, 1 defensive involvement. Corresponds to jersey number 7. 11 | The program functions as follows: The coach accesses the system and encounters a menu with the following options: 12 | 13 | Player Review: By entering the player's jersey number, they can access the player's characteristics. 14 | Compare two players: The system prompts for two jersey numbers and displays the data of both players on screen. 15 | Identify the fastest player: Displays the player with the most points in speed. 16 | Identify the top goal scorer: Displays the player with the most points in goals. 17 | Identify the player with the most assists: Displays the player with the most points in assists. 18 | Identify the player with the highest passing accuracy: Displays the player with the most points in passing accuracy. 19 | Identify the player with the most defensive involvements: Displays the player with the most points in defensive involvements. 20 | The system should also allow returning to the main menu. 21 | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 22 | 23 | 2. A travel agency has a special offer for traveling in any season of 2024. Their destinations are: 24 | 25 | Winter: Andorra and Switzerland. In Andorra, there are skiing activities, and in Switzerland, there's a tour of the Swiss Alps. 26 | Summer: Spain and Portugal. In Spain, there are hiking and extreme sports activities. In Portugal, there are activities on the beaches. 27 | Spring: France and Italy. In France, there are extreme sports activities, and in Italy, there's a cultural and historical tour. 28 | Autumn: Belgium and Austria. In Belgium, there are hiking and extreme sports activities, and in Austria, there are cultural and historical activities. 29 | Note: Traveling in winter costs $100, in autumn $200, in spring $300, and in summer $400. 30 | 31 | Design a system that helps users choose their best destination according to their personal preferences and the season they want to travel in. 32 | 12. Important: With the information you have, you should ask the user the right questions and display on screen what their best destination would be. 33 | 34 | Clue: You could consider the user's budget 35 | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 36 | 37 | 3. 38 | 39 | The Valencia Hospital is developing an application to manage appointments. Design an algorithm for this application with the following features: 40 | 41 | It must have a login and validate the data; after the third failed attempt, it should be locked. 42 | The user can schedule an appointment for: General Medicine, Emergency Care, Clinical Analysis, Cardiology, Neurology, Nutrition, Physiotherapy, Traumatology, and Internal Medicine. 43 | There are 3 doctors for each specialty. 44 | The user can only book one appointment per specialist. An error message should be displayed if the user tries to choose two appointments with the same doctor or the same specialty. As a developer, you can choose the doctors' names. 45 | The maximum limit for appointments, in general, is 3. 46 | Upon selecting a specialty, it will display if the user prefers a morning or afternoon appointment and show available hours. As a developer, you can choose the hours. 47 | Display available specialists. 48 | The user can choose their preferred specialist. 49 | The basic process is: Login -> Choose specialty -> Choose doctor -> Choose time slot. 50 | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 51 | 52 | 4. The RH Hotels chain has hired you to design the booking algorithm for their mobile application: 53 | 54 | Login; it should be locked after the third failed attempt. 55 | The RH Hotels chain exists in 5 countries: Spain, France, Portugal, Italy, and Germany. 56 | Each country has its own hotels located in: Madrid, Barcelona, Valencia, Munich, Berlin, Rome, Milan, Paris, Marseille, Madeira, Lisbon, and Porto. 57 | All hotels have 24 rooms each: 6 VIP suites, 3 single rooms, 6 double rooms, 6 group rooms, and 3 luxury suites. 58 | The user can make reservations at any time of the year and at any hour, and book as many rooms as desired. 59 | Single rooms are priced at $100 per night, double rooms at $200 per night, group rooms at $350 per night, VIP suites at $450 per night, and luxury suites at $550 per night, applicable at any time of the year. 60 | The algorithm functions as follows: Login, choose country, choose city, choose room type, select the number of nights, collect user data (name, surname, ID/passport), 61 | print the total cost, and if the user agrees, print a confirmation message for the reservation. If not, return to the main menu. 62 | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 63 | 64 | 5. Turkish Airlines has just launched an offer to travel among the following destinations: Turkey, Greece, Lebanon, Spain, and Portugal. Develop an algorithm with the following characteristics: 65 | It must have a login and validate the data; after the third failed attempt, it should be locked. 66 | The user must choose the origin country and the destination country, the flight date, and the condition: Economy or First Class. 67 | The user must choose if they want to check an additional piece of luggage into the hold. 68 | Hand luggage is free of charge. 69 | The user must purchase both the outbound and return tickets. 70 | The user can choose their preferred meal: Regular, Vegetarian, Kosher. 71 | The program must collect the following data: Name, country of origin, passport, and destination country. 72 | Upon completing the process, the system will display everything the user has previously chosen along with their information. 73 | The system will provide the option to confirm the reservation or cancel it. If the user chooses YES, a confirmation message will appear. If not, it will return to the main menu. 74 | 75 | 76 | 77 | Enjoy! 78 | 79 | @blindma1den --------------------------------------------------------------------------------