Luisa won 5 pound bag of jellybeans at a carnival. she set aside 1 1/2 pounds for herself and packed the rest into small 1/4 pound babes to give away. how many bags did luisa solve and wrote an equation to find the number of babes luisa can make? ? plzz i will give you 100 points

14

Step-by-step explanation:

5- 1 1/2=7/2

7/2 divided by 1/4= 14

therefore she made 14 bags

see explaination

Explanation:

/*shopping.cpp*/

#include<iostream>

#include<fstream>

#include<algorithm>

using namespace std;

int knapsackDP(int[], int[], int, int);

int max(int, int);

int main()

{

int T; // no. of test cases

int N; // no. of items

int P[100]; // prices of items

int W[100]; // weights of items

int F; // no. of people in the family

int M = 0; // Maximum weight that can be carried

ifstream inFile;

ofstream outFile;

// open input file

inFile.open("shopping.txt");

// check whether the input file is opend or not

if (!inFile.is_open())

{

cout << "can't open the file" << endl;

return 1;

}

// open the output file

outFile.open("shopping.out");

// check whehter the output file is opened or not

if (!outFile.is_open())

{

cout << "can't open the file" << endl;

return 1;

}

// read the number of test cases from the input file

inFile >> T;

// process T number of test cases

for (int k = 0; k<T; k++)

{

// read the number of items from the input file

inFile >> N;

// read the price and weight of each item

// into respective arrays

for (int i = 0; i<N; i++)

{

inFile >> P[i];

inFile >> W[i];

}

int maxTPrice = 0;

// read number of family members

inFile >> F;

// find maximum price of items that can be carried by

// each family member and keep track the total of the

// maximum prices

for (int j = 0; j<F; j++)

{

// read the maximum weight that can be carried by a

// current family member

inFile >> M;

// find maximum price of items that can be carried by

// current family member and add it to maxPrice

maxTPrice = maxTPrice + knapsackDP(W, P, N, M);

}

// Write the maximum total price to output file

outFile << maxTPrice << endl;

// Write the maximum total price to console

cout << maxTPrice << endl;

}

// close the files

inFile.close();

outFile.close();

return 0;

}

// returns the maximum price of items that can be carried

// by a person, who can carry maximum weight M

int knapsackDP(int W[], int P[], int N, int M)

{

int K[N + 1][M + 1];

// Build table K[][]

for (int i = 0; i <= N; i++)

{

for (int w = 0; w <= M; w++)

{

if (i == 0 || w == 0)

{

K[i][w] = 0;

}

else if (W[i - 1] <= w)

{

K[i][w] = max(P[i - 1] + K[i - 1][w - W[i - 1]], K[i - 1][w]);

}

else

{

K[i][w] = K[i - 1][w];

}

}

}

// stores the result of Knapsack

int res = K[N][M];

int w = M;

for (int i = N; i > 0 && res > 0; i--)

{

if (res == K[i - 1][w])

continue;

else

{

// Since this weight is included its

// value is deducted

res = res - P[i - 1];

w = w - W[i - 1];

}

}

// K[N][M] represents the maximum price of items that can be carried by

// the family member

return K[N][M];

}

// returns maximum of two parameters that are received

int max(int a, int b)

{

if (a > b)

return a;

else

return b;

}

Thank you!

Step-by-step explanation:

14

Step-by-step explanation:

5-1 1/2=7/2

7/2 divided by 1/4 is 14

therefore Luisa makes 14 bags

Bet I need it so I can be 100iq

14

Step-by-step explanation:

5- 1 1/2=7/2

7/2 divided by 1/4= 14

therefore she made 14 bags

1

Step-by-step explanation:

Step-by-step explanation:Can I get in The Givaway Pls

1. Black

2. Grim goblin

3. The ink in the suspect's pen separated into the same number of pigments as the ink in the note.

4. Changed

5. Separated

6. I would believe that a colored ink is a mixture if I see different colors.

7. Students would all get 100% on every lab! the lab walkthrough Chemistry Problems and Solutions Manual

8. Re-write the answer exactly as written in the walkthrough. That way, there's no chance that you'll mess it up and you're guaranteed to get full points for it.

9. The answers to the questions in the lab reports are almost always in the walkthrough and I want you to use those answers!

10. Put a slip of paper in a jar of alcohol and see if the fabric dye separates into different pigments.

11. alcohol

Explanation:

I answered this last time but they took it down so please copy and paste this asap so you can get the answers

1

Step-by-step explanation:

100-99=1

you have 1 dog left