Question about Apple Mac OS X 10.4

1 Answer

How to make a program

Make a program that will calculate the sum of ten(10) numbers prompt by the end users?

Posted by on

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Expert
  • 55 Answers

Hi Friend,

This is a python command solution.you can download the python IDE from this link and get down to buisiness.

www.python.org/download

And here is my example.....

> >>> L=[]
> >>> L.append('10')
> >>> L.append('15')
> >>> L.append('20')
> >>> len(L)
> 3
> >>> print L
> ['10', '15', '20']
>
> is there a way to sum up all the numbers in a list? the number of
> objects in the list is vary, around 50 to 60. all objects are 1 to 3
> digit positive numbers.
>
> all i can think of is check the length of the list (in the above
> example, 3), then L[0]+L[1]+L[2] .....

Good Luck!!!

Posted on Jun 23, 2009

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)
click here to download the app (for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

What is a sum.


The sum is the result of an addition.
When you add two numbers, the result you find is the sum of the two numbers.
15+10=25. The sum of 15 and 10 is 25.

Sep 22, 2014 | Office Equipment & Supplies

2 Answers

What are the formulas in grading the grades uisng microsoft excel


Formulas are used to specify calculations based on values in designated cells. Excel supports basic calculations as well as statistical, trigonometric and other specialized functions.

Formulas used in Excel must follow a certain syntax.

  1. All formulas begin with an equals sign (=).
  2. Some formulas use operands such as +,-, *,/ for addition, subtraction, multiplication or division.
    For example, the formula =A1+A2+A3 would add the contents of cells A1, A2 and A3.
  3. Other formulas refer to different functions such as SUM, AVERAGE and others.
    For example, the formula =SUM(A1:A3) would add the contents for the range A1 through A3.
  4. Formulas can be combined with operands.
    For example, the formula =10*SUM(A1:A3) would add the contents cells A1 through A3 and multiply them by 10.
  5. Functions can be nested within each other.
    For example, the formula =SQRT(10*SUM(A1:A3)) would take the square root of ten times the sum of cells A1 through A3. When functions are nested, it is important that the number of left parentheses match the number of right parentheses.

Aug 19, 2011 | Microsoft EXCEL 2004 for Mac

1 Answer

What is the answer of this problem? I am a four digit number. My ones is twice my tens. My hundreds is five less than my ones. My thousands place is the sum of my tens and hundreds. What number am i?


There are two possible answers to the above question, 4136 and 7348.
4136
My ones is twice my tens: The 6 (the ones) is twice as big as the 3 (the tens).
My hundreds is five less than my ones: 6 (the one) - 5 = 1
My thousands place is the sum of my tens and hundreds: 3 (the tens) + 1 (the hundreds) = 4

Jun 26, 2011 | Office Equipment & Supplies

2 Answers

I want first 20 Armstrong numers



1
2
3
4
5
6
7
8
9
153
370
371
407
1634
8208
9474
54748
92727
93084
548834

Jan 06, 2011 | Computers & Internet

1 Answer

A c program to implement transportation problem


#include<stdio.h>
#include<conio.h>

main()
{
int flag=0,flag1=0;
int s[10],d[10],sn,eop=1,dm,a[10][10];
int i,j,sum=0,min,x[10][10],k,fa,fb;

clrscr();
/* Getting The Input For the Problem*/

printf("Enter the number of Supply
");
scanf("%d",&sn);
printf("Enter the number of Demand
");
scanf("%d",&dm);
printf("Enter the Supply Values
");
for(i=0;i<sn;i++)
scanf("%d",&s[i]);
printf("Enter the Demand Values
");
for(j=0;j<sn;j++)
scanf("%d",&d[j]);
printf("Enter the elements of the array
");
for(i=0;i<sn;i++)
{
for(j=0;j<dm;j++)
{
scanf("%d",&a[i][j]);
}
}
/* Calculation For the Transportation */
i=0;j=0;
for(i=0,j=0;i<sn,j<dm;)
{
if(s[i]<d[j]) // Check supply less than demand
{
x[i][j]=a[i][j]*s[i]; // Calculate amount * supply
d[j]=d[j]-s[i]; // Calculate demand - supply
i++; // Increment i for the deletion of the row
or
column
}
else if(s[i]>=d[j]) //Check the supply greater than equal to
demand
{
x[i][j]=a[i][j]*d[j]; // Calculate amount * demand
s[i]=s[i]-d[j]; // Calculate supply - demand
j++; // Increment j for the deletion of the row
or
column
}

}
/* The Cost Matrix is Estimated here */
printf("Given Cost Matrix is :
");
for(fa=0;fa<sn;fa++)
{
for(fb=0;fb<dm;fb++)
{
printf("%d ",a[fa][fb]);
}
printf("
");
}
/* The Allocated Cost Matrix is */

printf("Allocated Cost Matrix is
");
for(fa=0;fa<sn;fa++)
{
for(fb=0;fb<dm;fb++)
{
printf("%d ",x[fa][fb]);
sum=sum+x[fa][fb];
}
printf("
");
}
/* Transportation Cost Estimated and Sum is Printed*/
printf("The Transportation cost:%d
",sum);
getch();
}

Apr 08, 2009 | Computers & Internet

1 Answer

Pls. help me


Q.2#  Dim n, sum as Double
Dim i as Integer
n=100
sum=0

for i=1 to n
sum=sum+1/n
next i

Q.3#  Dim sum as Double
sum=0
for i=1 to 99
if i%2 <> 0 then sum=sum+i end if
next i

Sep 16, 2008 | Microsoft AccRepair DS2 2004 for Fr...

2 Answers

Armstrong problem


could you give me more info plz

Jun 21, 2008 | Computers & Internet

Not finding what you are looking for?
Apple Mac OS X 10.4 Logo

147 people viewed this question

Ask a Question

Usually answered in minutes!

Top Apple Computers & Internet Experts

Paul Carew

Level 3 Expert

2598 Answers

Martin Buck
Martin Buck

Level 2 Expert

85 Answers

Paul Bade

Level 3 Expert

1583 Answers

Are you an Apple Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...