Answer:
29
Explanation:
for n=28:
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 28*28 + 28/2 = 798
Algorithm 2 performs f(n) = 12*28 + 500 = 836
for n=29
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 29*29 + 29/2 = 855.5
Algorithm 2 performs f(n) = 12*29 + 500 = 848
so, for n=29, algorithm 2 will be faster than algorithm 1
When creating a user-generated function, what procedure is followed d) all of the above.
<h3>
What are the three factors of user-described characteristic?</h3>
A user-described characteristic has 3 essential additives which might be characteristic declarations, characteristic definition and characteristic called.
The characteristic prototypes are used to inform the compiler approximately the variety of arguments and approximately the specified datatypes of a characteristic parameter, it additionally tells approximately the go-back kind of the characteristic. By this information, the compiler cross-assessments the characteristic signatures earlier than calling.
Read more about the prototype :
brainly.com/question/7509258
#SPJ1
The pseudocode of the program is simply a prototype of the actual program
<h3>How to write the
pseudocode?</h3>
The pseudocode that does the requirements in the question is as follows:
- Start
- Get Input for amount of purchase
- Compute the state tax: sales tax = sales tax percentage * amount
- Compute the provisional sales tax: provisional sales tax = provisional sales tax percentage * amount
- Print the taxes
Read more about pseudocode at:
brainly.com/question/24735155
#SPJ1