Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write in c++, do not use any libraries except algorithm library, make sure it works in all cases not only the example. A company ABC

write in c++, do not use any libraries except algorithm library, make sure it works in all cases not only the example. image text in transcribed
image text in transcribed
A company ABC requires to use an online server for research experimentation for a certain number of days. The server will be used on certain days but not every day. To use an online server, the company is required to subscribe to a cloud provider. A cloud provider offers 3 subscriptions options: 1-day subscription, a 1-week subscription, or a 30-day subscription, each one of them has a price that can be found in a given array of prices, where prices [0] represents the price of a 1-day subscription, prices [1] represents the price of a 1-week subscription, and prices [2] represents the price of a 30-days subscription. Write a function Minsubscription to find the minimum amount of money that company ABC needs to have in order to use a server during all the experimentation days. Your function Minsubscription takes as parameters 3 values: E which represents the number of experimentation days. Days which has E integer values that represent the experimentation days Di where 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 2 Lnai 6322

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215882X, 978-3642158827

More Books

Students also viewed these Databases questions

Question

Give correct names for the following compounds: a. b. c. d

Answered: 1 week ago

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago