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

Step: 3

blur-text-image

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions