An oil company gives the following profits for their outlets

An oil company gives the following profits for their outlets (gas stations) depending on their average daily sales Write a Matlab script to calculate the profits over a month (30 days) for the following average daily gallons sales: 500, 750, 1200, 2200, 2800, 3500, 4500

Solution

g500=500;
g750=750;
g1200=1200;
g2200=2200;
g2800=2800;
g3500=3500;
g4500=4500;

p500=(0.1*g500)*30
p750=(0.1*g750)*30
p1200=((g1200-1000)*0.15+100)*30
p2200=((g2200-2000)*0.18+250)*30
p2800=((g2800-2000)*0.18+250)*30
p3500=((g3500-3000)*0.2+430)*30
p4500=((g4500-3000)*0.2+430)*30

 An oil company gives the following profits for their outlets (gas stations) depending on their average daily sales Write a Matlab script to calculate the profi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site