Module 1  : (Problem-Solving Skills for Programming)


Introduction to Programming 


What is Programming ?

Programming is the process of giving ordered instructions to a computer so that it can perform a specific task or solve a problem.

Through programming, we can create various types of software, apps, games, and websites


प्रोग्रामिंग क्या है?

प्रोग्रामिंग कंप्यूटर को क्रमबद्ध निर्देश देने की प्रक्रिया है, ताकि वह किसी विशिष्ट कार्य को कर सके या समस्या का समाधान कर सके।

प्रोग्रामिंग के माध्यम से हम विभिन्न प्रकार के सॉफ्टवेयर, ऐप्स, गेम्स और वेबसाइट बना सकते हैं।

Program : Program is a set of instructions that a computer can execute.

 

Programmer: Programmer is a person who writes, tests, and maintains programs.

 

Programming : Programming is the process of writing, testing, and maintaining program.

 

प्रोग्राम : प्रोग्राम निर्देशों का एक समूह है जिसे कंप्यूटर निष्पादित कर सकता है।

 

प्रोग्रामर : प्रोग्रामर वह व्यक्ति है जो प्रोग्राम लिखता है, परीक्षण करता है और उन्हें बनाए रखता है।

 

प्रोग्रामिंग : प्रोग्रामिंग प्रोग्राम लिखने, परीक्षण करने और उन्हें बनाए रखने की प्रक्रिया है।


Every program is built of three fundamental components :

Input: The data or information that the program receives to work. This could be
data, numbers, text etc.


Process: This involves the logic or sequence of steps used to transform the
input into output. This could involve calculations, comparisons, decisions, or any
actions needed to reach a solution.


Output: Finally, the output is the final result after the process is executed.


प्रत्येक प्रोग्राम तीन मौलिक घटकों से बना होता है:

इनपुट: वह डेटा या जानकारी जो प्रोग्राम को काम करने के लिए मिलती है। यह डेटा, संख्याएँ, टेक्स्ट आदि हो सकता है।


प्रोसेस: इसमें वह तर्क या चरणों के क्रम शामिल होते है जिसका उपयोग इनपुट को आउटपुट में बदलने के लिए किया जाता है। इसमें गणनाएँ, तुलना, निर्णय या किसी समाधान तक पहुँचने के लिए आवश्यक कोई भी कार्य शामिल हो सकता है।


आउटपुट: अंततः, आउटपुट प्रक्रिया के निष्पादन के बाद अंतिम परिणाम होता है।


Click Here to Download PDF (English Notes)


Practice Exercise




Solutions

Ans 1 :

The proper sequence for cooking tasty Maggi noodles:

Step No. 1: Put water in a pan and let it boil.
Step No. 2: Put Maggi and Masalas in the pan.
Step No. 3: Stir it occasionally and wait for 15 minutes to boil.
Step No. 4: Transfer the cooked Maggi from pan to bowl.
Step No. 5: Serve the tasty Maggi in a bowl.

स्वादिष्ट मैग्गी बनाने की सही प्रक्रिया :

चरण 1: एक पैन में पानी डालें और इसे उबलने दें।
चरण 2: पैन में मग्गी और मसाले डालें।
चरण 3: इसे बीच बीच में हिलाते रहें और उबलने के लिए 15 मिनट तक प्रतीक्षा करें।
चरण 4: पैन से पकी हुई मैग्गी को कटोरे में स्थानांतरित करें।
चरण 5: कटोरे में स्वादिष्ट मैग्गी परोसें।

Ans 2 :

Input : Water, Maggi Noodles,Masalas

Output : Delicious Maggi

Sequence of Instructions : 

Step No. 1: Put water in a pan and let it boil.
Step No. 2: Put Maggi and Masalas in the pan.
Step No. 3: Stir it occasionally and wait for 15 minutes to boil.
Step No. 4: Transfer the cooked Maggi from pan to bowl.
Step No. 5: Serve the tasty Maggi in a bowl.

Input : पानी, मैग्गी, मसाले

Output : स्वादिष्ट मैग्गी

Sequence of Instructions : 

चरण 1: एक पैन में पानी डालें और इसे उबलने दें।
चरण 2: पैन में मग्गी और मसाले डालें।
चरण 3: इसे बीच बीच में हिलाते रहें और उबलने के लिए 15 मिनट तक प्रतीक्षा करें।
चरण 4: पैन से पकी हुई मैग्गी को कटोरे में स्थानांतरित करें।
चरण 5: कटोरे में स्वादिष्ट मैग्गी परोसें।

Ans 3 :

Proper sequence for sowing seeds in a pot:

  • Choose a pot that has holes at the bottom for drainage.
  • Fill the pot with good quality, light, and nutrient-rich soil.
  • Soak the seeds if necessary.
  • Sow the seeds in the pot.
  • Sprinkle or water lightly so that the soil becomes moist but does not become waterlogged.
  • Place the pot in an appropriate location and provide regular care.
  • It may take a few days for the seeds to germinate.
  • Once the sprouts appear, gradually place the pot in sunlight to strengthen the plant.


गमले में बीज बोने का सही क्रम:

  • गमला ऐसा चुनें जिसमें नीचे जल निकासी के लिए छेद हो।
  • गमले में अच्छी गुणवत्ता वाली, हल्की और पोषक मिट्टी भरें।
  • यदि आवश्यक हैं तो बीजों को भिगोएँ। 
  • गमले में बीज बोएँ। 
  • छिड़काव या हल्के हाथ से पानी दें ताकि मिट्टी नम हो जाए लेकिन पानी ठहरे नहीं।
  • गमले को उचित स्थान पर रखें व नियमित देखभाल करें। 
  • बीज अंकुरित होने में कुछ दिन लग सकते हैं।
  • अंकुर निकलने पर गमले को धीरे-धीरे धुप में रखें ताकि पौधा मजबूत बनें।