C PROGRAMMING questions

Status
Not open for further replies.
G

Guest

Guest
Im going to sit for my mid term exam on monday...im revising for it...but im not able to solve this question...please help me to solve it....i need an algorithm too to help me understand better
\please help me

1. Write a complete C program that allows the user to do the following (in sequence)

i. Step 1 : Choose type one of the following Option :
a. Option 1 : Sorting The Number in Ascending Order
b. Option 2 : Sorting The Number in Descending Order
c. Option 3 : Find Biggest No
d. Option 4 : Find Smallest No
e. Option 5 : Calculate The Average of All Number
f. Option 6 : Calculate The Median Number
g. Option 7 : Exit System

ii. Step 2 : If user choose Option 1 – 7, ask the user how many numbers they would like to enter

iii. Step 3 : Ask the user to enter all the numbers

iv. Step 4 : Execute the operation on all the numbers based on the user’s option then display the output

v. Step 5 : Ask the user if he wish to try again.
a. If yes, repeat Step 1
b. If no, end the system
 
Solution
No, I will not provide you with a full answer. Basically you are asking me to help you cheat with your coursework so that you pass your exams. That's not fair on those who have done the work and pass their exams honestly.

Perhaps you are doing the wrong course.
Which part of the assignment are you having problems with? What code have you written so far?

This is a fairly straightforward problem so it's difficult to know what hints to give you - and I'm sure you don't want someone to just supply you with a complete solution.
 
can you just provide me the full answer as for now i dont have enough time to do more....i had tried it since last week...im trying for other questions....so please help me as fast as you can...im tensed as my mid term exam is on monday...please help me to figure out the algoritm also please
 
No, I will not provide you with a full answer. Basically you are asking me to help you cheat with your coursework so that you pass your exams. That's not fair on those who have done the work and pass their exams honestly.

Perhaps you are doing the wrong course.
 
Solution
hello mr.ijack i never mean to cheat anyone ok...please mind your words...i just looking for help...its ok if you cant just ignore...but dont simply tell anything as your wish....i have tried to write the code and i failed to cointinue it..thats all...and since now im trying...however thanks alot for your reply....

i write my code till here and then i try to write more,,,,but it fails....

 
#include<stdio.h>
#include<math.h>

void main()
{
printf("Step 1 : Choose one of the following Option:\n\n");
printf("Option 1 : Sorting The Number in Ascending Order\n");
printf("Option 2 : Sorting The Number in Descending Order\n");
printf("Option 3 : Find Biggest No\n");
printf("Option 4 : Find Smallest No\n");
printf("Option 5 : Calculate The Average of All Number\n");
printf("Option 6 : Calculate The Median Number\n");
printf("Option 7 : Exit System\n\n");

printf("Step 2 : How many numbers you would like to enter?\n\n");
printf("Step 3 : Enter all the numbers\n\n");

printf("Step 4: The output for your option will be display\n\n");
if
return (0);
}
 
Status
Not open for further replies.