473,395 Members | 1,488 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.

please help me about this!

hey guys!!
arrays really makes me confused. will you help me about this?:

create a program that that accepts ten positive integers from the users. The program will group and sort all even numbers as well as odd numbers. Even numbers will be sorted in descending order. If no even numbered entered, the program prints "no even numbers" and prints the sorted odd numbers. If no odd number entered, the program prints "No odd numbers entered and prints the sorted numbers. . .

sample output:

enter poitive entegers: 2 1 3 6 8 12 4 11 7 10
even numbers: 2 6 8 12 4 10
sort result: 2 4 6 8 10 12

the odd numbers: 1 3 11 7
sort result: 1 3 7 11

sample 2:

ten positive integers: 3 1 7 11 31 21 17 9 5 13
the even numbers are: "no even numbers"

the odd numbers are: 3 1 7 11 31 21 17 9 5 13
sort result: 31 21 17 13 11 9 7 5 3 1



thanks in advance!!!

I hope you can help me about this!
Jan 5 '07 #1
2 1517
willakawill
1,646 1GB
hey guys!!
arrays really makes me confused. will you help me about this?:

create a program that that accepts ten positive integers from the users. The program will group and sort all even numbers as well as odd numbers. Even numbers will be sorted in descending order. If no even numbered entered, the program prints "no even numbers" and prints the sorted odd numbers. If no odd number entered, the program prints "No odd numbers entered and prints the sorted numbers. . .

sample output:

enter poitive entegers: 2 1 3 6 8 12 4 11 7 10
even numbers: 2 6 8 12 4 10
sort result: 2 4 6 8 10 12

the odd numbers: 1 3 11 7
sort result: 1 3 7 11

sample 2:

ten positive integers: 3 1 7 11 31 21 17 9 5 13
the even numbers are: "no even numbers"

the odd numbers are: 3 1 7 11 31 21 17 9 5 13
sort result: 31 21 17 13 11 9 7 5 3 1



thanks in advance!!!

I hope you can help me about this!
Hi
Please post code. Post what you have done so far.
Jan 5 '07 #2
r035198x
13,262 8TB
hey guys!!
arrays really makes me confused. will you help me about this?:

create a program that that accepts ten positive integers from the users. The program will group and sort all even numbers as well as odd numbers. Even numbers will be sorted in descending order. If no even numbered entered, the program prints "no even numbers" and prints the sorted odd numbers. If no odd number entered, the program prints "No odd numbers entered and prints the sorted numbers. . .

sample output:

enter poitive entegers: 2 1 3 6 8 12 4 11 7 10
even numbers: 2 6 8 12 4 10
sort result: 2 4 6 8 10 12

the odd numbers: 1 3 11 7
sort result: 1 3 7 11

sample 2:

ten positive integers: 3 1 7 11 31 21 17 9 5 13
the even numbers are: "no even numbers"

the odd numbers are: 3 1 7 11 31 21 17 9 5 13
sort result: 31 21 17 13 11 9 7 5 3 1



thanks in advance!!!

I hope you can help me about this!
I've seen this problem posted here before. Will is right you have to show some effort to solve this yourself before others can start giving you code.
Jan 5 '07 #3

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

Similar topics

2
by: KK | last post by:
Hi Peoples, Can anyone give me any learning materials for learning C++. i.e. can you give me any docs or give me the link to any website that has info on programming in general or C++. (ok...
1
by: HolaGoogle | last post by:
Hi all, Please help me with the following..it's realy urgent and i tried everything i could and i can't get it work properly!! Thanks in advance. Here's what i'm trying to accomplish: in my...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
4
by: pshindle | last post by:
DB2 Team - I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack files to a CD. I proceded to install this...
3
by: Mark Broadbent | last post by:
could somebody please recommend a good book to prepare for exam Exam 70-320*: Developing XML Web Services and Server Components with Microsoft Visual C# and the Microsoft .NET Framework . One that...
9
by: FERHAT AÇICI | last post by:
hi all! who know arrays on visual basic please tell me.... thanks..
31
by: Simply_Red | last post by:
i'm sorry i posted this in other groupes, and i didn't see it, and as this group is most actif, i repost it here, and sorry for mutliposting: Hi, i'm using VC6, i have this declaration: ...
6
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID,...
2
by: Unpopular | last post by:
void directory::modification()//??????????? { clrscr(); cout<< "\n\t @@@@@@ @@@@@ @@@@@ @@@@@@ @@@@@ @ @ @@@@@@ "; cout<< "\n\t=====@ @ @ @ @ @ @@...
4
by: ssniit | last post by:
Please can anyone help me with d programs in C for treat the matter most urgent please please please please .................................! CPU scheduling: WAP to show FCFS scheduling...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.