Find Jobs
Hire Freelancers

Build a C++ Program using Vectors

$10-30 USD

Completed
Posted about 8 years ago

$10-30 USD

Paid on delivery
Complete the assignment using the provided requirements Two files are required to make this program work, d_random.h and d_vector.h. They are attached to this posting. The file must be called [login to view URL] This program will store in miniVector v a list of 15 random integers from 0 to 99, then it will output the vector, sort the vector, then output it again sorted. The miniVector class is on page 250. Program Definition 1. Create program definition with the following templates and methods: // output miniVector v template <typename T> void writeMiniVector(const miniVector<T>& v); // use insertion sort to place miniVector v in descending order template <typename T> void sortMiniVector(miniVector<T>& v); Main Method 1. Declare: miniVector<int> v; 2. Declare: randomNumber rnd; 3. call v.push_back([login to view URL](100)); to push 15 entries from 0-99 onto the vector 4. call writeMiniVector to output vector 5. call sortMiniVector to sort the vector 6. call writeMiniVector to output the sorted vector. After you output the sorted vector: Include: system("PAUSE"); after your output to pause the screen. writeMiniVector Method (const miniVector<T>& v) 1. Iterate through the vector v and output each element to the screen. sortMiniVector Method (miniVector<T>& v) 1. Sort the elements of vector v. 2. Since it is passed-by-reference, no return is necessary. ------------------------------------------------------------------------------------------- Example output of your program Original: 59 18 60 91 49 47 83 93 55 52 15 36 83 56 91 Sorted: 93 91 91 83 83 60 59 56 55 52 49 47 36 18 15
Project ID: 9464971

About the project

5 proposals
Remote project
Active 8 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
$11 USD in 1 day
4.9 (622 reviews)
6.8
6.8
5 freelancers are bidding on average $23 USD for this job
User Avatar
Hi, I've got quite some experience with C++ and I'm sure I can help you out here :) I've been doing homeworks on freelancer for a while now so I know what's expected in the code Hope to hear from you over the chat :)
$25 USD in 1 day
5.0 (15 reviews)
3.2
3.2
User Avatar
Hello Sir/Mam We are group of Software Engineers having much knowledge in programming languages like Java C C++ C# Php Html JavaScript Web Design Data mining Data scraping So you don't worry about third party client. I assure you that we’ll do our best to do this project. We are very experienced and talented and assure you that we’ll provide quality work. The project bid is negotiable and P.M for sample work . Thanks
$25 USD in 1 day
5.0 (11 reviews)
2.7
2.7

About the client

Flag of UNITED STATES
United States
5.0
2
Payment method verified
Member since Jan 25, 2016

Client Verification

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.