Answer:
Check the explanation
Explanation:
Draw the data model that can be seen in the two attached images below USING Crow’s Foot notation.
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++;
}
}
This is false. A Class B fire consists of highly combustible/flammable liquids and gases such as petroleum oil and propane.
Answer:
The description for the given question is described in the explanation section below.
Explanation:
I would like to reinforce in advanced or complex concepts such as documents as well as channels, internet programming, multi-threading, after that last lesson.
- I am interested in learning web development to develop applications or software. I would also like to explore those concepts by using open source tools.
- Course concepts will have to develop models for handling.
- No there is no subject matter or definition you provide further clarity for.
- I'm interested in studying java as well as web development in comparison to C++ so I can use it in my contract work.
Answer:
#include<iostream>
using namespace std;
int main(){
int x1,x2,x3;
int y1,y2,y3;
cout<<"Enter the value of first point(x1,y1): ";
cin>>x1>>y1;
cout<<"\nEnter the value of second point(x2,y2): ";
cin>>x2>>y2;
cout<<"\nEnter the value of third point(x3,y3): ";
cin>>x3>>y3;
}
Explanation:
first include the library iostream for use the input/output commands
then, write the main function. within the main function declare the variable which store the value of points.
after that, use the 'cout' for output. It has the function which print the value or message on the screen.
and 'cin' is used to store the value in the variable.
So, in the above code cout ask for enter the value of point and after enter value by user, cin store in the variables.
Note: you have to enter two value with space or by enter.