Write a method (only the method - no need to do it practically using a
compiler) that can calculate and return the transfer cost. Transfer cost is
calculated by (price x 2.5%) if the price is greater than or equal to R500
000.
We need at least 9 more requests to produce the answer.
1 / 10 have requested this problem solution
The more requests, the faster the answer.
PLEASE SOLVE THESE QUESTIONS. USE JAVA FOR CODING. Q.5.8 Write short Java code to display the following screen (no need to do it practically using a compiler, just basic coding to display the screen): Sample screenshot Input х ? Enter (1) to display the vowel count. Enter (2) to display the non vowel count. Enter (0) to exit. OK Cancel Q.5.9 Write a short Java code to display the following screen (no need to do it practically using a compiler,...
Write in Python 3 Write a program that takes the value of an angle x in degrees, such that 0 s x <90, and calculates approximate value of sine of the given angel using the following series sin(x)-x-for all x The series given above has infinite number of terms. However, you can only include a finite number of terms in the series. The absolute value of each subsequent term is smaller than that of the term calculated before it. The...
Task 2) Write and execute a C program using any C compiler to input students' number of previous semesters attended and marks of all the modules he has studied. And do the following: a. Determine and display grade received for each module studied according to the following conditions: Condition Result Marks is greater than or equal to 91 A Marks is greater than or equal to 70 B Marks is greater than or equal to 50 D Otherwise F b....
Problemi Consider the plecewise function sit) defined as follows: -(+2 when -2sts2 0.5 elsewhere s(t)- Write a MATLAB user-defined function called aystfun.n that has one input argument to, and two output arguments: s0 and vsO. Your function must satisfy all the following requirements: 1. Your function must calculate and return the vector so - s(t0) for any supplied numerical vector to. We assume that the function is always called with a vector t0 whose elements are all in [-4,4]. 2....
Write a C++ code for this question- Write a program with a method that plays the guess a number game. The program should allow the user to pick a number between 1 and 1000 in his head. The method should guess the user's number in a minimal amount of attempts. The method should ask the user "is the number greater than or less than the number " and the program gives a particular number. The user in some way just...
Array manipulation (a) Write Java code for a method exchange (int [] a, int i, int j) that exchanges the values stored at indices i and j in the array a. You do not need to worry about cases where either i or j is an invalid index. Give the best estimate you can for its time complexity (b) In an ordered array of n items, how can we determine whether or not an item belongs to the list using...
Write a method that calculates a 15% discount on the price of an item. Have the method return the discounted price. For example if the price is $100.00 the method should return $85.00. Write the method using either returning void and using a referene parameter or write it returning the value as a double or decimal and taking a value parameter. Call the function passing it an appropriate variable. Display the result.
How to write a recursive method named lessThanKFirst that receives an array of integers a and an integer k and rearranges the integers in a in such a way that all integers that are smaller than k come before any integers that are greater than or equal to k. As an example, suppose that a and k are: int[] a = {35, 12, 57, 28, 49, 100, 61, 73, 92, 27, 39, 83, 52}; int k = 73; Then, the following...
3-How would you write the following using C code? X is equal to Y (comparing X and Y not setting X to the value of Y) X is not equal to Y A is less than or equal to B Q is not greater than T X is greater than or equal to Y X is less than or equal to Y and A is not equal to B A is greater than 18 and H is greater than 68...
PLEASE DO THIS IN RUBY # Write a method bigger_filter that accepts an array of numbers and a target number. The method should return a new array containing the elements that are greater than the given target. def bigger_filter(arr, tar) end print bigger_filter([7,3,2,8,12], 5) # => [7, 8, 12] #puts print bigger_filter([1,2,3], 100) # => [] #puts print bigger_filter([10,9,20,3], 9) # => [10, 20] MY ATTEMPT def bigger_filter(arr, tar) new_arr = [] i = 0 while i...