nord vpnnord vpn
Ad

assignment

assignment 1 - 2 -3
mail@pastecode.io avatar
unknown
plain_text
a year ago
1.8 kB
5
Indexable
Never
Hello sir, these are my assignments in school which needed to be done in the next 24 hours. :( Hope you can finish it all. Also, i have provided a solved sample for reach problems so that you can copy its solution and how i did solved them.

sample SOLVED program codes.. - https://www.file.io/jpbD/download/oBpaTtmA18Sd

ASSIGNMENT 1: IF-ELSE OR SWITCH
Write a program that asks for the quantity and price of an item. If the total price of the purchased item is within the range of  1000 to 3000, the customer will be given a 5% percent, if it is greater than 3000, the customer will receive a 10% discount, otherwise, no discount is given to them. The program should display the Quantity, price, total price, discount price, and the discounted price.

ASSIGNMENT 2: IF-ELSE OR SWITCH
A bicycle salesperson is offered a choice of wage plans: 1) a straight salary of $300 per week; 2) $3.50 per hour for 40 hours plus a 10% commission on sales' 3) A straight 15% commission on sales with no other salary. Write a program segment that takes as input the salesperson's expected weekly sales and outputs the wages paid under each plan.

ASSIGNMENT 3: IF-ELSE OR SWITCH
The net income is computed as gross income minus the income tax. Write a program that accepts the gross income and computes the income tax to be paid based on the computed net income below:

- 3% of net income up to 8000.

- 5%  of net income from 8001 to 15000

- 8%  of net income over 15000.

The program will display the following:

Gross Income :

Computed Income tax:

Computed Net Income:



Test data:


if gross income= 8000.00

Computed income tax: 240.00

Computed net income: 7760.00

--------------------------------

if gross income= 10000.00

Computed income tax: 500.00

Computed net income: 9500.00

nord vpnnord vpn
Ad