際際滷

際際滷Share a Scribd company logo
Self Programming Test
Time: 1.30 / Program Name: Array_opt.cpp
Write a program which input an array of 10 integers from the user and
ask for the operation to be perform on that array
a. Sum of all numbers in the array
b. Average of all numbers in the array
c. Search any number in the array
d. Show the square of any element by asking index
e. Show the Cube of any element by asking index
f. Show the maximum number
g. Show the minimum number
h. Show all even numbers
i. show all odd numbers
j. Show array in reverse order
Note:
1: Result color must be different (any other color)
2: Program should not stop until user needs to quit
3: Use better code conventions and style for readability
Ad

Recommended

C programming on Ubuntu
C programming on Ubuntu
Binu Joy
1 c introduction
1 c introduction
suresh rathod
Write declarations for each of the following variables: a. amounts is a...
Write declarations for each of the following variables: a. amounts is a...
licservernoida
A nice 64-bit error in C
A nice 64-bit error in C
PVS-Studio
Cc 16
Cc 16
Web Developer
First c program
First c program
Komal Pardeshi
Hello world program
Hello world program
mohamedsaad24
10 ipt python exam breakdown
10 ipt python exam breakdown
hccit
Basic of c programming www.eakanchha.com
Basic of c programming www.eakanchha.com
Akanchha Agrawal
15CS664- Python Application Programming- Question bank 1
15CS664- Python Application Programming- Question bank 1
Syed Mustafa
15CS664 Python Question Bank-3
15CS664 Python Question Bank-3
Syed Mustafa
NTRODUCTION TO COMPUTER PROGRAMMING Loop as repetitive statement,
NTRODUCTION TO COMPUTER PROGRAMMING Loop as repetitive statement,
imtiazalijoono
Semaphore
Semaphore
naniix21_3
Semaphore
Semaphore
naniix21_3
Ternary operator
Ternary operator
Hitesh Kumar
Assignment 01 sow ch 1,2,3
Assignment 01 sow ch 1,2,3
Abdul Wahab Raza
Check the following function headers and locate as many errors you ca
Check the following function headers and locate as many errors you ca
licservernoida
CSC 184 Programming C
CSC 184 Programming C
ABIR A HAPZU
Abseil - let the savior come?
Abseil - let the savior come?
corehard_by
C Programming
C Programming
amitymbaassignment
Input and Output In C Language
Input and Output In C Language
Adnan Khan
Presentation1
Presentation1
Sakura
Practical no 1
Practical no 1
Kshitija Dalvi
Lab manualsahu[et&t]
Lab manualsahu[et&t]
Vivek Kumar Sinha
PC 1 continuity
PC 1 continuity
vhiggins1
Pslb lab manual
Pslb lab manual
Vivek Kumar Sinha
Led with raspberry pi
Led with raspberry pi
Maryala Srinivas
The Emergence of Signatures of AGI: The Physics of Learning
The Emergence of Signatures of AGI: The Physics of Learning
Charles Martin
GBSN_Unit 3 - Medical and surgical Asepsis
GBSN_Unit 3 - Medical and surgical Asepsis
Areesha Ahmad
Antipsychotics-FOR LECTURE.pdf................
Antipsychotics-FOR LECTURE.pdf................
FalguniPatil6

More Related Content

What's hot (19)

Basic of c programming www.eakanchha.com
Basic of c programming www.eakanchha.com
Akanchha Agrawal
15CS664- Python Application Programming- Question bank 1
15CS664- Python Application Programming- Question bank 1
Syed Mustafa
15CS664 Python Question Bank-3
15CS664 Python Question Bank-3
Syed Mustafa
NTRODUCTION TO COMPUTER PROGRAMMING Loop as repetitive statement,
NTRODUCTION TO COMPUTER PROGRAMMING Loop as repetitive statement,
imtiazalijoono
Semaphore
Semaphore
naniix21_3
Semaphore
Semaphore
naniix21_3
Ternary operator
Ternary operator
Hitesh Kumar
Assignment 01 sow ch 1,2,3
Assignment 01 sow ch 1,2,3
Abdul Wahab Raza
Check the following function headers and locate as many errors you ca
Check the following function headers and locate as many errors you ca
licservernoida
CSC 184 Programming C
CSC 184 Programming C
ABIR A HAPZU
Abseil - let the savior come?
Abseil - let the savior come?
corehard_by
C Programming
C Programming
amitymbaassignment
Input and Output In C Language
Input and Output In C Language
Adnan Khan
Presentation1
Presentation1
Sakura
Practical no 1
Practical no 1
Kshitija Dalvi
Lab manualsahu[et&t]
Lab manualsahu[et&t]
Vivek Kumar Sinha
PC 1 continuity
PC 1 continuity
vhiggins1
Pslb lab manual
Pslb lab manual
Vivek Kumar Sinha
Led with raspberry pi
Led with raspberry pi
Maryala Srinivas
Basic of c programming www.eakanchha.com
Basic of c programming www.eakanchha.com
Akanchha Agrawal
15CS664- Python Application Programming- Question bank 1
15CS664- Python Application Programming- Question bank 1
Syed Mustafa
15CS664 Python Question Bank-3
15CS664 Python Question Bank-3
Syed Mustafa
NTRODUCTION TO COMPUTER PROGRAMMING Loop as repetitive statement,
NTRODUCTION TO COMPUTER PROGRAMMING Loop as repetitive statement,
imtiazalijoono
Ternary operator
Ternary operator
Hitesh Kumar
Assignment 01 sow ch 1,2,3
Assignment 01 sow ch 1,2,3
Abdul Wahab Raza
Check the following function headers and locate as many errors you ca
Check the following function headers and locate as many errors you ca
licservernoida
CSC 184 Programming C
CSC 184 Programming C
ABIR A HAPZU
Abseil - let the savior come?
Abseil - let the savior come?
corehard_by
Input and Output In C Language
Input and Output In C Language
Adnan Khan
Presentation1
Presentation1
Sakura
PC 1 continuity
PC 1 continuity
vhiggins1

Recently uploaded (20)

The Emergence of Signatures of AGI: The Physics of Learning
The Emergence of Signatures of AGI: The Physics of Learning
Charles Martin
GBSN_Unit 3 - Medical and surgical Asepsis
GBSN_Unit 3 - Medical and surgical Asepsis
Areesha Ahmad
Antipsychotics-FOR LECTURE.pdf................
Antipsychotics-FOR LECTURE.pdf................
FalguniPatil6
Operationalising OGC Processes with Application Packages in ILIAD: A Service ...
Operationalising OGC Processes with Application Packages in ILIAD: A Service ...
Marco Amaro Oliveira
HERBAL INGREDIENTS USED IN ORAL CARE.pptx
HERBAL INGREDIENTS USED IN ORAL CARE.pptx
Vidhi889356
plant and animal nutrition..........pptx
plant and animal nutrition..........pptx
mayflorgalleno
Relazione di laboratorio Idrolisi dell'amido (in inglese)
Relazione di laboratorio Idrolisi dell'amido (in inglese)
paolofvesco
Type of Heat Exchanger operation Socar pptx
Type of Heat Exchanger operation Socar pptx
TuralQuliyev5
Death in Sleep Apnea: Who and How It Kills
Death in Sleep Apnea: Who and How It Kills
Richard Castriotta
Pneumonia Presentation for CPG Review and Mastery
Pneumonia Presentation for CPG Review and Mastery
JayricDepalobos
An Analysis Of The Pearl Short Story By John Steinbeck
An Analysis Of The Pearl Short Story By John Steinbeck
BillyDarmawan3
Chromatography 際際滷s for the course of Introduction to Biology and Chemistry...
Chromatography 際際滷s for the course of Introduction to Biology and Chemistry...
Md. Arif Shahriar
Matt Ridley: Economic Evolution and Ideas that have Sex
Matt Ridley: Economic Evolution and Ideas that have Sex
Conservative Institute / Konzervat鱈vny in邸tit炭t M. R. tef叩nika
Synthesis and characterization of Thiazole derivatives of N-substituted lsatin
Synthesis and characterization of Thiazole derivatives of N-substituted lsatin
Professional Content Writing's
Lecture 9 Natural selection Evolution.pptx
Lecture 9 Natural selection Evolution.pptx
madi34702
History of Nursing and Nursing As A Profession UNIT-3.pptx
History of Nursing and Nursing As A Profession UNIT-3.pptx
madhusrinivas68
Lesson 1 in Earth and Life Science .pptx
Lesson 1 in Earth and Life Science .pptx
KizzelLanada2
MOLD -GENERAL CHARACTERISTICS AND CLASSIFICATION
MOLD -GENERAL CHARACTERISTICS AND CLASSIFICATION
aparnamp966
THE CIRCULATORY SYSTEM GRADE 9 SCIENCE.pptx
THE CIRCULATORY SYSTEM GRADE 9 SCIENCE.pptx
roselyncatacutan
Cloud Collaboration Market Challenges, Drivers, Trends, and Forecast by 2031
Cloud Collaboration Market Challenges, Drivers, Trends, and Forecast by 2031
moresonali406
The Emergence of Signatures of AGI: The Physics of Learning
The Emergence of Signatures of AGI: The Physics of Learning
Charles Martin
GBSN_Unit 3 - Medical and surgical Asepsis
GBSN_Unit 3 - Medical and surgical Asepsis
Areesha Ahmad
Antipsychotics-FOR LECTURE.pdf................
Antipsychotics-FOR LECTURE.pdf................
FalguniPatil6
Operationalising OGC Processes with Application Packages in ILIAD: A Service ...
Operationalising OGC Processes with Application Packages in ILIAD: A Service ...
Marco Amaro Oliveira
HERBAL INGREDIENTS USED IN ORAL CARE.pptx
HERBAL INGREDIENTS USED IN ORAL CARE.pptx
Vidhi889356
plant and animal nutrition..........pptx
plant and animal nutrition..........pptx
mayflorgalleno
Relazione di laboratorio Idrolisi dell'amido (in inglese)
Relazione di laboratorio Idrolisi dell'amido (in inglese)
paolofvesco
Type of Heat Exchanger operation Socar pptx
Type of Heat Exchanger operation Socar pptx
TuralQuliyev5
Death in Sleep Apnea: Who and How It Kills
Death in Sleep Apnea: Who and How It Kills
Richard Castriotta
Pneumonia Presentation for CPG Review and Mastery
Pneumonia Presentation for CPG Review and Mastery
JayricDepalobos
An Analysis Of The Pearl Short Story By John Steinbeck
An Analysis Of The Pearl Short Story By John Steinbeck
BillyDarmawan3
Chromatography 際際滷s for the course of Introduction to Biology and Chemistry...
Chromatography 際際滷s for the course of Introduction to Biology and Chemistry...
Md. Arif Shahriar
Synthesis and characterization of Thiazole derivatives of N-substituted lsatin
Synthesis and characterization of Thiazole derivatives of N-substituted lsatin
Professional Content Writing's
Lecture 9 Natural selection Evolution.pptx
Lecture 9 Natural selection Evolution.pptx
madi34702
History of Nursing and Nursing As A Profession UNIT-3.pptx
History of Nursing and Nursing As A Profession UNIT-3.pptx
madhusrinivas68
Lesson 1 in Earth and Life Science .pptx
Lesson 1 in Earth and Life Science .pptx
KizzelLanada2
MOLD -GENERAL CHARACTERISTICS AND CLASSIFICATION
MOLD -GENERAL CHARACTERISTICS AND CLASSIFICATION
aparnamp966
THE CIRCULATORY SYSTEM GRADE 9 SCIENCE.pptx
THE CIRCULATORY SYSTEM GRADE 9 SCIENCE.pptx
roselyncatacutan
Cloud Collaboration Market Challenges, Drivers, Trends, and Forecast by 2031
Cloud Collaboration Market Challenges, Drivers, Trends, and Forecast by 2031
moresonali406
Ad

Cpp

  • 1. Self Programming Test Time: 1.30 / Program Name: Array_opt.cpp Write a program which input an array of 10 integers from the user and ask for the operation to be perform on that array a. Sum of all numbers in the array b. Average of all numbers in the array c. Search any number in the array d. Show the square of any element by asking index e. Show the Cube of any element by asking index f. Show the maximum number g. Show the minimum number h. Show all even numbers i. show all odd numbers j. Show array in reverse order Note: 1: Result color must be different (any other color) 2: Program should not stop until user needs to quit 3: Use better code conventions and style for readability