Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the followinmg in c++ Lab 2.2.1 Construct a program that uses a single dimension array called names to store the names: bill, milo, and

write the followinmg in c++

Lab 2.2.1

Construct a program that uses a single dimension array called names to store the names: bill, milo, and opus.

Create an output statement the prints out the name "opus" from the array.

Create an output statement that prints out all the names in the array

Construct another single dimension array called numbers that stores the values: 12, 30, 100, 103.5

Create an output statement that prints out all the elements in the array

Lab 2.2.2

Construct a program that will ask the use to input the names of four (4) people. The four names will be stored in an array called names.

The program will then print out the names of the first 2 people only.

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

What is the relation of physical mathematics with examples?

Answered: 1 week ago

Question

What are oxidation and reduction reactions? Explain with examples

Answered: 1 week ago