Find Jobs
Hire Freelancers

Assignment purpose: i/o in C++, control structures (if/ else if/ else), math in C++, data types string, double, and int, formatting output in C++, functions, call by reference, struct declaration, and file input.

$10-30 USD

Completed
Posted almost 2 years ago

$10-30 USD

Paid on delivery
You will write a program that will calculate the tax (tax) , the net cost (netCost) , and the total cost (totalCost) of a sports equipment order. Different locations have different tax rates. The phone number (string), item name (string), item number (string), quantity (integer), unit price (double), location ID (integer) will be read from an input file called [login to view URL] The input file has only 5 items. You will need to update the input file which should have a minimum of 10 items. You can use the 5 already in the file and add at least 5 more or create your own 10 items. Be sure the input file is in the same location as your source code! Use the information below to determine the tax rate based on the location ID (locID ) , calculate the tax, netCost, and totalCost for each line in the file and display the results onto the screen in columns using \t(tab), see the sample output provided. You can modify the way the information is presented on the screen, you do not need to follow my sample output, but you must use some columns and all the information must be printed onto the screen for each order. o locID is 1– TAX rate is 7.25% (.0725) o 2 <= locID <=5 – TAX rate is 7% (.07) o 6 <= locID <= 7– TAX rate is 6.85% (.0685) o 8 <= locID <= 15 – TAX rate is 6.5% (.065) o 16 <= locID <= 27 – TAX rate is 6 % (.06) o 28 <= locD <= 33 – TAX rate is 5.5% (.055) o 34 <= locD <= 35 – TAX rate is 5% (.05) o 36 <= locID <= 40 – TAX rate is 4.45% (.0445) o 41 <= locID <= 45 – TAX rate is 4% (.04) o locID is 46 – TAX rate is 2.90% (.0290) o 47 <= locID <= 51 – TAX rate is 0% (.00) o < 0 – is not a valid entry for the locID o > 51– is not a valid entry for the locID • Use a string for the users first name only as you interact with the user Use the struct below to store the data for each record: struct equipmentRecord { string cellNumber; string itemName; string itemNumber; int quantity; double price; int locID; double taxRate; double tax; double netCost; double totalCost; }; //BE SURE TO ADD COMMENTS TO THE FUNCTION PROTOTYPES (above main) //AND TO THE FUNCITON DEFINITIONS (below main) //USE pre and post conditions with descriptions //see the sample provided For program 3 you must use the following functions exactly as described below (same name and same formal parameter data types in the same order): void GetDataInput(ifstream&, equipmentRecord&); void ProcessData(equipmentRecord&); void GetTaxRate(double&, int); void DisplayOutput(const equipmentRecord&); All double output should be presented with 2 decimal places (see sample output) ** The purpose of the assignment is to practice using a struct, file input, and pass by reference parameters You may add additional functions, but you MAY NOT modify the name or the formal parameters of the above 4 functions. Additional instructions: • Be sure to comment your code • Include a program header with the following information: o Name, due date, course, assignment number, professor name, and a brief description of the assignment – see the sample skeleton provided with the assignment. • Read all comments in the sample code before getting started • Read the problem and determine what to do • Write the algorithm (you DO NOT need to submit the algorithm) • Implement one component at a time in your code and do not move onto the next component until you are sure it is correct. • Test your program before submitting • One source code file (unformatted text) will be submitted • The file name must match the assignment • The code should be tested and run on a Microsoft compiler before it is uploaded onto Canvas The sample output below has only 5 items. You will need to update the input file which should have a minimum of 10 items. You can use the 5 already in the file and add at least 5 more or create your own 10 items.
Project ID: 33908714

About the project

8 proposals
Remote project
Active 2 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
Hi there, I checked your requirements and guarantee you it's gonna be done within the next few hours. Let's contact via chat so that I can start work immediately. Wish you the best.
$40 USD in 1 day
5.0 (86 reviews)
5.6
5.6
8 freelancers are bidding on average $31 USD for this job
User Avatar
Hi, I've read your description carefully. I have full experience with c++ I've also worked on several similar projects. So I can complete your project with high quality on time. Looking forward to hear more about the project from you via chatting. Thanks & Best regards!
$30 USD in 1 day
5.0 (12 reviews)
4.1
4.1
User Avatar
Hello, sir! I have developed applications using VB/C++/C#/Java as job for 9 years. Hiring me, we will get the best result easily. I'll deliver you nice project in time with my full experience! Absolutely! * Deadline is same as you want.
$50 USD in 1 day
5.0 (8 reviews)
3.6
3.6
User Avatar
I am a ML engineer. I can start this right away and deliver within the deadline. So, Let’s have a quick conversation. Thank you!!
$30 USD in 2 days
5.0 (9 reviews)
3.2
3.2
User Avatar
Hello, I am a Full-Stack developer with over 7+ years of experience in web development (PHP - Laravel, E-Commerce, wordpress and CI, NodeJS, HTML, CSS, React) & I have a good eye to React Native, Flutter. I have worked 200+ websites and all of our clients get good business and customers after develop or renew their website by us. In development, I follow Google SEO Algorithum and build the website as per there guideline. And it helps my client to boost there SEO and business in a short time. I am extremely experienced in Android / IOS app development for 5 years and I am also very strong at server Back-End programming, as well as synchronizing Apps and My SQL Databases by Developing and Integrating JSON – REST ful server API modules. I can implement your project fully with a soft budget within a short time. Furthermore, I will do my best in order to make your ideas into reality. - Uber Style Taxi booking App Development - Social Networking App Development - Tinder Style Dating App Development - Uber Style E-Commerce App Development - GPS based Navigation App Development - Photo/Video Sharing App Development - Hotel Booking App Development - Food/Drink Ordering App Development Feel free to ask any question, Just Hit the Chat Button contact with me. Thank You.
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello. Thanks for your job posting. I just checked your project carefully. It is an ideal match for my skills and experience. I have rich experience in C++ and Algorithm. I can start working immediately and can deliver to tight deadlines. Let's start the chat so that we can discuss more on the project. Thanks & Regards
$20 USD in 1 day
0.0 (1 review)
0.0
0.0
User Avatar
C++ EXPERT PHD SOFTWARE DEVELOPER DEAR EMPLOYER, I can assure you 100% that we are fully capable of executing any level of task/project based on the skill required. I am fully confident about our skills and my understanding of the project description and we are ready to go through any test or sample task you assign to acquire your trust. Let me know when are you available for an initial 15-30 minutes discussion (free of charge) so we can discuss the requirement in detail and I can walk you through the mentioned systems to acquire your trust in my skill Rest assured your work is in very safe and professional hands. THANK YOU
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Lauderdale lakes, United States
5.0
1
Payment method verified
Member since Jun 14, 2022

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.