Draw the flowchart and write the pseudocode that will compute for the average score of the students per subject (Calculus & English) in three examinations (Prelim, Midterm, Finals) Determine and print how many passed in a class of 40 students in each subject if the passing average are: Calculus = 70 & above, English = 75 & above. Print the student names, scores in the three examinations, average score per subject, and the remarks (Passed or Failed). User will input the examination scores in the two subjects.
PSEUDOCODE
Tip, Tax, and Total
Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total.
FLOWCHART AND PSEUDOCODE
Convert decimal no. to its binary equivalent
HAND TRACING
Accept the two sides and an angle included by these two sides, and find the area and third side of a triangle.
(1) Display "Enter two sides and an angle:"
(2) Accept a, b,theta
(3) ang = theta * 3.14 / 180;
(4) third_side = sqrt (a*a + b*b - 2*a*b* cos(ang))
(5) area = ½*a*b* sin(ang)
(6) Display "Third_side =",third_side,"Area =", area
(7) Exit
Write an algorithm for a program that can be used to determine the tip amount that should be added to a restaurant charge. Allow the user to input the total, before taxes and the tip percentage (15% or 20%). Produce output showing the calculated values including the total amount due for both the 15% and the 201% tips. Tax of 9% should be added to the bill before the tip is determined. Display subtotal showing the amount owed prior to applying the tip, show each tip amount and the totals with each tip amount. Be sure to provide labels for values and the totals with each tip amount. Write appropriate methods for your solution.
The Information Systems Department is selling T-shirts. Write an algorithm that Creates an attractive user interface that allows users to select sizes (S, M, L, XL) and quantity. Choose the most appropriate controls. Remember, the fewer keystrokes required of the user the better. Display the selections made by the user with the Process menu option. Include an option to exit the application. Include two more sizes, XSmall and XXLarge. Add statements that process the order by calculating the total cost. Each shirt is $16 except the XSmall and XXLarge; their speciality prices are $20 each Display the total cost of then selection. Include a help option that displays instructions. You can enhance your solution by allowing users to purchase different sizes on the same order.
Write an algorithm that creates a windows application that contains two TextBox objects and two Button objects. One of the TextBox objects and one of the buttons are initially invisible. The first textbox should be used to input a password. The textbox should be masked to some character of your choice so that the characters entered by the user are not seen on the screen. When the user clicks the first button, the second TextBox object and button object should be displayed with a prompt asking the user to reenter his or her password. Now the user clicks the second button, have the application compare the values entered to make sure they are the same. Display an appropriate message indicating whether they are the same.
Write an algorithm for a program that includes an Employee class that can be used to calculate and print the take home pay for a commissioned sales employee. All Employee receives 7% of the total sales. Income tax rate is 18%. Retirement contribution is 10%. Social security tax is 6%. Write instance methods to calculate the commission, income tax and social security tax withholding amounts as well as the amount withheld for retirement. Use appropriate constants. Design an object oriented solution and write constructors. Include at least one mutator and one accessor method; provide properties for the other instance variables. Create a second class to test your design. Allow the user to enter values for the name of the employee and the sales amount for the week in the second class.
Write an algorithm for a program that computes that amount of money a computer club will receive from proceeds of their Magwinya café sales project. The Magwinya are sold in cases that contain a dozen in each case. Allow the user to enter the number of cases sold and the sale price per gwinya. Each case contains 12 magwinya; each case is purchased at R15.00 per case from a local vendor. The computer club is required to give the SRC 10% of their earnings. Display their proceeds formatted with currency. Display instructions to the user about the application. Display all inputs and calculated values. Write appropriate methods for your solution.
Brent has 500.00 pesos worth of money. He went to the department store to buy things needed for school. Below are the things he want to buy
drawing things: worth 350 papers, pencils, ballpen,
notebook: worth 150
How much his money left?