0% found this document useful (0 votes)
0 views

Computer Project(1)

The document outlines a project on computer systems and menu-driven programming, detailing various programming operations such as addition, subtraction, multiplication, and division. It includes practical examples of list manipulation and a simple calculator program, emphasizing the importance of understanding computer hardware and software interactions. The project combines theoretical knowledge with hands-on programming experience, enhancing skills in structured programming and problem-solving.

Uploaded by

srijanbiswas2021
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Computer Project(1)

The document outlines a project on computer systems and menu-driven programming, detailing various programming operations such as addition, subtraction, multiplication, and division. It includes practical examples of list manipulation and a simple calculator program, emphasizing the importance of understanding computer hardware and software interactions. The project combines theoretical knowledge with hands-on programming experience, enhancing skills in structured programming and problem-solving.

Uploaded by

srijanbiswas2021
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

SL.

NO TOPIC PAGE NO
1. INTRODUCTION 1

2. OBJECTIVES 2

3. PROGRAM USING LIST 4


MANIPULATION

4. COMPUTER SYSTEM 5
OVERVIEW

5. SIMPLE CALCULATOR 6
PROGRAM

6. OUTPUT (SIMPLE 9
CALCULATOR
PROGRAM)

7. CONCLUSION 10

8. BIBLIOGRAPHY 11
l = eval(input("Enter first list = "))

m = eval(input("Enter second list = ")) n = [ ]

for i in range(len(l)):

n=n+[l[i]+m[i]]

print("New list = ",n)

Enter first list = [2,4,7,9]

Enter second list = [5,10,26,3]

New list = [7, 14, 33, 12]

4
These are the following set of Operations you can use :)

+ for ADDITION, - for SUBSTRACTION, * for MULTIPLICATION, / for DIVISION, n for Power value

Enter the number of Inputs with which you want to do the operation: 2

Enter The 1st Number:50

Enter The 2nd Number:60

Enter the Function to be used:+

110.0

9
This project on "Computer System Overview and Menu-Driven
Program" has provided a comprehensive understanding of the
fundamental components of computer systems and their
functionality. The study of hardware and software, along with
their seamless interaction, has deepened our knowledge of how
computers operate and process information efficiently.

The implementation of a menu-driven program offered practical


insights into programming. By creating an interactive and user-
friendly interface, we demonstrated how logic and coding can be
used to solve problems effectively. This hands-on experience
enhanced our understanding of structured programming,
modularity, and user interaction.

In summary, this project has successfully combined theoretical


knowledge and practical application, emphasizing the
importance of computer systems in modern life. It also
strengthened our skills in programming and problem-solving,
paving the way for further exploration in the field of computer
science.

10
PROJECT ON COMPUTER SYSTEM OVERVIEW & MENU-DRIVEN PROGRAMS

• Computer science with Python - Class XI By: Sumita Arora


• Website: https://www.w3resource.com
• Website: https://cbsepython.in/class-11-computer-science-
project-in-python/

Thank You

****************************

11
print("These are the following set of Operations you can use :)")

print("+ for ADDITION, ","- for SUBSTRACTION, "," * for MULTIPLICATION,

","/ for DIVISION, ","n for Power value")

no=int(input("Enter the number of Inputs with which you want to do the


operation: "))

if no==2:

number_1=float(input("Enter The 1st Number:"))

number_2=float(input("Enter The 2nd Number:"))

elif no==3:

number_1=float(input("Enter The 1st Number:"))

number_2=float(input("Enter The 2nd Number:"))

number_3=float(input("Enter The 3rd Number:"))

elif no==4:

number_1=float(input("Enter The 1st Number:"))

number_2=float(input("Enter The 2nd Number:"))

number_3=float(input("Enter The 3rd Number:"))

number_4=float(input("Enter The 4th Number:"))

elif no==5:

number_1=float(input("Enter The 1st Number:"))

number_2=float(input("Enter The 2nd Number:"))

number_3=float(input("Enter The 3rd Number:"))

number_4=float(input("Enter The 4th Number:"))

number_5=float(input("Enter The 5th Number:"))

else:

print("Minimun number with which operation can be done is 2 & Maximum

number with which operation can be done is 5")


6
"+ - ADDITION"

"- - SUBSTRACTION"

"* - MULTIPLICATION"

"/ - DIVISION"

"n-to the power"

user_input = input("Enter the Function to be used:")

if user_input == "+" and no==2:

number_3=0

number_4=0

number_5=0

if user_input == "+" and no==3:

number_4=0

number_5=0

if user_input == "+" and no==4:

number_5=0

if user_input == "-" and no==2:

number_3=0

number_4=0

number_5=0

if user_input == "-" and no==3:

number_4=0

number_5=0

if user_input == "-" and no==4:

number_5=0

if user_input == "*" and no==2:

number_3=1

number_4=1

number_5=1

7
if user_input == "*" and no==3:

number_4=1

number_5=1

if user_input == "*" and no==4:

number_5=1

if user_input == "/" and no==2:

number_3=1

number_4=1

number_5=1

if user_input == "/" and no==3:

number_4=1

number_5=1

if user_input == "/" and no==4:

number_5=1

if user_input == "+":

output = number_2 + number_1+ number_3+ number_4+ number_5

print(output)

elif user_input == "-":

output = number_2 - number_1-number_3- number_4- number_5

print(output)

elif user_input == "*":

output = number_2 * number_1* number_3* number_4* number_5

print(output)

elif user_input == "/":

output = number_1 / number_2/ number_3/ number_4/ number_5

print(output)

elif user_input == "n":

output = number_2 ** number_1 print(output)

else:

print ("!*!*! Invalid Entry !*!*!")


8
Computer hardware refers to the physical parts of a computer and
related devices. Internal hardware devices include motherboards, hard
drives, and RAM. External hardware devices include monitors,
keyboards, mice, printers, and scanners. The internal hardware parts of a
computer are often referred to as components, while external hardware
devices are usually called peripherals

You might also like