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

Computer Project

The document provides an overview of computer hardware, detailing internal components like motherboards and RAM, and external peripherals such as monitors and printers. It also describes a menu-driven program that allows users to perform basic arithmetic operations based on user input. The project emphasizes the integration of theoretical knowledge with practical programming skills, enhancing understanding of computer systems and their applications.

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

The document provides an overview of computer hardware, detailing internal components like motherboards and RAM, and external peripherals such as monitors and printers. It also describes a menu-driven program that allows users to perform basic arithmetic operations based on user input. The project emphasizes the integration of theoretical knowledge with practical programming skills, enhancing understanding of computer systems and their applications.

Uploaded by

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

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
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
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

You might also like