1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ElenaW [278]
3 years ago
12

I need help writing the algorithm I know how to do the flow chart for the first one but I’m not sure if the second question is a

for loop

Computers and Technology
1 answer:
Lena [83]3 years ago
6 0

Answer:

The algorithm is as follows:

(a) Sales and commission

1. Start

2. Input Sales

3. Commission = 0.30 * Sales

3. If sales >= 4000.00 then

3.1   Commission = 0.60 * Sales

4. End If

5. Print Commission

6. Stop

(b) Amount of Rainfall

1. Start

2. Days = 1

3. Total = 0.0

4. While Days <= 31

4.1. Input Rainfall

4.2. Total = Total + Rainfall

4.3. Days = Days + 1

4.4. End If

5. Print Total

6. Stop

<em>See attachment for flowchart</em>

Explanation:

(a) Sales and commission

This begins the algorithm

1. Start

This gets sales from the user

2. Input Sales

This calculates the commission based on 30% (i.e. for sales < 4000)

3. Commission = 0.30 * Sales

This checks if sales is greater than or equal to 4000

3. If sales >= 4000.00 then

This calculates the commission as 60% of Sales

3.1   Commission = 0.60 * Sales

This ends the if condition

4. End If

This prints the calculated commission

5. Print Commission

This ends the algorithm

6. Stop

(b) Amount of Rainfall

This begins the algorithm

1. Start

This initializes the number of days to 1

2. Days = 1

This initializes total rainfall to 0

3. Total = 0.0

The following while loop is repeated until day 31st

4. While Days <= 31

This gets input for Rainfall from the user

4.1. Input Rainfall

This calculates the total rainfall

4.2. Total = Total + Rainfall

This increments the number of days

4.3. Days = Days + 1

This ends the if statement

4.4. End If

This prints the total rainfall

5. Print Total

This ends the algorithm

6. Stop

You might be interested in
CONCEPTO DE ORGANIGRAMA
inysia [295]
Como the amas si mucho gusto
3 0
3 years ago
Which of the following is among the ComScore Ad Metrix Reports?
IceJOKER [234]
I think it is d but not exactly sure
6 0
3 years ago
Write a function ""volCylinder"" that takes twofloats""r""for the radius and ""h""for the height of the cylinder and returnsthe
Mandarinka [93]

Answer:

def volCylinder(r, h):

   return 3.14 * r * r * h;    

radius = float(input("Enter the radius: "))

height = float(input("Enter the height: "))

print("The volume of the cylinder is: "+ str(volCylinder(radius, height)))

Explanation:

- Inside the function, calculate the volume of the cylinder using the formula and return the result.

- Then, take inputs from the user for radius and height as float numbers

- Call the function and print the result

4 0
3 years ago
Read 2 more answers
This question involves the app Messenger the blue thing that can be synced with Facebook. So my friend took a picture of my code
jarptica [38.1K]
He probably hasn't sent the request or you haven't updated it or he is not part of your Facebook  contac list
7 0
3 years ago
Help please
Ipatiy [6.2K]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This question has two option, and this question is asked about how study group working effectively.

A group has agreed to meet twice a week to study for an  upcoming test. However, the study group has irregular  attendance because some members skip sessions without  notice.

This option does not fulfill the objective of the study group working effectively. Because, in this option some members are irregular and skip sessions without notice which does not the objective of study group working effectively.

During the study sessions, the attending group members  discuss each other's class notes, ask each other open- ended questions, drill each other on concepts, and come  up with possible test questions.  structuring their study sessions well  using good listenings is  having thoughtful discussions  sharing their notes freely with each other  showing a commitment to the group.

This option fulfills the objective of studying in a group. This option is correct and it matches with studying in a group effectively.

7 0
3 years ago
Read 2 more answers
Other questions:
  • What is the ribbon in the word document
    5·1 answer
  • Rank these three account types in order of decreasing liquidity. Start by picking the most liquid account type first
    13·2 answers
  • Which of these converts analog audio signals into digital codes in a computer?
    5·2 answers
  • Analyze the following code. // Program 1: public class Test { public static void main(String[] args) { Object a1 = new A(); Obje
    5·1 answer
  • What is rapid prototyping?​
    11·1 answer
  • Z-Wave and Zigbe use a _______________ networking topology to facilitate communication in homes, yet both also have hubs that ac
    8·1 answer
  • Amye is in high school. As part of one of her classes, she had to identify the legality of different situations that involved
    10·2 answers
  • Which element is represented by the electron configuration in example B? Example B: 1s22s22p63s23p64s1 Aluminum Cesium Potassium
    12·2 answers
  • Question 4
    5·1 answer
  • How impactful were shipping errors on customer questions.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!