Questions: 856

Answers by our Experts: 763

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

algorithm to wite a programme to determine if the student is pass or fail

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 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.


Write an algorithm that creates 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 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.


1.3 Write the function or sub procedure and the function and/or procedure call for the following:

1.3.1 The function must determine and return the results if the two values sent to it are even or not. Use a selection control structure in your call statement. 1.3.2 There are three players in a match, they all have different scores. The function must determine the best player and the name for the best player. The best player must have 150 or more points. The calling module must display the name and the points of the best player.


1.2 Study the following description and then write a sub procedure call as well as the complete sub procedure.

1.2.1 The sub procedure must calculate the area and perimeter of a circle which must be accessible by the calling module.


1.1 Study the following description and then write a function call as well as a complete function definition or implementation to calculate and return the answer in an algorithm.


1.1.1 The function must determine and return the results if an angle is equal to 90 degrees, display the message “The angle is a right angle”; else display the message “The angle is not a right angle”.

1.1.2 If getResults(summative1, summative2) = true The function must determine and return results to indicate if the student has passed or not. The student will pass the module if the final mark of one of the summative test mark is 50 and above.


Create a pseudocode and flowchart for the following:

  1. Convert Fahrenheit degree to Celsius
  2. Converting feet into meters
  3. Checking if integer 1 is equal to integer 2
  4. Check if student's grade is PASSED or FAILED. PASSED if grade is greater than or equal to 75. FAILED if grade is less than 75.
  5. Compute for the perimeter of a circle.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS