User Profile
Collapse
-
fibonnacci series
fibonnacci series are a summation of the preceding two elements to give a proceeding element.Write a program to execute the series up to 10 numbers -
Remainder of two different variable types
5.4%4
can you devide two variables of different data types and get a remainder? -
manipulating functions
write down a function called MAX that takes two integers as parameters and returns an integer which is the maximum of the two integers. -
creating a table
I have used this syntax to create a table
create emp(emp_id int,staff_Name varchar(10),det _Name varchar(20));
This creates a table but I cannot insert any data in the table.How can i insert data in the table. -
Thanks Scarlet,I was confusing job_id with employee_id and wondering how employee_id could take on characters. -
What is the intention of this select statament
SELECT employee_id, last_name, job_id, salary FROM employees WHERE salary >= 2500 and job-id like '%MAN%'; -
how can i go about executing these querries using joins?
Write a query to list:
all departments that don’t have employees,
all employees who don’t belong to any department. -
joins syntax
What’s wrong with the statement:
SELECT employees.Last_ name, employees.First _name, departments.Dep artment_id
FROM employees emp inner join departments
on (employees.Depa rtment_id = Departments.Dep artment_id)
order by 3; -
c language
I have this piece of code,
int i,j,l=0,k=l+4;
l - = k;
j=k+10;
i+=2;
What is the value of i,j,k after the code has been executed.
would i be right to say that k=4;l=3,j=14 and i=1. -
c program
draw the final queue after following operations have been performed on an empty queue.
push(4),pop(),p ush(7),push(8), pop(),push(7),p ush(9),pop(),pu sh(8),push(5) -
c program
what is the final stack after the following operations on an empty stack
push(4),pop(),p ush(7),push(8), pop(),push(7),p ush(9),pop(),pu sh(8),push(5) -
c program
how can i write down a simple c expression that evaluates to the largest multiple of a number n,not greater than a given number m. -
c program to implement oprations on tower of hanoi
This operation involves push/pop operations on a stack,arranging the smaller discs to sit on larger ones.How can I write a program to implement this? -
C code for rational numbers
Thanks for the reply,however,i need to develop a c code that can do both addition and multiplication of rational numbers -
rational numbers using structures
I need some help on representing rational numbers using structures -
sekitoleko replied to c program to implement newton raphson method for finding roots of a polynomialin Cc program for newton raphson method
#include<stdio. h>
/Calculate j(10) from j(0)
int main()
{
int n;
double j=0.6;
printf("forward iterations\n");
printf("initial estimate:j(0)=% g\n",j);
for(n=1,n<=10,n ++)
j=1-(j*n);
printf("j(%d)=% g\n",n,j);
}
return 0;
}
this code is not helping me find roots of(...Leave a comment:
-
sekitoleko replied to c program to implement newton raphson method for finding roots of a polynomialin Cc program for newton raphson using a for loop
how can i implement a c progran for newton raphson algorithm using a for loop?Leave a comment:
-
sekitoleko started a topic c program to implement newton raphson method for finding roots of a polynomialin Cc program to implement newton raphson method for finding roots of a polynomial
c program for newton raphson algorithm for finding roots of a polynomial -
-
No activity results to display
Show More
Leave a comment: