subject

Declare a string array of size 5. use a loop to store five fruits in the array that are entered by the user. then find the longest string in the array and output it. hint: use .length() on a string variable to determine the number of chars in a string. sample run: fruit 1: banana fruit 2: apple fruit 3: lemon fruit 4: pears fruit 5: orange longest: banana

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
You know the right answer?
Declare a string array of size 5. use a loop to store five fruits in the array that are entered by t...
Questions
question
Spanish, 04.12.2020 03:30
question
Geography, 04.12.2020 03:30
question
Geography, 04.12.2020 03:30
question
Mathematics, 04.12.2020 03:30
question
Mathematics, 04.12.2020 03:30
question
English, 04.12.2020 03:30
Questions on the website: 13722367