<u>Solution and Explanation:</u>
//Header files
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
int main()
{
fstream fin;
char str[]="";
string question;
char filename[20];
char choice;
string answer;
//seed for random number
unsigned seed=0;
srand(seed);
cout<<"Enter your file name : ";
cin>>filename;
cout<<endl;
//if file not exist then gives message
//reading file
do
{
fin.open(filename,ios::in);
if(!fin)
{
cout<<"couldnot find the file...";
std::system("pause");
return 0;
}
while(!fin.fail())
{
cout<<endl<<"Enter your quesion"<<endl;
fflush(stdin);
getline(cin,question);
answer="";
char ch;
while((ch=fin.get())!='\n'&&!fin.fail())
{
//reading line
answer+=ch;
if(ch=='#')
{
int randNum=1+rand()%18;
answer +=randNum+'0';
ch=fin.get();
}
}
cout<<answer<<endl;
}
fin.close();
cout<<"Do you want to continue (Y/y to continue) :";
cin>>choice;
}while(choice=='y'||choice=='Y');
//To pause the output
system("pause");
return 0;
}//end of main..
Answer:
Information systems assist in disseminating information by allowing managers and other organization leaders to store data in folders and documents that can be seamlessly shared with the appropriate employees.
Explanation:
Asymmetric Digital Subscriber Line (ADSL) is a technology that provides high transmission speeds for video and voice to homes over an ordinary copper telephone wire. It will be most cost-effective in areas with a low market penetration of cable TV.
I hope this helped alot
Your missing info to solve this
Answer:
They both look really good but i think the white looks better
Explanation: