Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

could someone help me i dont understand how to combine an array snd string to complete this assignment. Create a process that accepts a specified string and presents an output in the form a string. Use arrays for the possible outputs and then present the output on screen. Meaning you should have outputs predefined and be calling the variables for the outputs.

OpenStudy (anonymous):

what language?

OpenStudy (anonymous):

c or c++ or java ??

OpenStudy (rsmith6559):

Arrays are collections of same data types. They're considered primitive because you have manage their size, and make sure that you don't exceed that size. In you're case, you could have an array of strings. In most languages, arrays are zero indexed. If you declared an array of length 10, the elements would be accessed with indexes 0 - 9. If you try to put an element 10 in it, bad things will happen.

OpenStudy (anonymous):

to create a string in C, you need to have an array of characters. But in Java, they have this data type called String which you can just declare directly. like: String *name of the string* = "your string";

OpenStudy (anonymous):

thanks for ya'lls help i figured it out while i could not access the internet again thanks for ya'lls help

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!