Write an algorithm that creates a program that allows bags to be purchased. There are six different types: full decorative, beaded, needlepoint design, fringed beaded and plain. Create a ListBox object for the different styles. After the user makes a selection, display a message indicating which selection was made. Include an option to clear selections. Include a control that allows the user to enter the quantity desired. Include a set of radio buttons that contain shipping options of overnight, three day and standard. The price for each bag is as follows: full decorative R50; beaded – R45; needlepoint design – R40, fringed beaded – R30 and plain – R20. The shipping charges are based on the total purchase. The following percentages are used: Overnight – 10%, three day – 7% and standard – 5%. Display in a message box the shipping charge along with the selection, quantity and total cost.
write an algorithm that Create a program that allows bags to be purchased. There are six different types: full decorative, beaded, needlepoint design, fringed beaded and plain. Create a ListBox object for the different styles. After the user makes a selection, display a message indicating which selection was made. Include an option to clear selections. Include a control that allows the user to enter the quantity desired. Include a set of radio buttons that contain shipping options of overnight, three day and standard. The price for each bag is as follows: full decorative R50; beaded – R45; needlepoint design – R40, fringed beaded – R30 and plain – R20. The shipping charges are based on the total purchase. The following percentages are used: Overnight – 10%, three day – 7% and standard – 5%. Display in a message box the shipping charge along with the selection, quantity and total cost.
The program is to input an examination mark and test it for the award of a grade. The mark is a whole number between 1 and 100. Grades are awarded according to the following criteria: >= 80 Distinction >= 60 Merit >= 40 Pass < 40 fail Write pseudo-code.
Write an algorithm that calculates the net pay of an employee based on the formula as shown in Equation (1). Based on the algorithm, draw the flowchart as well. The taxes are calculated as following;
• If GrossPay is less than 5000, then taxes are zero
• If GrossPay is at least 5000, but less than 10,000 then taxes are 2% of the GrossPay
• If GrossPay is 10,000 or more, then taxes are 4% of the GrossPay
NetP ay = GrossP ay − T axes
An applicant will be accepted to the Jedi Knight Academy if he is at least 200 cm
tall; age is between 21 and 25 inclusive, and a citizen of the Planet Endor.
However, if the applicant is recommendee of Jedi Master Obi Wan, he is accepted
automatically regardless of his height, age and citizenship. Write a program that
would input the applicant's height, age, citizenship code (1- citizen 0-not citizen)
and recommendee's code (1- recommended 0- not recommended) and then output
whether the applicant is accepted or rejected.
Write an interactive program (algorithm and flowcharthat computes the area of rectangle ( area = base* height) and area of triangle ( area = 1 * base* height). Let the user choose what area to compute by prompting the first character of figure name (R-Rectangle or T - Triangle) then compute and print the desired result.
An electric company bases its charges on two rates, customers are charged P25.00 per kilowatt-hour for the first 300 kilowatt-hours used in a month and P30.00 each for all kilowatt-hours used thereafter. Compute for the amount due from a customer after reading the kilowatt-hours used. Assume that there are 100 records of customers.
Draw the flowchart and write the pseudocode that will compute for the weekly salary of a forty (40) hour per week employee. Work rendered in excess of 40 hours is considered overtime which is paid 150% per hour. The employee salary is deducted the following:
a) Pag-ibig is 2% of gross pay
b) Philhealth is 5% of gross pay
c) SSS is 10% of gross pay
d) Income tax is 15% of gross pay if the weekly salary is more than 5000 otherwise it is 5%.
The user will enter the number of hours rendered and the rate per hour of the employee. Print the employee name, gross pay, total deductions and the net pay.
Gross pay=salary/week plus overtime if there is.
Total deductions=all items deducted from the employee
Net pay=gross pay – total deductions.
1. flowchart for the situation provided
Printing of odd numbers less than a given number. It should also calculate their sum and count.
Write an Algorithm and draw a flowchart that will convert a given decimal number (N10) to its equivalent Binary number (N2).