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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

Answer this two part question

Answered: 1 week ago

Question

Question What are the advantages of a written bonus plan?

Answered: 1 week ago