Question: Write a program to print your favorite color and city on the screen. Write to program to calculate the commission of an employee. The commission

  1. Write a program to print your favorite color and city on the screen.
  2. Write to program to calculate the commission of an employee. The commission is 30% of the sales. The user will input the amount of sales
  3. Write a program using a for loop to sum all the even numbers from 2 to 20.
  4. Write a program to calculate the product of all odd numbers from 3 to 10.
  5. Write a program, which uses a selection structure (if/else) to calculate and print the student grades.

90and above is an A

70and above is a B

60and above is a C

45 and above is a D

below 35is fai

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!