Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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);
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote