Office Equipment & Supplies Logo

Related Topics:

charlton Posted on May 17, 2017
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Write a program c that declares an array of 100 elements to hold these values. Read the values in from the file and store them in successive elements of the array. Keep track of how many numbers are read in as it is an undefined amount of numbers less than 100. Once you have the numbers in an array calculate the average value of these numbers and display the answer. Then use the brute force approach to find the maximum value of the numbers and report the value and what position in the array that value occurs at.

1 Answer

Gil Shultz

Level 3:

An expert who has achieved level 3 by getting 1000 points

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

  • Office Equip... Master 3,464 Answers
  • Posted on May 17, 2017
Gil Shultz
Office Equip... Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Joined: Nov 26, 2009
Answers
3464
Questions
1
Helped
731169
Points
11104

That appears to be an intermediate question in a programming class. Best read the book, the answer is not what is important the process of getting the answer is what you are trying to learn.

5 Related Answers

Anonymous

  • 43 Answers
  • Posted on Dec 31, 2008

SOURCE: Basic Q's

The LOG and LN keys do what you have done.

To get 9 to the 16th power, enter 9, "y to the power x" (under the OFF key) then 16, then =

3 to the 12th power is the same, enter 3, y to the power x, 12, =, result 531,441

The inverse key sequence: value 1, 2nd, y to the power x, value 2, returns the xth root of y, e.g. 531,441, 2nd, y to the power x, 12, =, gives you 3 back

Ad

Anonymous

  • 1 Answer
  • Posted on Apr 24, 2009

SOURCE: how to calculate log value in calculator with different base value

In any scientific calculator log2(n) can be  calculated with either ln or log function as follows
 
Log2(n)= ln(n) / ln(2)
 
Or
Log2(n)=log(n) / log(2)

both will give nearly the same answers

Anonymous

  • 360 Answers
  • Posted on Aug 26, 2009

SOURCE: TI 89: unnecessary Overflow

Mine said 1271.216 What hardware you have?
[email protected]

k24674

  • 8093 Answers
  • Posted on Apr 06, 2010

SOURCE: I'm trying to calculate r values on my TI-83 for

Press [2nd][0] to access the (CaTALOG) of commands.
Press the [X^-1] key (D) to jump to first command that starts with the letter D. From there, use down arrow to point to DiagnosticOn and press [ENTER] twice.
From now on (unless you reset the calculator), the correlation coefficients R and R^2 will ne displayed along with the regression results for all models where R and R^2 are meaningful.

You used "r-values" as if what you mean should be clear to everyone, but it is not. And there is a possibility I might have misread your mind. If that be the case, ignore the answer I gave and refrain from rating it. Post a comment instead, spelling out what you need the calculator to compute.

Testimonial: "Thanks so much! Just what I needed!"

kakima

  • 102366 Answers
  • Posted on Feb 15, 2011

SOURCE: Hi: I bought a HP 10bii Financial Calculator. I

What you've done is calculate the future value after 3 months, not 3 years.

Press 1 SHIFT [P/YR] to set the payments per year to one. Now the FV key should give you 115.76

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

0helpful
1answer

Write a pseudocode declaration for a string array initialized with the following strings einstein newton

the nice thing about pseudocode is that there's many ways to do it
E.g 1;
String str = new Array["einstein',"newton"];
E.g 2;
myStringArray = new Array{'einstein','newton'}

BOTH of the above are correct, because they are pseudocode
0helpful
1answer

I declared a variable, but when I try to compile it it says my variable might not have been initialized. What could I be doing wrong?

You need to assign a default value to your variable, otherwise it's just declared and not initialized.
Example (in C#):
int numericValue; Here the variable numericValue has been declared as an integer
int numericValue = 11; and here the variable has been declared and initialized as an integer with the value 11.
1helpful
1answer

Declare 2 arrays with 5 as index value of each. the user will input values to the first array(user-defined). Transfer value of the first array to the second array.Get the sum of the second...

You could do this by creating two arrays as such:
int firstArray[5]; int secondArray[5]
and then the sum variable:
int sum = 0;
then you could do a for loop to find the sum of the second array:
0helpful
1answer

Says that a uncaught exception:java lang.nullpoinereException

suppose you have declared a array of 5 ( ie 0-4 ) and you are entering the value for 6 or we can say more than 5 then you will receive this error and also you have not declared the catch block or exception block for this exception to handle the error .
1helpful
2answers

C++ poker program

Hi.

I suggest creating an Array of Cards (cardOne,cardTwo,etc. to five)

If you can enter them in one at a time, after declaring the array, assign the values to the array.

cin < cardOne; (Psuedo code by the way, hope you don't mind)

Afterwards, you'll have an array with 5 cards.

Declare what full houses, flushes, etc would require.
Use an if statement (If you don't mind lots of code) to compare the entered Array against possible hands.

I didn't necessarily give you any specific C++ code. However, if you Google C++ user input, you should find plenty of commands that may help you.

Good Luck

(And not sure about Linear search to be honest, you can use a Linear search, but if you did it the way I explained, you just have to compare hand to a series of conditionals.)


0helpful
2answers

Merging two arrays and sort them

NEED A NEW KEY THE ONE ON THE BOX WONT WORK
0helpful
1answer

C++

http://www.cplusplus.com/doc/tutorial/
0helpful
2answers
0helpful
2answers

C++ programs

An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier
Initializing arrays. When declaring a regular array of local scope (within a function, for example), if we do not specify otherwise, its elements will not be initialized to any value by default, so their content will be undetermined until we store some value in them. The elements of global and static arrays, on the other hand, are automatically initialized with their default values, which for all fundamental types this means they are filled with zeros
include <iostream>
using namespace std;

int billy [] = {16, 2, 77, 40, 12071};
int n, result=0;

int main ()
{
for ( n=0 ; n<5 ; n++ )
{
result += billy[n];
}
cout << result;
return 0;
}
multidimensional array pseudo-multidimensional array #define WIDTH 5 #define HEIGHT 3 int jimmy [HEIGHT][WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;m<WIDTH;m++) { jimmy[n][m]=(n+1)*(m+1); } return 0; } #define WIDTH 5 #define HEIGHT 3 int jimmy [HEIGHT * WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;m<WIDTH;m++) { jimmy[n*WIDTH+m]=(n+1)*(m+1); } return 0; }
and now for trignometry
#include<iostream>
#include<cmath>
using namespace std;

int main()
{
int factorial(int);
int n = 3, i = 1;
double x, x2, b, PI, r;
char choice;
//r = x * (PI / 180)

cout<<"Please enter an angle value => ";
cin>>x;
cout<<"Is the angle value in Degree or Radian?"<<endl;
cout<<"Type D if its in degree "<<endl;
cout<<"Type R if its in radian "<<endl;
cin>>choice;


if((choice = 'R')||(choice = 'r'))
do{
i++; n = 3; x2 = 0; b = x2;
{
if(i == 1)
x2 = x - (pow(x,n) /factorial(n));
n = n + 2;
};
else
{
x2 = (x2 + ((pow(x,n)) /(factorial(n))) - (pow(x,n+2)) / (factorial(n+2)));
n = n + 4;
}


}while(abs(b - x2) > 0.000001);
else
//convert it to r

r = x * PI /180;

//cout<<"error occured/n";
cout<<"sin(x) = "<<x2<<endl;

return 0;
}
Not finding what you are looking for?

118 views

Ask a Question

Usually answered in minutes!

Top Office Equipment & Supplies Experts

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

66832 Answers

Are you an Office Equipment and Supply Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...