Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code blocks question 1 Create an Array consisting of numbers 1 - 5 . 1 . 1 Raise numbers to the power of each element

Code blocks question 1
Create an Array consisting of numbers 1-5.
1.1 Raise numbers to the power of each element of the Array.
Output displayed on the screen
1491625
1.2 Find even numbers in an Array
2,4
1.3 Find the total number of elements.
1,2,3,4,5
1.4 Find the total number of odd numbers in the Array.
3
1.5 Add text
Number : 1
Number : 2
Number : 3
Number : 4
Number : 5
Code blocks question number 2
Create an array containing the characters "hello", "good day", "how do you do".
Output displayed on the screen
2.1 Convert the first letter of a word to all uppercase letters.
2.2 Find the size of all characters in the Array.
2.3 Show the element with the least number of characters in the Array
["Hello", "Good day", "How do you do"]
5,8,13
"hello"
do you do" Array.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

Students also viewed these Databases questions