From d5634683a56eafb55b6e23ba0b5227a354fbfe94 Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:13:00 +0530 Subject: [PATCH 01/10] Delete members_selection_test/MATLAB questions directory --- .../Question_1_Data_Science_Laboratory.m | 102 ----------------- .../Question_2_Space_Mission_Control.m | 106 ------------------ 2 files changed, 208 deletions(-) delete mode 100644 members_selection_test/MATLAB questions/Question_1_Data_Science_Laboratory.m delete mode 100644 members_selection_test/MATLAB questions/Question_2_Space_Mission_Control.m diff --git a/members_selection_test/MATLAB questions/Question_1_Data_Science_Laboratory.m b/members_selection_test/MATLAB questions/Question_1_Data_Science_Laboratory.m deleted file mode 100644 index 988837b..0000000 --- a/members_selection_test/MATLAB questions/Question_1_Data_Science_Laboratory.m +++ /dev/null @@ -1,102 +0,0 @@ -%{ -============================================================================= - MATrix Club - Member Selection Test - MATLAB Question 1: The Data Science Laboratory -============================================================================= - -πŸ§ͺ THE STORY: -============ -Welcome to the prestigious Stellar Research Institute! You are a new data -scientist who has just joined Dr. Elena Rodriguez's team. Your first assignment -is to analyze experimental data from three different research projects that -are stored in matrix format. - -Dr. Rodriguez explains: "In our lab, we store experimental results in matrices -where each row represents a different experiment and each column represents -different measurement parameters. Your job is to create these data matrices -and perform various analyses to help us understand our research findings." - -The institute has three ongoing projects: -1. Solar Panel Efficiency Study (3x4 matrix) -2. Plant Growth Analysis (2x5 matrix) -3. Weather Pattern Research (4x3 matrix) - -As a data scientist, you need to master matrix operations to analyze complex -datasets and extract meaningful insights from experimental data. - -🎯 YOUR RESEARCH MISSION: -======================== -Create MATLAB programs that help Dr. Rodriguez's team organize, manipulate, -and analyze their experimental data using matrix operations. You'll work with -real-world scenarios that require different matrix manipulations. - -πŸ“‹ REQUIREMENTS: -=============== -Complete the following tasks for the research team: - -TASK 1: Solar Panel Efficiency Data -Create a 3x4 matrix where: -- Rows represent 3 different solar panel types (Type A, B, C) -- Columns represent efficiency at 4 different times (9AM, 12PM, 3PM, 6PM) -- Use this data: [85 92 88 78; 79 87 85 72; 91 95 89 82] - -TASK 2: Basic Matrix Analysis -For the solar panel matrix, calculate and display: -a) Matrix dimensions using size() function -b) Maximum efficiency value using max() function -c) Minimum efficiency value using min() function -d) Sum of each row using sum() function -e) Average of each column using mean() function - -TASK 3: Data Extraction -a) Extract efficiency data for Type B solar panels (row 2) -b) Extract 12PM efficiency data for all panel types (column 2) -c) Find the efficiency value for Type C at 3PM (specific element) - -πŸ“Š EXPECTED EXAMPLES: -==================== -Your program should produce output similar to: - -Example Output: -"Solar Panel Efficiency Analysis Results: -Matrix Dimensions: 3 x 4 -Maximum Efficiency: 95% -Type B Data: [79 87 85 72] -12PM Readings: [92; 87; 95]" - -πŸ’‘ HINTS: -======== -1. Use built-in functions: size(), max(), min(), sum(), mean() -2. Matrix indexing: A(row, column) for specific elements -3. Colon operator: A(2,:) for entire row, A(:,3) for entire column -4. Use fprintf() for formatted output -5. Remember MATLAB uses 1-based indexing - -πŸ“š REQUIRED MATLAB FUNCTIONS TO USE: -=================================== -- Matrix creation using square brackets [] -- size(), max(), min(), sum(), mean() -- Element access using parentheses () -- Colon operator for slicing (:) - -οΏ½ TIME LIMIT: 30 minutes -πŸ’― POINTS: 25 points - -πŸ“ SUBMISSION INSTRUCTIONS: -========================== -- Create a new MATLAB file named "Data_Lab_[YourName].m" -- Save your solution in the "Submissions" folder -- Do NOT modify this question file -- Include your name and roll number as comments at the top of your solution file - -Good luck with your research analysis! Dr. Rodriguez and the team are -counting on your data science skills! πŸ”¬πŸ“Š - -============================================================================= - SUBMISSION TEMPLATE: -% Name: [Your Full Name] -% Roll Number: [Your Roll Number] -% Question: Data Science Laboratory -% Time: 30 minutes - -% Write your solution below this line diff --git a/members_selection_test/MATLAB questions/Question_2_Space_Mission_Control.m b/members_selection_test/MATLAB questions/Question_2_Space_Mission_Control.m deleted file mode 100644 index 186e064..0000000 --- a/members_selection_test/MATLAB questions/Question_2_Space_Mission_Control.m +++ /dev/null @@ -1,106 +0,0 @@ -%{ -============================================================================= - MATrix Club - Member Selection Test - MATLAB Question 2: The Space Mission Control Center -============================================================================= - -πŸš€ THE STORY: -============ -Congratulations! You've been selected to join NASA's Mars Exploration Team -as a Mission Control Data Analyst. Your first assignment is to work with -Commander Sarah Chen to process critical data arrays from the Mars Rover -"Discovery" that has been collecting soil samples from different locations -on the Red Planet. - -Commander Chen explains: "Our Mars Rover has been busy! It has collected -soil density measurements from 8 different locations, and we need to analyze -this data to determine the best spots for our upcoming human mission landing -sites. Arrays are perfect for storing this sequential data because each -measurement corresponds to a specific location along the rover's path." - -The Mission Control Center needs you to: -- Organize the rover's measurement data into arrays -- Perform statistical analysis to find optimal landing zones -- Create visualization data for the mission planning team -- Identify safe and unsafe areas based on soil density readings - -Your analysis will help determine where astronauts can safely land and -establish a temporary base on Mars! 🌌 - -🎯 YOUR SPACE MISSION: -===================== -Create MATLAB programs that help Mission Control analyze Mars Rover data -using array operations. Your work will directly impact the success of -humanity's first crewed mission to Mars! - -πŸ“‹ MISSION REQUIREMENTS: -======================= -Complete the following tasks for Mission Control: - -TASK 1: Rover Data Collection -Create arrays for the following Mars Rover measurements: -a) Soil density readings: [2.3, 1.8, 3.1, 2.7, 1.9, 3.4, 2.1, 2.9] (g/cmΒ³) -b) Location coordinates: [10, 25, 40, 55, 70, 85, 100, 115] (meters from base) - -TASK 2: Basic Array Analysis -For the soil density array, calculate and display: -a) Total number of measurement points using length() -b) Maximum density value using max() -c) Minimum density value using min() -d) Average soil density using mean() - -TASK 3: Data Processing -a) Find all soil density readings above 2.5 g/cmΒ³ (heavy soil zones) -b) Count how many locations have density above 2.5 -c) Find the location (index) of the maximum density reading - -πŸ“Š EXPECTED EXAMPLES: -==================== -Your program should produce output similar to: - -Example Output: -"=== MARS MISSION CONTROL - ROVER DATA ANALYSIS === -Total Measurement Points: 8 -Maximum Soil Density: 3.4 g/cmΒ³ -Average Density: 2.525 g/cmΒ³ -Heavy Soil Locations: 3 sites found" - -πŸ’‘ MISSION HINTS: -================ -1. Use built-in functions: length(), max(), min(), mean() -2. Logical indexing: array(array > threshold) for filtering -3. find() function to locate specific values -4. Use clear variable names like soil_density, rover_locations -5. Remember MATLAB uses 1-based indexing - -πŸ“š REQUIRED MATLAB FUNCTIONS TO USE: -=================================== -- Array creation using square brackets [] -- length(), max(), min(), mean() -- find() for locating elements -- Logical indexing with comparison operators -- fprintf() for formatted output - -πŸ•’ TIME LIMIT: 30 minutes -πŸ’― POINTS: 25 points - -πŸ“ SUBMISSION INSTRUCTIONS: -========================== -- Create a new MATLAB file named "Space_Mission_[YourName].m" -- Save your solution in the "Submissions" folder -- Do NOT modify this question file -- Include your name and roll number as comments at the top of your solution file - -The future of Mars exploration is in your hands! Commander Chen and the -entire Mission Control team are counting on your array analysis skills! - -T-minus 30 minutes and counting... Launch your MATLAB code! πŸ›ΈπŸ‘¨β€πŸš€ - -============================================================================= - SUBMISSION TEMPLATE: -% Name: [Your Full Name] -% Roll Number: [Your Roll Number] -% Question: Space Mission Control -% Time: 30 minutes - -% Write your solution below this line From 7d958da88e7e8a2e7d2ec2f0842b80802a952899 Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:13:08 +0530 Subject: [PATCH 02/10] Delete members_selection_test/python questions directory --- .../Question_1_Prime_Number_Detective.py | 114 ---------------- .../Question_2_Palindrome_Portal.py | 128 ------------------ 2 files changed, 242 deletions(-) delete mode 100644 members_selection_test/python questions/Question_1_Prime_Number_Detective.py delete mode 100644 members_selection_test/python questions/Question_2_Palindrome_Portal.py diff --git a/members_selection_test/python questions/Question_1_Prime_Number_Detective.py b/members_selection_test/python questions/Question_1_Prime_Number_Detective.py deleted file mode 100644 index 1a0cde7..0000000 --- a/members_selection_test/python questions/Question_1_Prime_Number_Detective.py +++ /dev/null @@ -1,114 +0,0 @@ -""" -============================================================================= - MATrix Club - Member Selection Test - Python Question 1: Prime Number Detective -============================================================================= - -πŸ” THE STORY: -============ -You are a detective working for the Mathematical Investigation Bureau (MIB). -Your latest case involves catching a notorious number thief who only steals -"prime numbers" from a bank's security vault. The bank's security system -needs your help to identify which numbers in their vault are prime numbers -so they can put extra protection on them. - -A prime number is a special number that has exactly two factors: 1 and itself. -For example, 7 is prime because it can only be divided by 1 and 7 without -leaving a remainder. - -🎯 YOUR MISSION: -=============== -Write a Python program that helps the bank identify whether a given number -is prime or not. Your program should be able to check any positive integer -and tell the bank security team if they need to put extra protection on it. - -πŸ“‹ REQUIREMENTS: -=============== -1. Create a function called `is_prime(number)` that takes a positive integer as input -2. The function should return True if the number is prime, False otherwise -3. Handle special cases properly (numbers less than 2 are not prime) -4. Create a main program that asks the user to input a number and displays the result -5. Make your program user-friendly with clear messages - -πŸ“Š TEST CASES: -============= -Your program should work correctly for these examples: - -Example 1: -Input: 7 -Output: "7 is a prime number! 🚨 EXTRA SECURITY NEEDED!" - -Example 2: -Input: 12 -Output: "12 is not a prime number. Regular security is sufficient." - -Example 3: -Input: 2 -Output: "2 is a prime number! 🚨 EXTRA SECURITY NEEDED!" - -Example 4: -Input: 1 -Output: "1 is not a prime number. Regular security is sufficient." - -Example 5: -Input: 29 -Output: "29 is a prime number! 🚨 EXTRA SECURITY NEEDED!" - -πŸ’‘ HINTS: -======== -1. Remember that prime numbers are greater than 1 -2. The number 2 is the only even prime number -3. To check if a number is prime, try dividing it by all numbers from 2 to √n -4. If any division results in remainder 0, the number is not prime -5. You can use the modulo operator (%) to check remainders -6. Consider using a loop to check all possible divisors - -πŸ“ INPUT FORMAT: -=============== -- A positive integer from the user -- Your program should handle invalid inputs gracefully - -πŸ“€ OUTPUT FORMAT: -================ -- A clear message stating whether the number is prime or not -- Include the security recommendation for the bank - -🎯 EVALUATION CRITERIA: -====================== -- Correctness: Does your function identify prime numbers correctly? -- Code Quality: Is your code readable and well-structured? -- User Experience: Are your messages clear and helpful? -- Edge Cases: Do you handle special cases (like 1, 2, negative numbers)? -- Efficiency: Is your algorithm reasonably efficient? - -⚠️ IMPORTANT NOTES: -================== -- Do not use any built-in prime checking functions -- Write your own algorithm from scratch -- Add comments to explain your logic -- Test your function with multiple examples -- Make sure your code runs without errors - -πŸ•’ TIME LIMIT: 30 minutes -πŸ’― POINTS: 25 points - -πŸ“ SUBMISSION INSTRUCTIONS: -========================== -- Create a new Python file named "Prime_Detective_[YourName].py" -- Save your solution in the "Submissions" folder -- Do NOT modify this question file -- Include your name and roll number as comments at the top of your solution file - -Good luck, Detective! The Mathematical Investigation Bureau is counting on you! πŸ•΅οΈβ€β™€οΈ - -=============================================================================== - SUBMISSION TEMPLATE: -=============================================================================== - -# Name: [Your Full Name] -# Roll Number: [Your Roll Number] -# Question: Prime Number Detective -# Time: 30 minutes - -# Write your solution below this line -""" diff --git a/members_selection_test/python questions/Question_2_Palindrome_Portal.py b/members_selection_test/python questions/Question_2_Palindrome_Portal.py deleted file mode 100644 index 9a5dbb4..0000000 --- a/members_selection_test/python questions/Question_2_Palindrome_Portal.py +++ /dev/null @@ -1,128 +0,0 @@ -""" -============================================================================= - MATrix Club - Member Selection Test - Python Question 2: The Palindrome Portal -============================================================================= - -🌟 THE STORY: -============ -Welcome to the mystical world of Wordlandia! You are a brave adventurer who -has discovered an ancient portal that only opens for magical words called -"palindromes." These are special words that read the same forwards and -backwards, like "radar" or "level." - -The portal guardian has challenged you: "Only those who can identify the -magical palindromes shall pass through to the treasure chamber!" You must -create a spell (program) that can detect these magical words to help other -adventurers on their quest. - -Legend says that palindromes hold ancient power because they represent -balance and symmetry in the universe. Some famous palindromes include: -- "mom" and "dad" (family magic) -- "radar" (detection magic) -- "level" (balance magic) -- "madam" (respectful magic) - -🎯 YOUR QUEST: -============= -Write a Python program that helps adventurers determine if their word is a -magical palindrome that will open the portal. Your program should check any -word or phrase and tell them if they can proceed to the treasure chamber. - -πŸ“‹ REQUIREMENTS: -=============== -1. Create a function called `is_palindrome(text)` that takes a string as input -2. The function should return True if the text is a palindrome, False otherwise -3. Your check should be case-insensitive (ignore uppercase/lowercase differences) -4. Ignore spaces and punctuation (focus only on letters) -5. Create a main program that asks the user to input text and displays the result -6. Make your program engaging with magical-themed messages - -πŸ“Š TEST CASES: -============= -Your spell should work correctly for these examples: - -Example 1: -Input: "radar" -Output: "✨ 'radar' is a magical palindrome! The portal opens before you! ✨" - -Example 2: -Input: "hello" -Output: "😞 'hello' is not a palindrome. The portal remains sealed." - -Example 3: -Input: "A man a plan a canal Panama" -Output: "✨ 'A man a plan a canal Panama' is a magical palindrome! The portal opens before you! ✨" - -Example 4: -Input: "race a car" -Output: "😞 'race a car' is not a palindrome. The portal remains sealed." - -Example 5: -Input: "Was it a rat I saw?" -Output: "✨ 'Was it a rat I saw?' is a magical palindrome! The portal opens before you! ✨" - -Example 6: -Input: "Madam" -Output: "✨ 'Madam' is a magical palindrome! The portal opens before you! ✨" - -πŸ’‘ HINTS: -======== -1. Convert the string to lowercase for comparison -2. Remove spaces and punctuation before checking -3. Compare the string with its reverse -4. You can reverse a string using slicing: text[::-1] -5. Use string methods like .replace() to remove spaces -6. Consider using .isalpha() to keep only letters -7. Think about how to handle empty strings - -πŸ“ INPUT FORMAT: -=============== -- Any string (word or phrase) from the user -- May contain uppercase/lowercase letters, spaces, and punctuation - -πŸ“€ OUTPUT FORMAT: -================ -- A magical message indicating if the text is a palindrome -- Include encouraging or consoling words for the adventurer - -🎯 EVALUATION CRITERIA: -====================== -- Correctness: Does your function correctly identify palindromes? -- Robustness: Does it handle different cases (upper/lower, spaces, punctuation)? -- Code Quality: Is your code clean and well-commented? -- User Experience: Are your messages engaging and clear? -- Algorithm: Is your approach logical and efficient? - -⚠️ IMPORTANT NOTES: -================== -- Handle both single words and phrases -- Make your function case-insensitive -- Ignore spaces and punctuation marks -- Add comments to explain your magical algorithm -- Test with various examples to ensure your spell works -- The portal is very picky - make sure your detection is accurate! - -πŸ•’ TIME LIMIT: 30 minutes -πŸ’― POINTS: 25 points - -πŸ“ SUBMISSION INSTRUCTIONS: -========================== -- Create a new Python file named "Palindrome_Portal_[YourName].py" -- Save your solution in the "Submissions" folder -- Do NOT modify this question file -- Include your name and roll number as comments at the top of your solution file - -May the magic of palindromes guide you on your coding quest! 🏰✨ - -=============================================================================== - SUBMISSION TEMPLATE: -=============================================================================== - -# Name: [Your Full Name] -# Roll Number: [Your Roll Number] -# Question: Palindrome Portal -# Time: 30 minutes - -# Write your solution below this line -""" From 1e0c1cb5673f782176b3aa3a827314a242dccfdb Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:20:22 +0530 Subject: [PATCH 03/10] Update README.md --- members_selection_test/README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/members_selection_test/README.md b/members_selection_test/README.md index a242254..b5c9b8e 100644 --- a/members_selection_test/README.md +++ b/members_selection_test/README.md @@ -213,15 +213,6 @@ git push origin solutions-YOUR_NAME -## ⏰ Time Management Tips - -### Recommended Schedule (2 hours total): -- **Minutes 0-5**: Set up GitHub and clone repository -- **Minutes 5-35**: Python Question 1 (30 minutes) -- **Minutes 35-65**: Python Question 2 (30 minutes) -- **Minutes 65-95**: MATLAB Question 1 (30 minutes) -- **Minutes 95-115**: MATLAB Question 2 (20 minutes) -- **Minutes 115-120**: Create pull request and submit (5 minutes) ### Pro Tips: - βœ… **Start with the language you're more comfortable with** From a6d284eba21f404a4fb8e24b59ab4c87106e898d Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:24:17 +0530 Subject: [PATCH 04/10] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7860ea5..b21ac96 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ git config --global user.email "your.email@college.edu" --- +## NOTE: Clone the repository only after the questions get posted. + + ## πŸš€ Getting Started: Fork, Copy URL, and Clone ### 1. **Fork this Repository** From e60762d85d50f8a36061bc9ed61d5b2303283d67 Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 17:52:25 +0530 Subject: [PATCH 05/10] Create MATLAB question for data science assignment --- .../Q1_Data_Science_Laboratory.m | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 members_selection_test/MATLAB_Questions/Q1_Data_Science_Laboratory.m diff --git a/members_selection_test/MATLAB_Questions/Q1_Data_Science_Laboratory.m b/members_selection_test/MATLAB_Questions/Q1_Data_Science_Laboratory.m new file mode 100644 index 0000000..9c72eca --- /dev/null +++ b/members_selection_test/MATLAB_Questions/Q1_Data_Science_Laboratory.m @@ -0,0 +1,103 @@ +%{ +============================================================================= + MATrix Club - Member Selection Test + MATLAB Question 1: The Data Science Laboratory +============================================================================= + +πŸ§ͺ THE STORY: +============ +Welcome to the prestigious Stellar Research Institute! You are a new data +scientist who has just joined Dr. Elena Rodriguez's team. Your first assignment +is to analyze experimental data from three different research projects that +are stored in matrix format. + +Dr. Rodriguez explains: "In our lab, we store experimental results in matrices +where each row represents a different experiment and each column represents +different measurement parameters. Your job is to create these data matrices +and perform various analyses to help us understand our research findings." + +The institute has three ongoing projects: +1. Solar Panel Efficiency Study (3x4 matrix) +2. Plant Growth Analysis (2x5 matrix) +3. Weather Pattern Research (4x3 matrix) + +As a data scientist, you need to master matrix operations to analyze complex +datasets and extract meaningful insights from experimental data. + +🎯 YOUR RESEARCH MISSION: +======================== +Create MATLAB programs that help Dr. Rodriguez's team organize, manipulate, +and analyze their experimental data using matrix operations. You'll work with +real-world scenarios that require different matrix manipulations. + +πŸ“‹ REQUIREMENTS: +=============== +Complete the following tasks for the research team: + +TASK 1: Solar Panel Efficiency Data +Create a 3x4 matrix where: +- Rows represent 3 different solar panel types (Type A, B, C) +- Columns represent efficiency at 4 different times (9AM, 12PM, 3PM, 6PM) +- Use this data: [85 92 88 78; 79 87 85 72; 91 95 89 82] + +TASK 2: Basic Matrix Analysis +For the solar panel matrix, calculate and display: +a) Matrix dimensions using size() function +b) Maximum efficiency value using max() function +c) Minimum efficiency value using min() function +d) Sum of each row using sum() function +e) Average of each column using mean() function + +TASK 3: Data Extraction +a) Extract efficiency data for Type B solar panels (row 2) +b) Extract 12PM efficiency data for all panel types (column 2) +c) Find the efficiency value for Type C at 3PM (specific element) + +πŸ“Š EXPECTED EXAMPLES: +==================== +Your program should produce output similar to: + +Example Output: +"Solar Panel Efficiency Analysis Results: +Matrix Dimensions: 3 x 4 +Maximum Efficiency: 95% +Type B Data: [79 87 85 72] +12PM Readings: [92; 87; 95]" + +πŸ’‘ HINTS: +======== +1. Use built-in functions: size(), max(), min(), sum(), mean() +2. Matrix indexing: A(row, column) for specific elements +3. Colon operator: A(2,:) for entire row, A(:,3) for entire column +4. Use fprintf() for formatted output +5. Remember MATLAB uses 1-based indexing + +πŸ“š REQUIRED MATLAB FUNCTIONS TO USE: +=================================== +- Matrix creation using square brackets [] +- size(), max(), min(), sum(), mean() +- Element access using parentheses () +- Colon operator for slicing (:) + +οΏ½ TIME LIMIT: 30 minutes +πŸ’― POINTS: 25 points + +πŸ“ SUBMISSION INSTRUCTIONS: +========================== +- Create a new MATLAB file named "Data_Lab_[YourName].m" +- Save your solution in your personal folder inside the "Submissions" folder +- Do NOT modify this question file +- Include your name and roll number as comments at the top of your solution file + +Good luck with your research analysis! Dr. Rodriguez and the team are +counting on your data science skills! πŸ”¬πŸ“Š + +============================================================================= + SUBMISSION TEMPLATE: +% Name: [Your Full Name] +% Roll Number: [Your Roll Number] +% Question: Data Science Laboratory + + +% Write your solution below this line +%} From a354d22c3cfc0f3b9eee39969d8f693545fab3dd Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 17:53:22 +0530 Subject: [PATCH 06/10] Create Q2_Space_Mission_Control.m --- .../Q2_Space_Mission_Control.m | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m diff --git a/members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m b/members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m new file mode 100644 index 0000000..c80d0ae --- /dev/null +++ b/members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m @@ -0,0 +1,107 @@ +%{ +============================================================================= + MATrix Club - Member Selection Test + MATLAB Question 2: The Space Mission Control Center +============================================================================= + +πŸš€ THE STORY: +============ +Congratulations! You've been selected to join NASA's Mars Exploration Team +as a Mission Control Data Analyst. Your first assignment is to work with +Commander Sarah Chen to process critical data arrays from the Mars Rover +"Discovery" that has been collecting soil samples from different locations +on the Red Planet. + +Commander Chen explains: "Our Mars Rover has been busy! It has collected +soil density measurements from 8 different locations, and we need to analyze +this data to determine the best spots for our upcoming human mission landing +sites. Arrays are perfect for storing this sequential data because each +measurement corresponds to a specific location along the rover's path." + +The Mission Control Center needs you to: +- Organize the rover's measurement data into arrays +- Perform statistical analysis to find optimal landing zones +- Create visualization data for the mission planning team +- Identify safe and unsafe areas based on soil density readings + +Your analysis will help determine where astronauts can safely land and +establish a temporary base on Mars! 🌌 + +🎯 YOUR SPACE MISSION: +===================== +Create MATLAB programs that help Mission Control analyze Mars Rover data +using array operations. Your work will directly impact the success of +humanity's first crewed mission to Mars! + +πŸ“‹ MISSION REQUIREMENTS: +======================= +Complete the following tasks for Mission Control: + +TASK 1: Rover Data Collection +Create arrays for the following Mars Rover measurements: +a) Soil density readings: [2.3, 1.8, 3.1, 2.7, 1.9, 3.4, 2.1, 2.9] (g/cmΒ³) +b) Location coordinates: [10, 25, 40, 55, 70, 85, 100, 115] (meters from base) + +TASK 2: Basic Array Analysis +For the soil density array, calculate and display: +a) Total number of measurement points using length() +b) Maximum density value using max() +c) Minimum density value using min() +d) Average soil density using mean() + +TASK 3: Data Processing +a) Find all soil density readings above 2.5 g/cmΒ³ (heavy soil zones) +b) Count how many locations have density above 2.5 +c) Find the location (index) of the maximum density reading + +πŸ“Š EXPECTED EXAMPLES: +==================== +Your program should produce output similar to: + +Example Output: +"=== MARS MISSION CONTROL - ROVER DATA ANALYSIS === +Total Measurement Points: 8 +Maximum Soil Density: 3.4 g/cmΒ³ +Average Density: 2.525 g/cmΒ³ +Heavy Soil Locations: 3 sites found" + +πŸ’‘ MISSION HINTS: +================ +1. Use built-in functions: length(), max(), min(), mean() +2. Logical indexing: array(array > threshold) for filtering +3. find() function to locate specific values +4. Use clear variable names like soil_density, rover_locations +5. Remember MATLAB uses 1-based indexing + +πŸ“š REQUIRED MATLAB FUNCTIONS TO USE: +=================================== +- Array creation using square brackets [] +- length(), max(), min(), mean() +- find() for locating elements +- Logical indexing with comparison operators +- fprintf() for formatted output + +πŸ•’ TIME LIMIT: 30 minutes +πŸ’― POINTS: 25 points + +πŸ“ SUBMISSION INSTRUCTIONS: +========================== +- Create a new MATLAB file named "Data_Lab_[YourName].m" +- Save your solution in your personal folder inside the "Submissions" folder +- Do NOT modify this question file +- Include your name and roll number as comments at the top of your solution file + +The future of Mars exploration is in your hands! Commander Chen and the +entire Mission Control team are counting on your array analysis skills! + +T-minus 30 minutes and counting... Launch your MATLAB code! πŸ›ΈπŸ‘¨β€πŸš€ + +============================================================================= + SUBMISSION TEMPLATE: +% Name: [Your Full Name] +% Roll Number: [Your Roll Number] +% Question: Space Mission Control +% Time: 30 minutes + +% Write your solution below this line +%} From d009579b6aa89728f9df67cf3397c1b1f69397e1 Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 17:54:51 +0530 Subject: [PATCH 07/10] Create Q1_Prime_Number_Detective.py --- .../Q1_Prime_Number_Detective.py | 114 ++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 members_selection_test/Python_Questions/Q1_Prime_Number_Detective.py diff --git a/members_selection_test/Python_Questions/Q1_Prime_Number_Detective.py b/members_selection_test/Python_Questions/Q1_Prime_Number_Detective.py new file mode 100644 index 0000000..b6cabc9 --- /dev/null +++ b/members_selection_test/Python_Questions/Q1_Prime_Number_Detective.py @@ -0,0 +1,114 @@ +""" +============================================================================= + MATrix Club - Member Selection Test + Python Question 1: Prime Number Detective +============================================================================= + +πŸ” THE STORY: +============ +You are a detective working for the Mathematical Investigation Bureau (MIB). +Your latest case involves catching a notorious number thief who only steals +"prime numbers" from a bank's security vault. The bank's security system +needs your help to identify which numbers in their vault are prime numbers +so they can put extra protection on them. + +A prime number is a special number that has exactly two factors: 1 and itself. +For example, 7 is prime because it can only be divided by 1 and 7 without +leaving a remainder. + +🎯 YOUR MISSION: +=============== +Write a Python program that helps the bank identify whether a given number +is prime or not. Your program should be able to check any positive integer +and tell the bank security team if they need to put extra protection on it. + +πŸ“‹ REQUIREMENTS: +=============== +1. Create a function called `is_prime(number)` that takes a positive integer as input +2. The function should return True if the number is prime, False otherwise +3. Handle special cases properly (numbers less than 2 are not prime) +4. Create a main program that asks the user to input a number and displays the result +5. Make your program user-friendly with clear messages + +πŸ“Š TEST CASES: +============= +Your program should work correctly for these examples: + +Example 1: +Input: 7 +Output: "7 is a prime number! 🚨 EXTRA SECURITY NEEDED!" + +Example 2: +Input: 12 +Output: "12 is not a prime number. Regular security is sufficient." + +Example 3: +Input: 2 +Output: "2 is a prime number! 🚨 EXTRA SECURITY NEEDED!" + +Example 4: +Input: 1 +Output: "1 is not a prime number. Regular security is sufficient." + +Example 5: +Input: 29 +Output: "29 is a prime number! 🚨 EXTRA SECURITY NEEDED!" + +πŸ’‘ HINTS: +======== +1. Remember that prime numbers are greater than 1 +2. The number 2 is the only even prime number +3. To check if a number is prime, try dividing it by all numbers from 2 to √n +4. If any division results in remainder 0, the number is not prime +5. You can use the modulo operator (%) to check remainders +6. Consider using a loop to check all possible divisors + +πŸ“ INPUT FORMAT: +=============== +- A positive integer from the user +- Your program should handle invalid inputs gracefully + +πŸ“€ OUTPUT FORMAT: +================ +- A clear message stating whether the number is prime or not +- Include the security recommendation for the bank + +🎯 EVALUATION CRITERIA: +====================== +- Correctness: Does your function identify prime numbers correctly? +- Code Quality: Is your code readable and well-structured? +- User Experience: Are your messages clear and helpful? +- Edge Cases: Do you handle special cases (like 1, 2, negative numbers)? +- Efficiency: Is your algorithm reasonably efficient? + +⚠️ IMPORTANT NOTES: +================== +- Do not use any built-in prime checking functions +- Write your own algorithm from scratch +- Add comments to explain your logic +- Test your function with multiple examples +- Make sure your code runs without errors + +πŸ•’ TIME LIMIT: 30 minutes +πŸ’― POINTS: 25 points + +πŸ“ SUBMISSION INSTRUCTIONS: +========================== +- Create a new Python file named "Prime_Detective_[YourName].py" +- Save your solution in your personal folder inside the "Submissions" folder +- Do NOT modify this question file +- Include your name and roll number as comments at the top of your solution file + +Good luck, Detective! The Mathematical Investigation Bureau is counting on you! πŸ•΅οΈβ€β™€οΈ + +=============================================================================== + SUBMISSION TEMPLATE: +=============================================================================== + +# Name: [Your Full Name] +# Roll Number: [Your Roll Number] +# Question: Prime Number Detective +# Time: 30 minutes + +# Write your solution below this line +""" From a6de5a01a0e698236eb6d79dbc2144c84023ccc2 Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 17:55:44 +0530 Subject: [PATCH 08/10] Create Q2_Palindrome_Portal.py --- .../Python_Questions/Q2_Palindrome_Portal.py | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 members_selection_test/Python_Questions/Q2_Palindrome_Portal.py diff --git a/members_selection_test/Python_Questions/Q2_Palindrome_Portal.py b/members_selection_test/Python_Questions/Q2_Palindrome_Portal.py new file mode 100644 index 0000000..6dc70f5 --- /dev/null +++ b/members_selection_test/Python_Questions/Q2_Palindrome_Portal.py @@ -0,0 +1,128 @@ +""" +============================================================================= + MATrix Club - Member Selection Test + Python Question 2: The Palindrome Portal +============================================================================= + +🌟 THE STORY: +============ +Welcome to the mystical world of Wordlandia! You are a brave adventurer who +has discovered an ancient portal that only opens for magical words called +"palindromes." These are special words that read the same forwards and +backwards, like "radar" or "level." + +The portal guardian has challenged you: "Only those who can identify the +magical palindromes shall pass through to the treasure chamber!" You must +create a spell (program) that can detect these magical words to help other +adventurers on their quest. + +Legend says that palindromes hold ancient power because they represent +balance and symmetry in the universe. Some famous palindromes include: +- "mom" and "dad" (family magic) +- "radar" (detection magic) +- "level" (balance magic) +- "madam" (respectful magic) + +🎯 YOUR QUEST: +============= +Write a Python program that helps adventurers determine if their word is a +magical palindrome that will open the portal. Your program should check any +word or phrase and tell them if they can proceed to the treasure chamber. + +πŸ“‹ REQUIREMENTS: +=============== +1. Create a function called `is_palindrome(text)` that takes a string as input +2. The function should return True if the text is a palindrome, False otherwise +3. Your check should be case-insensitive (ignore uppercase/lowercase differences) +4. Ignore spaces and punctuation (focus only on letters) +5. Create a main program that asks the user to input text and displays the result +6. Make your program engaging with magical-themed messages + +πŸ“Š TEST CASES: +============= +Your spell should work correctly for these examples: + +Example 1: +Input: "radar" +Output: "✨ 'radar' is a magical palindrome! The portal opens before you! ✨" + +Example 2: +Input: "hello" +Output: "😞 'hello' is not a palindrome. The portal remains sealed." + +Example 3: +Input: "A man a plan a canal Panama" +Output: "✨ 'A man a plan a canal Panama' is a magical palindrome! The portal opens before you! ✨" + +Example 4: +Input: "race a car" +Output: "😞 'race a car' is not a palindrome. The portal remains sealed." + +Example 5: +Input: "Was it a rat I saw?" +Output: "✨ 'Was it a rat I saw?' is a magical palindrome! The portal opens before you! ✨" + +Example 6: +Input: "Madam" +Output: "✨ 'Madam' is a magical palindrome! The portal opens before you! ✨" + +πŸ’‘ HINTS: +======== +1. Convert the string to lowercase for comparison +2. Remove spaces and punctuation before checking +3. Compare the string with its reverse +4. You can reverse a string using slicing: text[::-1] +5. Use string methods like .replace() to remove spaces +6. Consider using .isalpha() to keep only letters +7. Think about how to handle empty strings + +πŸ“ INPUT FORMAT: +=============== +- Any string (word or phrase) from the user +- May contain uppercase/lowercase letters, spaces, and punctuation + +πŸ“€ OUTPUT FORMAT: +================ +- A magical message indicating if the text is a palindrome +- Include encouraging or consoling words for the adventurer + +🎯 EVALUATION CRITERIA: +====================== +- Correctness: Does your function correctly identify palindromes? +- Robustness: Does it handle different cases (upper/lower, spaces, punctuation)? +- Code Quality: Is your code clean and well-commented? +- User Experience: Are your messages engaging and clear? +- Algorithm: Is your approach logical and efficient? + +⚠️ IMPORTANT NOTES: +================== +- Handle both single words and phrases +- Make your function case-insensitive +- Ignore spaces and punctuation marks +- Add comments to explain your magical algorithm +- Test with various examples to ensure your spell works +- The portal is very picky - make sure your detection is accurate! + +πŸ•’ TIME LIMIT: 30 minutes +πŸ’― POINTS: 25 points + +πŸ“ SUBMISSION INSTRUCTIONS: +========================== +- Create a new Python file named "Palindrome_Portal_[YourName].py" +- Save your solution in your personal folder inside the "Submissions" folder +- Do NOT modify this question file +- Include your name and roll number as comments at the top of your solution file + +May the magic of palindromes guide you on your coding quest! 🏰✨ + +=============================================================================== + SUBMISSION TEMPLATE: +=============================================================================== + +# Name: [Your Full Name] +# Roll Number: [Your Roll Number] +# Question: Palindrome Portal +# Time: 30 minutes + +# Write your solution below this line +""" From 300479a3111f937c2a34ac537e5e92a1275aa8c4 Mon Sep 17 00:00:00 2001 From: Jai Keshav Sharma <148455549+Jai-Keshav-Sharma@users.noreply.github.com> Date: Sat, 30 Aug 2025 17:56:23 +0530 Subject: [PATCH 09/10] Update Q2_Space_Mission_Control.m --- .../MATLAB_Questions/Q2_Space_Mission_Control.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m b/members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m index c80d0ae..4638a8a 100644 --- a/members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m +++ b/members_selection_test/MATLAB_Questions/Q2_Space_Mission_Control.m @@ -86,7 +86,7 @@ πŸ“ SUBMISSION INSTRUCTIONS: ========================== -- Create a new MATLAB file named "Data_Lab_[YourName].m" +- Create a new MATLAB file named "Space_Mission_[YourName].m" - Save your solution in your personal folder inside the "Submissions" folder - Do NOT modify this question file - Include your name and roll number as comments at the top of your solution file From 92260ae76a0a65b7bc73ceb54c29513c026401ed Mon Sep 17 00:00:00 2001 From: Tejasmishra66 <06tejasmishra06@gmail.com> Date: Sat, 30 Aug 2025 21:44:04 +0530 Subject: [PATCH 10/10] Create Tejas_Mishra_mst_Matlab_Q1.m --- .../Submissions/Tejas_Mishra_mst_Matlab_Q1.m | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 members_selection_test/Submissions/Tejas_Mishra_mst_Matlab_Q1.m diff --git a/members_selection_test/Submissions/Tejas_Mishra_mst_Matlab_Q1.m b/members_selection_test/Submissions/Tejas_Mishra_mst_Matlab_Q1.m new file mode 100644 index 0000000..8315670 --- /dev/null +++ b/members_selection_test/Submissions/Tejas_Mishra_mst_Matlab_Q1.m @@ -0,0 +1,31 @@ +% Name: Tejas Mishra +% Roll Number: 300012723066 +% Question: Space Mission Control +% Time: 30 minutes +% Create the matrix +solar_efficiency = [85 92 88 78; + 79 87 85 72; + 91 95 89 82]; + +% Basic Analysis +dimensions = size(solar_efficiency); % a) Matrix size +max_value = max(max(solar_efficiency)); % b) Max value +min_value = min(min(solar_efficiency)); % c) Min value +row_sum = sum(solar_efficiency, 2); % d) Sum of each row +column_avg = mean(solar_efficiency); % e) Average of each column + +% Data Extraction +typeB = solar_efficiency(2, :); % a) Row 2 +noon_values = solar_efficiency(:, 2); % b) Column 2 +typeC_3PM = solar_efficiency(3, 3); % c) Row 3, Column 3 + +% Display results +disp('Solar Panel Efficiency Analysis Results:') +disp(['Matrix Dimensions: ', num2str(dimensions(1)), ' x ', num2str(dimensions(2))]) +disp(['Maximum Efficiency: ', num2str(max_value), '%']) +disp(['Minimum Efficiency: ', num2str(min_value), '%']) +disp(['Sum of Each Row: ', num2str(row_sum')]) +disp(['Average of Each Column: ', num2str(column_avg)]) +disp(['Type B Data: ', num2str(typeB)]) +disp(['12PM Readings: ', num2str(noon_values')]) +disp(['Efficiency of Type C at 3PM: ', num2str(typeC_3PM), '%'])