Find Jobs
Hire Freelancers

C++ (dimensional array list)

$30-50 USD

Completed
Posted over 21 years ago

$30-50 USD

Paid on delivery
Problem: Design a Program to read a data file (“[login to view URL]?) representing presidential elections since 1900. The file contains four fields: 1. Year of election (e.g. 1900) 2. Party Affiliation (e.g. R) 3. Electoral Votes (e.g. 270) 4. Popular votes (e.g. 198,999,232) Read the file into a four dimensional array list. Each year has two records (lines) for each of two candidates. Determine the winner of each presidential election. Write to an out put file (five dimension array) containing: 1. Year of election (e.g. 1900) 2. Party Affiliation (e.g. R) 3. Electoral Votes (e.g. 270) 4. Popular votes (e.g. 198,999,232) 5. Winner (1 for winner, zero for loser, based upon electoral vote) In addition, write function to identify any election where winner of popular vote did not win election (electoral vote), either in file or on the screen. Write function to identify if any of the candidates are not Republicans “R?? or Democrats “D??. Extra Cred Project is due by end of day on November [login to view URL]: Write into output file names of candidates (six dimensional array). ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform Borland C++ ## Deadline information This program should be easy to write. However, as I am a beginner I need a lot of comments specially for the array lines. This project is due 21st..but I need to get it done ASAP..so that I can review for myself.
Project ID: 2885768

About the project

1 proposal
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$29.75 USD in 14 days
4.9 (11 reviews)
2.8
2.8

About the client

Flag of UNITED STATES
United States
5.0
1
Member since Nov 14, 2002

Client Verification

Other jobs from this client

C++ Homework (ARRAY)
$30-50 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.