Find Jobs
Hire Freelancers

C++ program using "struct" needs to be switched to "class"

$30-250 USD

Selesai
Dibuat lebih dari 7 tahun yang lalu

$30-250 USD

Dibayar ketika dikirim
Hello like I said in the craigslist ad. I am working on a Visual Studio C++ program. The program is for school and it is already compiled. The program works great, however what I need is for the program to include classes. The program would need to incorporated with the classes that I have, currently I am using "struct" instead of "class." The code does not appear to be lengthy since its already written in "struct", and works fine. Basically it needs to be switched from "struct" to "class," however it will need to follow the assignment instructions. The assignment instructions are the following: --------------------------------------------------------------------------------------------------------------------- Define a Fraction class similar to the one shown in earlier modules with num and den as its private data. Include a constructor to initialize the fraction to 0/1, a copy constructor, a destructor, and overloading functions to overload the assignment operator =, the comparison operators <, >, ==, !=, arithmetic operators +, +=, -, -=, *, *=, /, /=, as well as friend functions (non-member) to overload << and >> to output and input a fraction (see book example). Also, include a private member function called reduce() that gets called after arithmetic operations to reduce the frraction. +, -, *, / must return the result of the operation; e.g.: the sum or difference of the two fractions. +=, -=, *= and /= must assign the result of the operation to the object that's invoking the operation; i.e.: frac1 += frac2 must modify frac1 to make it equal to the sum of the two fractions, but frac1 + frac2 must simply return the sum. Define a class called FracList with private members fracPtr, a Fraction pointer and size to hold the size of the array of Fraction objects. Use the List container class developed in the modules as an example. Include constructor, destructor, copy constructor and overload the assignment, insertion (>>) and extraction (<<) operators. the [] operators for accessing array elements (both as lvalue and rvalue - see the example given in last module) and relational operators <, >, ==, and !=. For < and >, compare the size of the two FracList objects and for == and != see if they're identical with identical array elements. Also, include two resize() member function to resize the list, one keeping the existing vales and one without keeping old values (see the List example). Also, include a sort and binary search function (see the example). In main, create two FracList objects, ask the user how many elements to allocate for each list, read as many Fraction objects from the keyboard as specified by the user into each (using >> operator). Sort both lists using the sort member function and display them; and then search for a value read from the user in both lists and print the index of the first occurrence or that it could not be found in either list. Example run of the program: Enter size of first fraction list: 5 Enter size of second fraction list: 3 Enter 5 fractions for first list: 1/4 1/8 2/3 1/3 1/2 Enter 3 fractions for second list: 3/4 1/5 1/4 Sorted lists: 1/8 1/4 1/3 1/2 2/3 1/5 1/4 3/4 Enter a fraction to search for: 1/4 1/4 was found at index 1 of list 1. --------------------------------------------------------------------------------------------------------------------- The assignment may seem lengthy but the code already works perfectly, and it executes the right information. What I need you to do is to switch from "struct" to "class." The assignment covers what each "class" should include. The main code is attached as "Source. cpp." The files "[login to view URL]" and "List.h" are part of the "List container class developed in the modules." Please let me know how much you charge.
ID Proyek: 11684418

Tentang proyek

13 proposal
Proyek remot
Aktif 8 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
I would like to bid this job because I am really suitable for job description: First: I am an software engineer who is very expertise with C/C++. In fact, I have done so many project of C/C++(Karatsuba multiplier, Nintendo design, encryption algorithm like Sax Hash, Bernstein Hash, HummingBird...Also, I participated in a Walker Recognition project(data from Camera to Human Detection(image processing-HOG feature and Adaboost) and display in VGA). Besides,,I implemented the image conpression (wavelet transform). Also, I am very good in English (IELTS 6.0) and I have several year of researching so I can fully understand your requirement and understand fully about the papers and write the academic report.. Please contact me and let me know if you want any special requirement and do with lower price. Thank you.
$50 USD dalam 2 hari
4,9 (4 ulasan)
4,7
4,7
13 freelancer menawar dengan rata-rata $101 USD untuk pekerjaan ini
Avatar Pengguna
Hi, i have a lot of experience c++ programming. i can easily complete this task for you. we can have a chat. thanks
$70 USD dalam 3 hari
4,9 (296 ulasan)
7,1
7,1
Avatar Pengguna
Hi mate this is Asad, i have a vast experience in c++ programming, need an A grade? contact me? cheers :)
$122 USD dalam 2 hari
5,0 (37 ulasan)
5,9
5,9
Avatar Pengguna
Computer Engineer. Plenty of experience solving algorithmic problems via code. C++ is one of my main languages
$40 USD dalam 3 hari
5,0 (54 ulasan)
5,2
5,2
Avatar Pengguna
$100 USD dalam 1 hari
5,0 (14 ulasan)
4,2
4,2
Avatar Pengguna
We are team of excellent developers. We have 2 year experience related to your project field. We can do your project and solve your all problems according to your requirements. We have read your description for projects and we understand what you want so we are confident that we can do it easily in mention time. We assure you that you will be completely satisfy with our work. And after delivering your project if you feel some issue in understanding the projects then we will teach you free until you understand. If you have any question then feel free to ask. We are here for you. Thank you Demon Developer Team
$100 USD dalam 1 hari
4,9 (17 ulasan)
4,0
4,0
Avatar Pengguna
Hi there. I am suitable to this project. Please say me what is the due date. And what price is convinient to you? Regards, Valentin
$155 USD dalam 3 hari
5,0 (10 ulasan)
3,3
3,3
Avatar Pengguna
'We are team of excellent developers and writers. We have 2 year experience related to your project field. We can do your project and solve your all problems according to your requirements. We have read your description for projects and we understand what you want so we are confident that we can do it easily in mention time. We assure you that you will be completely satisfy with our work. And after delivering your project if you feel some issue in understanding the projects then we will teach you free until you understand. If you have any question then feel free to ask. We are here for you. Thank you
$45 USD dalam 3 hari
4,9 (5 ulasan)
2,8
2,8
Avatar Pengguna
hello i am full time freelancer having more than 6 years of experience in web development please share some information about your requirement. without knowing your requirement i can not provide you the right quote. lets start discussing about your requirement. thanks
$175 USD dalam 2 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
hi I'm C++ Developer I have seen your requirements I can make this struct code to classes i will object oriented programming techniques it can be done easily hope to hear from you.
$40 USD dalam 2 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
Arleta, United States
5,0
17
Memverifikasi Metode pembayaran
Anggota sejak Feb 25, 2013

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.