Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Tags
Member Avatar for pjh-10

no idea to put this topic but, if someone could just do this graph? just so i can get a rough idea of how to work Matlab? X1 [n] = 4.5δ[n+7] -10 ≤n≤ 0

0
77
Member Avatar for pjh-10

how do you link functions written in other computer languages with a C/C++ program? this is in a past paper , & i can't find it anywhere? helps

Member Avatar for CGSMCMLXXV
0
91
Member Avatar for pjh-10

having trouble finding this anywhere, on a 32bit computer, how many bytes does it take to store ; long int, unsigned char,float, double any help is much appreciated

Member Avatar for vmanes
0
227
Member Avatar for pjh-10

#include<iostream> #include<cmath> #define pi 3.1415926535897 using namespace std; int main () { double lat1; double long1; double lat2; double long2; // initilaise values double latz; double longz; double a = 0; double c = 0; double distance = 0; double x = 0; double y = 0; cout << "enter …

Member Avatar for pjh-10
0
162
Member Avatar for pjh-10

cant get this to run on my compiler, any idea of where im going wrong in my code here, any help would be so helpful #define pi 3.1415926535897 #include<iostream> #include<math.h> using namespace std; int main () { double lat1=pi/180; double long1=pi/180; double lat2=pi/180; double long2=pi/180; // initilaise values double latz …

Member Avatar for gazzatav
0
155
Member Avatar for pjh-10

#include<iostream> #include <iomanip> //#include<fstream> using namespace std; int main() { int input = 1; int matrix[3][4]; int trans [4][3]; for(int i=0; i<3; i++) //This loops on the rows. { for(int j=0; j<4; j++) //This loops on the columns { matrix[i][j] = input; input++; } } for(int i=0; i<3; i++) //This …

Member Avatar for rubberman
0
100
Member Avatar for pjh-10

trying to do a 2D array of a square sorta shape, and want to display it in the format 1-12 in the order 1 2 3 4 5 6 7 8 9 10 11 12 im an absolute novice if you cant tell, just wondering how i go about this.trying …

Member Avatar for pjh-10
0
131
Member Avatar for pjh-10

not sure its the right place to write this here or not,but i'll try my luck. been given an example of plotting a graph,writing this into the command prompt : L = 31; nn = 0:(L-1); imp = zeros(L,1); imp(1) = 1; stem(nn,imp) this gives a graphic display. then i …

Member Avatar for Taywin
0
136
Member Avatar for pjh-10

#include <iostream> #include <new> using namespace std; int main () { int i,n; int * p; cout << "How many numbers would you like to type? "; cin >> i; p= new (nothrow) int[i]; if (p == 0) cout << "Error: memory could not be allocated"; else { for (n=0; …

Member Avatar for Lucaci Andrew
0
159
Member Avatar for pjh-10

#include <iostream> #include <cmath> // appropriate c++ libraries for functions & constants needed #include <fstream> #include <stdlib.h> using namespace std; const int N = 1000; const double pi = 3.14159265; //constants applied int main() { double num, factor, avg = 1.0; //variables declared and initialised int i; num = N …

Member Avatar for VernonDozier
0
134
Member Avatar for pjh-10

how do i get output which would normally appear on the screen, as in the Microsoft visual studio command prompt, written to a file such as a simple text file. say << X << is the output, what do i do from here? thanks

Member Avatar for BobS0327
0
387
Member Avatar for pjh-10

if ive a 1000 songs,using shuffle whats the probability, on average, how many tracks will be played before a previous song plays again. tricky probability Q, getting a few different answers, with some variation of accuracy!! thanks

Member Avatar for pjh-10
0
428
Member Avatar for pjh-10

im terrible at c++, absolute beginner, i can start and end programme writing, just the functions im awful at, for this one below, what is the ,to say, middle part of the programme Using <cmath> function pow(x,x), find x^x in small steps of 0.5 starting at x = -1 to …

Member Avatar for DavidB
0
140
Member Avatar for pjh-10

need help for this small Q here, just hoping someone could write out a full c++ programme for the problem, with comments wherever nessecary, thanks! Write a function to evaluate eX , using a series approximation (see below). Compare the output of your function with the library function exp(x). How …

Member Avatar for pjh-10
0
92