I want a method that has parameter int[] num...
The int[] num will be consisting of numbers...
for example: int[] num = {1, 2, 3, 5, 1, 1, 1, 1};
the element 0 is a number inside box 1...
the element 1 is a number inside box 2...
the element 2 is a number inside box 1...
the element 3 is a number inside box 1...
the element 4 is a number inside box 1...
the element 5 is a number inside box 1...
The program should return 1 because all the elements are inside the box 1;
Would you like to create that for me?
2 1099
I want a method that has parameter int[] num...
The int[] num will be consisting of numbers...
for example: int[] num = {1, 2, 3, 5, 1, 1, 1, 1};
the element 0 is a number inside box 1...
the element 1 is a number inside box 2...
the element 2 is a number inside box 1...
the element 3 is a number inside box 1...
the element 4 is a number inside box 1...
the element 5 is a number inside box 1...
The program should return 1 because all the elements are inside the box 1;
Would you like to create that for me?
No. But we'd like to help you create that for yourself.
I want a method that has parameter int[] num...
The int[] num will be consisting of numbers...
for example: int[] num = {1, 2, 3, 5, 1, 1, 1, 1};
the element 0 is a number inside box 1...
the element 1 is a number inside box 2...
the element 2 is a number inside box 1...
the element 3 is a number inside box 1...
the element 4 is a number inside box 1...
the element 5 is a number inside box 1...
The program should return 1 because all the elements are inside the box 1;
Would you like to create that for me?
Is the rule: if all numbers are odd the method should return 'true' otherwise 'false'?
kind regards,
Jos
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Frank Millman |
last post by:
Hi all
I need to generate potentially large reports from a database, and I
want to offer the option of print preview before actually printing
(using wxPython). I figure that the best way to...
|
by: dog |
last post by:
I've seen plenty of articles on this topic but none of them have been
able to solve my problem.
I am working with an Access 97 database on an NT4.0 machine, which has
many Access reports.
I...
|
by: Tapas |
last post by:
Hi,
Generating a .cs file using CodeDom. It generates the class fine.
But i have few queries about class generation.
1. How to create a protected member?
By default it generates a private...
|
by: Just D. |
last post by:
All,
Do we have a simple way to Create an object on the fly knowing just an
object type? The usual design-time way is to write a code something like
this:
CObjectType obj = new CObjectType();...
|
by: Sathyaish |
last post by:
The WebRequest class implements IWebRequestCreate and hence, a method
Create.
This method has two other overloads, one of which is a private method.
Here's how it looks:
public static...
|
by: Angel Of Death |
last post by:
I have a method. It takes some XML as a parameter. Depending on the
content of the XML it should create a specific object and call a KNOWN
method.
So: public void PersistXml(string XmlData){}
...
|
by: Grant Schenck |
last post by:
Hello,
I have a base class with several derived classes:
ScriptBase
+ ScriptCallInbound
+ ScriptCallOutbound
I then have another class:
Line
|
by: 100grand |
last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one
product at a time, including the item number, the name of the product, the number of
units in stock, the price...
|
by: shapper |
last post by:
Hello,
I have the following code:
MySection sect =
System.Configuration.ConfigurationManager.GetSection(Name) as
MySection;
foreach (Person p in sect.People) {
...
|
by: =?Utf-8?B?RGFiYmxlck5M?= |
last post by:
I have the following Methods:
public SecondResult DoSomething()
{
FirstResult firstResult=GetFirstResult();
SecondResult secondResult=GetSecondResult(firstResult);
return secondResult;
}
...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
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...
| |