Find Jobs
Hire Freelancers

I need help with one task

$10-30 USD

In Progress
Posted almost 5 years ago

$10-30 USD

Paid on delivery
We are given a CSV file containing the prices of every item on every menu of every restaurant in the town of Jurgensville. In addition, the restaurants of Jurgensville also offer Value Meals, which are groups of several items, at a discounted price. Below is the file's format for lines that define a price for a single item: restaurant ID, price, item label for lines that define the price for a Value Meal (there can be any number of items in a value meal) restaurant ID, price, item 1 label, item 2 label, ... All restaurant IDs are integers, all item labels are lower case letters and underscores, and the price is a decimal number. We need a program that accepts... the town's price file a list of item labels that someone wants to eat for dinner and outputs the restaurant they should go to the total price it will cost them It is okay to purchase extra items if the total cost is minimized. Here are some sample data sets, program inputs, and the expected result: Data File [login to view URL] 1, 4.00, burger 1, 8.00, tofu_log 2, 5.00, burger 2, 6.50, tofu_log Program Input > program [login to view URL] burger tofu_log Expected Output => 2, 11.5 Data File [login to view URL] 3, 4.00, chef_salad 3, 8.00, steak_salad_sandwich 4, 5.00, steak_salad_sandwich 4, 2.50, wine_spritzer Program Input > program [login to view URL] chef_salad, wine_spritzer Expected Output => null (or false or something to indicate that no matching restaurant could be found) Data File [login to view URL] 5, 4.00, extreme_fajita 5, 8.00, fancy_european_water 6, 5.00, fancy_european_water 6, 6.00, extreme_fajita, jalapeno_poppers, extra_salsa Program Input > program [login to view URL] fancy_european_water extreme_fajita Expected Output => 6, 11.0
Project ID: 20024979

About the project

2 proposals
Remote project
Active 5 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
2 freelancers are bidding on average $33 USD for this job
User Avatar
Dear sir. I read your description carefully. I have fully talents and skills of this part. I can give you satisfactory results. I want you to call me. From DragonWarrior...
$30 USD in 1 day
4.7 (25 reviews)
4.9
4.9
User Avatar
Dear I read your description and I have found that your job very interested And it would be easy to be done at a short time you can see my work in the profile ---------------------------------------------------- it would be nice to work with you sir :-D Thanks
$35 USD in 1 day
5.0 (2 reviews)
2.3
2.3

About the client

Flag of UNITED STATES
Stafford, United States
4.9
12
Payment method verified
Member since Sep 30, 2018

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.