24FreelanceFreelance marketplace that never sleeps
Freelancer chosen

Small program in any programming language

1,309 views 1 response#20543
Project status
Contractor selected
Budget€875per hour
FormatOne-time projectno prepayment
PaymentBank transfer, E-money
Responses acceptedFreelancer chosenuntil 01.02.2019
Responses1category average: 0.3
Views1,30911 in 14 days

Project description

You need to write a small program to solve a school-level problem in any programming language.
Task.
You decided to order a pizza with home delivery. It is known that for customers who have made an order for an amount of more than C rubles, delivery is free, when ordering for C rubles and less delivery costs B rubles.
You have already chosen a product worth A rubles. There are still N goods worth d1, ..., dNruble, each in a single copy. They can also be included in the order.
How to spend the least money and get a home already selected goods in A rubles?

Input data
First, the numbers A, B, C, N are entered, and then N of the numbers d1, ..., dN.
All numbers are integers, 1 ≤ A ≤ 1000, 1 ≤ B ≤ 1000, 1 ≤ C ≤ 1000, 0 ≤ N ≤ 1000, 1 ≤ di ≤ 1,000,000.
Output
First, you need to specify the total amount of money that you will have to spend. If you plan to make an additional order with the expectation of free delivery, then then display the number of these goods and their numbers in increasing order. If you are going to pay for the delivery yourself, then you will be able to enter one number -1 (minus one).
Software development Bank transfer, E-money

SafeDeal Escrow Protection

Payora SafeDeal Astrina Shield Verified

Funds are locked in Payora USDT (TRC-20) escrow and released to the freelancer only after delivery approval.

24
Twenty · tip

How to write a response that gets picked

  • Open with the client’s task, not with a story about yourself.
  • Link one or two similar works from your portfolio.
  • Name a price and a deadline — and what exactly they include.
  • Ask one clarifying question: it starts the conversation.

Responses 1

Response texts are visible only to the client.

Same category

Similar projects

All projects in the category
Warehouse inventory app with barcode scanner

Warehouse inventory app with barcode scanner

Looking for a developer to build a mobile warehouse inventory app with barcode scanning, receiving, dispatch, stocktake and reports.

Software development24.09.20260236
0responses
Website accessibility audit against WCAG

Website accessibility audit against WCAG

We need an independent WCAG accessibility audit of our website: keyboard, contrast, screen readers and a clear report with fixes.

Software development24.09.20260236
0responses
Good to know
How do I respond to this project?

Log in as a freelancer, describe how you will solve the task, name your price and deadline. The client reads responses and starts a dialogue with the best ones.

Who can see my response?

Only the client who posted the project and you. Other freelancers do not see your text or price.

Where can I find similar work?

New projects in “Software development” appear every day. All projects in the category

What this page answers