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

# C++ programs please make me a program that will solve a trigonometry problem & also an array

Posted by on

• Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Corporal:

An expert that hasĀ over 10 points.

• Contributor

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

• Level 1:

An expert who has achieved level 1.

• Contributor

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 Technician 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 repair professionals here in the US.
Goodluck!

Posted on Jan 02, 2017

×

my-video-file.mp4

×

## Related Questions:

### How to solve trig functions using ti-83 plus

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

### Given A=80 degree B=42 degree b=15 required i) a ii)C iii)c show me the solution problem solving in trigonometry triangle

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

### Twenty-five numbers are entered from the keyboard into an array.The number to be searched is entered through the keyboard by user.Write a program to find if the number to be searched is present in the...

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.

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

### Hwo can i solved a bineary search problam in c++

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..

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

### How to form an array in visual basics(Express)

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

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

### 1. Write a C program that converts a string

Here is a website that should be helpful...

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

Mar 17, 2010 | Office Equipment & Supplies

### Please Solve this C++ Program

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

### C++ program for insertion, deletion in linked list and 2d array pls send the details for linked list so that i can understand it the best..considering me as a beginner.

program for deletion

#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

## Open Questions:

#### Related Topics:

166 people viewed this question

Level 3 Expert

Level 3 Expert