#🔒 I am learning python as a Hobby and I need help on a sales project I was given.

19 messages · Page 1 of 1 (latest)

silk moat
#

*Write a program that will allow a manager to determine and display the total sales for
the department. The manager will enter the sales goal for the month. Then the manager
will enter (input) the sales for each salesperson for four (4) weeks. After each
salesperson, the program should ask the manager if there is another. Once all the sales
are entered the program will accumulate the total sales for the department.
Display the total number of employees in the department and total sales for the
department. The manager earns a 2% bonus on all sales for the month. If the total
department’s sales exceed the sales goal, then the manager’s bonus is 5% of the total
sales. Determine and display the sales goal and manager’s bonus amount.

Hint: two loops are required – use a loop to allow for another salesperson’s monthly
sales to be entered and a second loop for the four (4) weeks of sales of the individual
salesperson.

Some sample Input/Output is provided on the next page. The output is based on the
input for two (2) employees one with weekly sales of (1200, 1300, 1250, 2250) and
second salesperson’s sales (2399, 2103, 1900, 1000). Sales goal for the month -
$11000.
Display screenshots of at least 4 instances of the program:
• one with at least 2 employees in the department
• one with at least 3 salespersons in the department
• one where the sales goal is exceeded
• one where the sales goal is not met.*

I DO NOT WANT TO BE GIVEN THE ANSWER I WOULD LOVE IF SOMEONE COULD WALK ME THROUGH STEP BY STEP ON WHAT NEEDS TO BE DONE. I AM A BEGINNER AND ONLY KNOW indexing and slicing, conditions, for loops, input, lists, string methods, type casting, variables, and data_types.

My biggest problem is trying to figure out what needs to be done. I am told that writing out each TASK or step helps but I don't know whaty steps to write.

Please help

vestal eagleBOT
#

@silk moat

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

silk moat
#

I have this

*sales_goal = int(input("Enter the Sales goal for the month: "))
salesperson_total = 0

for i in range(4):
sales = int(input(f"What was the sale for week {i + 1}? "))
salesperson_total += sales*

#

My first step was to input the sales goal for the month
The next step was to input the sales for each sales person for 4 weeks

but I need to figure out how to add additional sales people as I can only add one. I want to do a FOR loop for it

left lodge
dense warren
#

!code format looks like this 👇

vestal eagleBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

dense warren
#
print("For example")
silk moat
#

Sorry I am new to this chat and don't really use discord that much

dense warren
silk moat
#

I have to input two sales people

#

for now

#

Right now I want to learn how to add additional sales people

vestal eagleBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.