i have 3 question i want Urgent help

Hi all of you,

I want help to answer this 3 question today I don't know how can I solve

1-Write a program to find the maximum number between 3 integer numbers.
The three numbers will be inserts by the user.
(This example should be solved by using the function)




2-write a program to find the sum of the odd numbers between any selected 10 numbers which the user inserts into an array.




3-
A) Wrie an algorothim for the following case:
User will input (insert) first_name, last_name, nationality, license_No,car_plate_No andfine_amount.
If the amount is exceeding 3000 Dhs(inclusive) then program should display net_amount with 20% discount otherwise it should display fine_amount as net_amount











B) Construct a trace table that test algorithm given above for the following Dataset:
First_name=Mohammed
Last_name=Ahmed
Nationality=UAE
License_No=5544432
Car_plate_no=55435
First_amount=3500
I want help to answer this 3 question today I don't know how can I solve

Interestingly enough, many people on these forums can answer the questions you have posted :) We won't though, because that in no way helps you.

If you have some code that you are having trouble with, please post it (in [code][/code] tags of course) and ask a question about that.

Otherwise, please elaborate on the troubles you are having (ie. what parts of the questions are you struggling with?) so we can help you.
Thanks for your reply,,

I want help in this part question number 3

and many thanks for you
Okay, what do you need help with on number three?

It seems fairly straight forward. Once you get the input, all you really need to process is the amount (so [if I read the instructions right] subtract 20% if it is greater than or equal to 3000 [keeping in mind that p percent of n is n * (p / 100). So, for example 8% of 30 is 30 * (8 / 100) = 30 * 0.08 = 2.4]).

Again, if you have some code, it would be a great help.
Topic archived. No new replies allowed.