Knowee
Questions
Features
Study Tools

Have the student enter the number of classes they are taking.For each class the student is going to buy a notebook that costs $1.50.The student is also going to buy a package of pencils that costs 4.00.There is tax of 10%.Output the total cost of buying items for the class.Trace the flowchart twice: once with 2 classes and once with 5 classes.

Question

Have the student enter the number of classes they are taking.For each class the student is going to buy a notebook that costs $1.50.The student is also going to buy a package of pencils that costs 4.00.There is tax of 10%.Output the total cost of buying items for the class.Trace the flowchart twice: once with 2 classes and once with 5 classes.

🧐 Not the exact question you are looking for?Go ask a question

Solution

Step 1: The student enters the number of classes they are taking. Let's denote this number as 'n'.

Step 2: Calculate the cost of notebooks. Since each notebook costs $1.50, the total cost for notebooks would be 1.50 * n.

Step 3: Calculate the cost of pencils. Since each package of pencils costs $4.00, the total cost for pencils would be 4.00 * n.

Step 4: Add the total cost of notebooks and pencils to get the subtotal.

Step 5: Calculate the tax. Since the tax rate is 10%, the tax would be 10% of the subtotal.

Step 6: Add the tax to the subtotal to get the total cost.

Now, let's trace the flowchart twice:

Case 1: 2 classes

  • Step 1: n = 2
  • Step 2: Cost of notebooks = 1.50 * 2 = $3.00
  • Step 3: Cost of pencils = 4.00 * 2 = $8.00
  • Step 4: Subtotal = 3.00 + 8.00 = $11.00
  • Step 5: Tax = 10% of 11.00 = $1.10
  • Step 6: Total cost = 11.00 + 1.10 = $12.10

Case 2: 5 classes

  • Step 1: n = 5
  • Step 2: Cost of notebooks = 1.50 * 5 = $7.50
  • Step 3: Cost of pencils = 4.00 * 5 = $20.00
  • Step 4: Subtotal = 7.50 + 20.00 = $27.50
  • Step 5: Tax = 10% of 27.50 = $2.75
  • Step 6: Total cost = 27.50 + 2.75 = $30.25

This problem has been solved

Similar Questions

When a student is taking 3 or more classes, they can buy a multi class notebook for 5.00. So, if they are taking more than 3 classes ask them if they want separate notebooks or 1 big notebook.Trace the flowchart three times: once with 1 class, once with 3 classes and separate notebooks, and 5 classes with the one big notebook

Write an equation to represent the situation. Write the equation in the order the information is presented.You are shopping for school supplies for the new school year. You have everything you need except binders and dividers. Each binder, b𝑏, costs $8$8 and each pack of dividers, d𝑑, costs $4$4. In total you spent $42$42 on your supplies. Write an equation in two variables that represents the relationship between the cost of binders and the cost of dividers. b+𝑏+ d=𝑑=

Rafael purchased n notebooks. They were 5 dollars each. Write an equation to represent the total cost c that Rafael paid.

dd to the flowchart from Assignment 3.Have a loop so that it can process multiple customers.Output the amount each person has to pay and the total revenue for the day.Trace the program, make up your own data.Show the data at the top of the page. Make sure you trace with at least 3 people

A project has annual depreciation of $24,300, costs of $100,100, and sales of $147,500. The applicable tax rate is 34 percent. What is the operating cash flow?

1/2

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.