Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++, write a program to: there is an array of name : {Steven, Chris, Joe, Sofie}, loop through the name array, assign int id's

In C++, write a program to: there is an array of name : {Steven, Chris, Joe, Sofie}, loop through the name array, assign int id's to each name, starting at 1001, and in the order (so Steven would be assigned 1001, Chris 1002, etc), Finally, print out and name and its id assigned, the output will be like the following: (please don't use class. Use parallel arrays, the first array contains names, and the second array contains id. and please show the real process of "assigning a value to a name", because I have no ides how to assign an int value to a string value ). Thanks!

Steven 1001 Chris 1002 Joe 1003 Sofie 1004

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions