1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kvv77 [185]
3 years ago
13

DR JAVA

Computers and Technology
1 answer:
Reptile [31]3 years ago
8 0

Answer:

Explanation:

The following code is all written in Java. It is a very long program that contains methods for all of the requested while loops in the question. Each one is called inside the main method itself. A part of the output is shown in the attached picture below due to the output being so long. Due to technical difficulties, I have attached the code as a txt file below.

You might be interested in
5.23 LAB: Contains the character
torisob [31]

Answer:

In C++:

#include<iostream>

#include<vector>

using namespace std;

int main() {

int len;

cout<<"Length: ";  cin>>len;

string inpt;

vector<string> vect;

for(int i =0;i<len;i++){

  cin>>inpt;

  vect.push_back(inpt); }

char ch;

cout<<"Input char: ";  cin>>ch;  

for(int i =0;i<len;i++){

  size_t found = vect.at(i).find(ch);  

      if (found != string::npos){

          cout<<vect.at(i)<<" ";

          i++;

      }

}  

return 0;

}

Explanation:

This declares the length of vector as integer

int len;

This prompts the user for length

cout<<"Length: ";  cin>>len;

This declares input as string

string inpt;

This declares string vector

vector<string> vect;

The following iteration gets input into the vector

for(int i =0;i<len;i++){

  cin>>inpt;

  vect.push_back(inpt); }

This declares ch as character

char ch;

This prompts the user for character

cout<<"Input char: ";  cin>>ch;  

The following iterates through the vector

for(int i =0;i<len;i++){

This checks if vector element contains the character

  size_t found = vect.at(i).find(ch);  

If found:

      if (found != string::npos){

Print out the vector element

          cout<<vect.at(i)<<" ";

And move to the next vector element

          i++;

      }

}  

7 0
2 years ago
I am a you tuber that does videos on the rob lox myth community, I have over 250+ subscribers. I was wondering if any of y'all w
Marina86 [1]

Answer:

I will for sure subscribe!!!!

Explanation:

:)

7 0
3 years ago
What is software??????​??????????????????
larisa [96]

Answer:

<h3>Defination of Software :- </h3>

  • software, instructions that tell a computer what to do. Software comprises the entire set of programs, procedures, and routines associated with the operation of a computer system. The term was coined to differentiate these instructions from hardware.
  • The physical components of a computer system.

Explanation:

<h3>Hope this helps you dear ✌️</h3><h2>Carry on learning !! </h2>

4 0
3 years ago
Read 2 more answers
Ucf the ability to connect data in different tables in a database through a common field is sometimes referred to as a ____.
kari74 [83]
Much like humans, databases have relationships too.
4 0
3 years ago
What type of adventure/puzzle computer games can I download and not have to pay for? Some games that I've played are Legend of Z
Y_Kistochka [10]

Answer: Pirate and wizard 101, also try using an emulator for a certain console like NES to play certain games you can think of that are available on that console.

5 0
3 years ago
Read 2 more answers
Other questions:
  • MTV can now be seen by most of the world's population. This is an example of
    7·1 answer
  • In a Python dictionary, an association is formed between what two components of the dictionary?
    15·1 answer
  • âthe first line in a hypertext markup language (html) file is the _____, which is a processing instruction indicating the markup
    9·2 answers
  • Which architect designed the Guggenheim Museum in New York?
    6·2 answers
  • Write the definition of a function named rotate4ints that is passed four int variables. The function returns nothing but rotates
    9·1 answer
  • A popular Voice over Internet Protocol (VoIP) service is ________.
    12·1 answer
  • What is the difference between an IP address and an IP Packet?
    14·1 answer
  • When Jimmy Fallon is outside the White House, his persona is mostly O A. humble O B. stern O c. gloomy O D. wild​
    9·1 answer
  • Beth wants to add information to her powerpoint presentation that is hiden from her audience and only she will see. Which featur
    5·1 answer
  • Jeni is using the Label Wizard to solve a problem. What problem was she most likely experiencing?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!