C++
I realize that some cities have more outages than the number of
customers (!) -- yes the data is not very accurate, but this is the
real data with which LIPA operated in the aftermath of the storm
(!).
You job is to write a program that reads this data file and allows
users to query and create reports.
Here are the features of your program:
1- Query City: Given a city name,
provide the corresponding information -- number of customers
without power and total number of customers in that
city.
2- City With Most Outage: Return
the city with the most percentage of customers without power. That
is the customers without power divided by total number of
customers.
0- Exit
Make sure that you create a class
called City. This
class will have three
fields: Name, NumOfOutages, TotalCust.
You will read the whole data file at the very beginning of the
program into an array of
type City. You may
name this
array Data.
Based on this Data
array, you will write two
functions QueryCity()
and CityWithMostOutage().
These functions will be called from
the main() function
based on user's choice.
ATLANTICBEACH 2412 2022
BALDWIN 1509 8740
BALDWINHARBOR 60 2817
BELLEROSE 99 1266
BELLMORE 504 6342
CEDARHURST 493 3175
EASTMEADOW 2826 13026
EASTROCKAWAY 447 4494
ELMONT 1582 9639
FRANKLINSQUARE 2318 10502
GARDENCITY 1836 8448
GARDENCITYSOUTH 273 1611
HEMPSTEAD 1065 17041
HEWLETT 132 3016
HEWLETTBAYPARK 0 444
HEWLETTHARBOR 17 577
HEWLETTNECK 20 168
INWOOD 152 3485
ISLANDPARK 451 3572
LAKEVIEW 259 1503
LAWRENCE 309 2557
LEVITTOWN 4338 17370
LIDOBEACH 1 3037
LONGBEACH 0 15283
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
C++ I realize that some cities have more outages than the number of customers (!) --...
C Programming write two functions, similar to what you see in the sample program. The first will ask the user to enter some information (I have included the type in parentheses) First Name (char[]) Last Name (char[]) Age (int) Height in Inches (double) Weight in Pounds (double) You will use pass-by-reference to modify the values of the arguments passed in from the main(). Remember that arrays require no special notation, as they are passed by reference automatically, but the other...
Missing multiple labeled functions. Card matching game in C. Shouldn't need any more functions. I am lost on how to complete the main function (play_card_match) without the sub functions complete. The program runs fine as is, but does not actually have a working turn system. It should display question marks on unflipped cards when the player is taking a turn and should also clear the screen so the player can't scroll up to cheat. Thank you #include "cardMatch.h" //main function /*...
Need help with C++ assignment
Assignment 1 and .txt files are provided at the
bottom.
PART A
PART B
Assignment
1
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <algorithm>
using namespace std;
/**
This structure is to store the date and it has three integer
fields
**/
struct Date{
int day;
int month;
int year;
};
/**
This structure is to store the size of the box and it...