Question about ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC

Wruite a program that computes and assesses the tuition fee of the students in the third semester, based on the given mode of payment below...

Plan(key) Discount(-) or Interest(+)

cash(1) 10%discount

two-installment(2) 5%discount

three-installment(3) 10%interest

Posted on Jan 26, 2013

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;

}

Posted on Jun 05, 2008

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

Your best bet would be trying a math package on ti-calc.org - you can usually find something that does what you want there. You'll need a cable and the software to download these programs to your calculator. Here's a link to the trig section:

TI 83 84 Plus BASIC Math Programs Trigonometry ticalc org

Jun 01, 2014 | Texas Instruments TI-83 Plus Calculator

Come on. You really want to pay 3 bucks for homework question. Rate me as poor as you want, but get your education the right way and please do the work.

Mar 23, 2011 | Super Tutor Trigonometry (ESDTRIG) for PC

pseudo is

-> integer type count =0;

->Take input from user 'Number'

->loop from 0th to 24th element

->Compare each element with user entered number and if it matches then do count++.

finally display the count.

-> integer type count =0;

->Take input from user 'Number'

->loop from 0th to 24th element

->Compare each element with user entered number and if it matches then do count++.

finally display the count.

Jul 29, 2010 | Advanced Graphics Programming Using OpenGL...

first arrange your array in ascending order.and keep the two variables one for starting index and one for last index

then check your number with center(center = (first index + last index))/2 element of array.

if it is lager then center element then set first index = center,

if smaller then last index = center

else you got the number..

then check your number with center(center = (first index + last index))/2 element of array.

if it is lager then center element then set first index = center,

if smaller then last index = center

else you got the number..

Jul 25, 2010 | Borland Turbo C++ Suite 1.0...

samples of arrays in vb.net

1)

dim array(3) as integer

array(0)=1

array(1)=2

array(2)=3

array(3)=4

2) dim array() as integer

array=new integer(){1,2,3,4}

3) for two dimensional arrays add comma separation to the size

1)

dim array(3) as integer

array(0)=1

array(1)=2

array(2)=3

array(3)=4

2) dim array() as integer

array=new integer(){1,2,3,4}

3) for two dimensional arrays add comma separation to the size

May 28, 2010 | Microsoft Visual Basic Enterprise Edition...

Here is a website that should be helpful...

http://www.novaroma.org/via_romana/numbers.html

http://www.novaroma.org/via_romana/numbers.html

Mar 17, 2010 | Office Equipment & Supplies

NEED A NEW KEY THE ONE ON THE BOX WONT WORK

Jul 29, 2009 | Microsoft Windows XP Professional With...

Hi , if you look at some of the postings you find the answer

http://bytes.com/groups/c/530395-array-size-too-large

Regards

http://bytes.com/groups/c/530395-array-size-too-large

Regards

Jul 26, 2009 | Computers & Internet

Write a program to prompt the user to input several lines of input. A line of inputs is terminated by '*'. For each readline of input the program should output:(use pointer notation for the array)
. The total # of words
. The lenght of the longest word in the line
At the end the program should output:
. The total number of words read in all lines of input
. The lenght of the longest word read in all lines of input

Jan 19, 2009 | Computers & Internet

#include<iostream.h>

void main()

{

int a[10],i,n,x;

cout<<"\n\t\tPROGRAM TO DELETE AN NUMBER FROM AN ARRAY";

cout<<"\nEnter the size of the array:";

cin>>n;

for(i=0;i<n;i++)

{

cout<<"\nEnter the number:";

cin>>a[i];

}

cout<<"\nEnter the position to be deleted:";

cin>>x;

for(i=x;i<n;i++)

a[i]=a[i+1];

for(i=0;i<n-1;i++)

cout<<a[i]<<" ";

}

Oct 13, 2008 | Computers & Internet

164 people viewed this question

Usually answered in minutes!

×