473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Program to input and order numbers

eyv092291
"Accept 10 numbers and arranged from lowest to highest"
in Turbo C. I don't know what statement or what logic should be use to arrange the accepted integers from lowest to highest. Please do help us, me and my group mates hardly need this to pass programming. Thank you and God Bless You!! (^___^)v
Aug 31 '08 #1
10 2922
JosAH
11,448 Expert 8TB
What have you and your group mates done already? And where did you fail to do
whatever you wanted to do?

kind regards,

Jos
Aug 31 '08 #2
newb16
687 512MB
And I would like to know - was it your ( and goupmates' ) tutor who didn't bother to explain anything and started the course with the assignment, or were somebody just slacking all year round?
And btw - complete program can be found in google on the very second page.
Aug 31 '08 #3
i am trying to use "else if" statement.. hopefully this will work..

lols we don't fail when doing whatever we wanted to do.. xD

i wish ill finish this case report in time.. x_x

^__^v
Sep 1 '08 #4
And I would like to know - was it your ( and goupmates' ) tutor who didn't bother to explain anything and started the course with the assignment, or were somebody just slacking all year round?
And btw - complete program can be found in google on the very second page.
newb16
where in google can i find it?.. ?__?
Sep 1 '08 #5
newb16
687 512MB
newb16
where in google can i find it?.. ?__?
You seem to ignore my questions.
Sep 1 '08 #6
JosAH
11,448 Expert 8TB
You seem to ignore my questions.
Not only that but the OP's keyboard seems to produce spurious additional
characters, effectively rendering the messsage quite unreadable. I'll ignore
those messages, they look very childish.

kind regards,

Jos
Sep 1 '08 #7
You seem to ignore my questions.
sorry sorry.. yea our teacher still doesn't teach us about that.. she only said that its only about 150++ lines.. but while i am editing im in about 250++.. lol..
Sep 2 '08 #8
Not only that but the OP's keyboard seems to produce spurious additional
characters, effectively rendering the messsage quite unreadable. I'll ignore
those messages, they look very childish.

kind regards,

Jos
sorry sorry.. im just 16.. yea ill try to be more mature.. xD
Sep 2 '08 #9
newb16
687 512MB
sorry sorry.. yea our teacher still doesn't teach us about that.. she only said that its only about 150++ lines.. but while i am editing im in about 250++.. lol..

What? 150+ ? That is too freakin' much. With given requirements and with simplest and dumbest bubblesort ( not that is effective, but involves less brain power ) it is 2(3) lines to input 10 numbers in loop ( you know what loop is, right? ), 8 to sort them in 2 nested loops and 3 lines to output sorted numbers in a loop. Plus 5 some lines for #include, main(), variables declaration.
Sep 2 '08 #10
donbock
2,426 Expert 2GB
The point of your exercise is probably for you to find and implement a sort algorithm. There are lots of them to choose from. Maybe you can find the classic text "Sorting and Searching" by Donald Knuth in your library; or you could try googling "sorting algorithms".

On the other hand, if the purpose of this exercise is just to get the job done any way you can (and not learn about sorting), then you might want to take a look at the qsort() library function in <stdlib.h>.

Cheers,
donbock
Sep 5 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Ling Lee | last post by:
Hello. I'm trying to write a small program that lets you put in a number as an integer and then it tells you the textuel representation of the number. Like if your input is 42, it will say...
6
by: hoover_richard | last post by:
I am a newbie to C++ and I need help with a simple program I am trying to write. My program is designed to print all of the odd integers contained in an array and output the sum of the odd...
7
by: Hulo | last post by:
In a C program I am required to enter three numbers (integers) e.g. 256 7 5 on execution of the program. C:\> 256 7 5 There should be spaces between the three numbers and on pressing "enter",...
9
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
2
by: gdarian216 | last post by:
the object of the project was to create a program that inputs multiple lines of integers and outputs them in an HTML table. The negative numbers should be red. The numbers should be printed 3 in a...
7
by: ibtc209 | last post by:
I just started programming in C, and I need some help with this problem. Your program will read the information about one MiniPoker hand, namely the rank and suit of the hand’s first card, and...
1
by: Homeworkboy | last post by:
Can anyone help me with this program? Look at the bottom of this program for help methods: /*1. Make a program that uses numbers from 1 to 100 including each ends which puts the even...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
2
Banfa
by: Banfa | last post by:
Posted by Banfa The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.