English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - January 2007

[Selected]: All categories Computers & Internet Programming & Design

I'm making a simple program that displays the divisors of a number, and also adds the sum of all the divisors (not including the dividend)

Here's my for loop to find the divisors:
for(temp = 1; temp < n; temp++)
{

if(n % temp == 0)
{

cout << temp << endl;

}

}

My question is, how can I find the total of all the quotients? I know I need to have one more variable, but it's been awhile since I've programmed. Any tips? Thanks.

2007-01-26 02:37:03 · 1 answers · asked by Defcon6 2

Is there html code for this? Thanks for your help :)

2007-01-26 02:32:54 · 5 answers · asked by Lucy Lake 2

How do i write a sql statement
s/n item Name qty
1 banana 5
2 mango 3
3 banana 2
4 apple 2
5 banana 6
how do i write a sql statement where it will sum the fruits and only show it one time as below

s/n item Name qty
1 banana 13
2 mango 3
3 apple 2

Thank you

2007-01-26 02:20:39 · 4 answers · asked by aa_mohammad 4

Can someone tell me wats the best software i need to learn to make a cool website that has graphics and graphic drop down menu bars?

2007-01-26 01:59:34 · 3 answers · asked by Amin the smart one 1

is the job profile?? plzzz let me know...

2007-01-26 00:58:54 · 2 answers · asked by abc 2

what is the best way to do this, please explain the steps. thanks

problem:

input: 3b1w3b

output: bbbwbbb

2007-01-26 00:48:55 · 2 answers · asked by wata_tempora 1

This is all about computer programming. All I need is a good example of a program.

2007-01-26 00:41:52 · 2 answers · asked by PJ Tan 1

The sizeof operator is part of the standard library,but is it possible to
write a c program or function that does the job of sizeof?

2007-01-25 22:36:46 · 2 answers · asked by Suhas R.S 1

I have a complex problem. I want to obtain the following DMI information from the bios by using any programming languages.

Manufacturer Name
Model Code
Serial Number

But for some reasons, I must not use WMI or Registry to obtain them. What should I do ?

2007-01-25 22:35:08 · 1 answers · asked by VitCon 1

This is for ukg kid home work

2007-01-25 22:23:41 · 7 answers · asked by netgir_netgir 1

How could the knowledge of SQL decrease an auditor’s learning curve?

2007-01-25 22:10:32 · 2 answers · asked by Agent-Tabasco 1

#include
using namespace std;

int main()
{
int Choice1=0;
char indicator='y';
int Ans=0;
if(indicator=='y')
{
cout<<"Please Enter a number from 1 to 10: "; cin>>Choice1;
cout< }
if(Choice1==1)
{
for(Choice1=1; Ans++;)
Ans+=Choice1;
cout< cout<<"You've Enter One, "< cout< cout< cout<<"Do you want to enter another value?";
cout<<"Enter y for yes, (n to end): "; cin>>indicator;
cout< cout< int Choice1=0;
}
if(Choice1==2)
{
for(Choice1=2; Ans++;)
Ans+=Choice1;
cout< cout<<"You've Enter One, "< cout< cout< cout<<"Do you want to enter another value?";
cout<<"Enter y for yes, (n to end): "; cin>>indicator;
cout< cout< }
cout< cout<<"Okay Bye\n\n";
return 0;
}

2007-01-25 21:14:53 · 4 answers · asked by capphire 2

Hi
Please let me know how are OCX files produced in VB. I am just aware that it denotes activexcontrols. But how and when are they generated and where are they stored. Is it that i include any activexcontrol in my VBP and generate an exe out of the application , the OCX files are produced? Please clarify.

2007-01-25 20:50:55 · 4 answers · asked by Vijay 1

I am looking to learn Flash mx, so if anyone knows of any online resources I could look up, that would be great!

Thanks

2007-01-25 20:43:27 · 3 answers · asked by Anonymous

when the user inputs the number 4, the computer outputs:
1 2 3 4
1 1 2 3 4
2 2 4 6 8
3 3 6 9 12
4 4 8 12 16

2007-01-25 20:06:56 · 3 answers · asked by Sammy Baby 1

Here's my code:

#include
using namespace std;

int main()
{
int i = 0, max = 0, sum = 0;
char indicator = 'y';
cout<<"Please enter number 5: "; cin>>max;
cout< for(i=1; i<=max; i++)
sum+=i;
cout< <<"The Sum is = "< cout<<"Do you wish to display the odd sum?"< cout<<"Enter y for yes, (n to end)"; cin>>indicator;
if(indicator=='y')
{
for(i=1; max<=max; i=1+2)
sum=sum+i;
cout< <<"The odd sum is = "< }
cout<<"Okay Bye"< return 0;
}

The answer for the 1st sum is correct 15
But the Odd sum answer should be 9 and it's aint displaying and wrong answer.

2007-01-25 19:17:40 · 5 answers · asked by capphire 2

can u pls help me about this one? I was absent on my programming class last day,bcoz my feeling is not well I miss our lecture and my prof gave us an assignment about this, I don’t know how will I create this program.

task:
create a program that will out put the ascii code together w/ its ascii equivalent.

thank for helping and later i will understand your answers
thank u very strong.

2007-01-25 19:03:13 · 4 answers · asked by dxterz 1

A friend has a brilliant idea that would require computer programming and/or engineering to produce (something neither of us has a clue about). It is not a game but a serious business tool that he has found a need for and roughly designed. Can this idea be sold directly to a company or does somebody have to do a working prototype before marketing it?

2007-01-25 19:01:58 · 4 answers · asked by marcoporres 4

2007-01-25 18:38:48 · 3 answers · asked by Ryan 2

1. How can this technology prove beneficial in developing a knowledge management system?

2. What are some of the advantages and disadvantages of knowledge management systems?

3. Could this technology truly create a competitive advantage for an organization?

2007-01-25 18:31:46 · 1 answers · asked by Agent-Tabasco 1

i tremendously need some help on finding the finding the union and intersection between two arrays.
ex.
a[] = { 1,2,3,4,4,5,4,7};
aa[]= {1,7,3,2,2,7,7,2,};

please i'm begging for help!!!!!!!!!!!!!!

2007-01-25 18:26:59 · 4 answers · asked by ~Chocolate Delight~ 2

Got the input number part, but am stuck on how to separate the five digit number.

2007-01-25 17:54:14 · 1 answers · asked by bloodyhell1981 1

plz help, am like crying, it was my best papers, and this **** just turn off and i lost it. is their any way i can get it back plz help asap.

2007-01-25 17:52:11 · 1 answers · asked by Anonymous

i'm a beginner in programming and need help with combining arrays. here's what i have: int a[]= {2,34,55,23,5, 21,4};
int aa[]= {22,7,11,3,98,4,32};

could anyone please help???????????

2007-01-25 17:21:14 · 2 answers · asked by ~Chocolate Delight~ 2

what is event,action and message?what are the sources for messages for a window? when will a window receive a message?
releated to windows programming(Win32)?

2007-01-25 16:16:54 · 1 answers · asked by anu k 1

i want some java or j2ee projects...if anybody know the free sites providing this reply me
thanks in advance
meerapillaii@yahoo.co.in

2007-01-25 14:38:09 · 2 answers · asked by Anonymous

I need to figure out how to transfer my files for print to a web page or possibly a email newsletter. Either .PDF or HTML.

2007-01-25 14:37:35 · 2 answers · asked by Gia V 2

Programming Languages such as IBM PC ASSEMBLY LANGUAGE AND PROGRAMMING

2007-01-25 14:06:02 · 6 answers · asked by the_fugitiveuk 1

Hey, i have WAY to many icons on my system trey... i want all of the programs open, but i dont want them to clutter up my desktop. is there a way to hide them from ther trey, so that i can not see them, but yet have them still running??? i would like this to automaticly happen every time i start windows... tx!!!

2007-01-25 13:36:05 · 4 answers · asked by Benjamin H 1

2007-01-25 13:35:36 · 2 answers · asked by tiffs_dolphin 1

fedest.com, questions and answers