C++ Problem: This program will output the largest,smallest, average city name wi
ID: 3847373 • Letter: C
Question
C++ Problem:
This program will output the largest,smallest, average city name with related data from a delimited input file.
Input text---> "cities1000.txt " from http://download.geonames.org/export/dump/ ---->link for the textfile
Here's the Command text which we need to read ---->
so This program should read from the Command file and search Input file and display the following data;
Requirements:
You may not use structs, classes, arrays or pointers.
You may not use global variables. Pass your parameters correctly to the functions.
Explanation / Answer
#include<conio.h>
#include<iostream.h>
#include<dos.h>
#include<process.h>
void main()
{
clrscr();
char ch,a[]={“Made By : Neeraj Mishra”};
int j=0;
cout<<“Uppercase Alphabatesnn”;
for(int i=65;i<91;++i)
{
j++;
ch=i;
cout<<ch<<“:”<<i<<“t”;
if(j==10)
{
cout<<“n”;
j=0;
}
}
j=0;
cout<<“nnnLowercase Alphabatesnn”;
for(i=97;i<123;++i)
{
j++;
ch=i;
cout<<ch<<“:”<<i<<“t”;
if(j==10)
{
cout<<“n”;
j=0;
}
}
cout<<“nnnDigitsnn”;
for(i=48;i<58;i++)
{
ch=i;
cout<<ch<<“:”<<i<<“t”;
}
cout<<“nnnntt”;
for(i=0;a[i]!=’’;++i)
{
cout<<a[i];
sleep(1);
}
exit(0);
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.