a)ODBC is from Microsoft while JDBC is from java applications.
b)ODBC makes uses of pointers which have been totally removed from JAVA.
c)ODBC requires manual installation of the ODBC driver manager and driver on all client machines. While for JDBC drivers are written in Java and JDBC code is automatically installable, secure and portable on all platforms.
d)ODBC can be directly used with Java because it uses a C interface.
Which of the statements below does not correctly define the difference between JDBC and ODBC?
b
Reply:b
Monday, May 24, 2010
Set up the system of equations (3 equations total) with 3 variables (x,y,z) Define each variable....?
I dont want this to be solved, simply give me the 3 variables and the three equations, I can do the rest. Here is the problem:
A person takes three daily vitamin supplements, B,C and E, via three types of pills, regular, extra-strength, and fortified. Each regular pill contains 10 units of B, 20 units of C, and 20 units of E. Each extra-strength pill contains 20 units of B, 60 units of C, and 10 units of E. Each fortified pill contains 10 units of B, 20 units of C, and 40 units of E. HOW MANY PILLS of each type should be taken, in order to achied 50 units of B, 120 units of C, and 90 units of E.
Thank you very much!!!!!
Set up the system of equations (3 equations total) with 3 variables (x,y,z) Define each variable....?
Let x = number of regular pills
y = number of extra-strength pills
z = number of fortified pills
Then write an equation using the totals of 50, 120 and 90 for each vitamin:
10x + 20y + 10z = 50
20x + 60y + 20z = 120
20x + 10y + 40z = 90
artificial flowers
A person takes three daily vitamin supplements, B,C and E, via three types of pills, regular, extra-strength, and fortified. Each regular pill contains 10 units of B, 20 units of C, and 20 units of E. Each extra-strength pill contains 20 units of B, 60 units of C, and 10 units of E. Each fortified pill contains 10 units of B, 20 units of C, and 40 units of E. HOW MANY PILLS of each type should be taken, in order to achied 50 units of B, 120 units of C, and 90 units of E.
Thank you very much!!!!!
Set up the system of equations (3 equations total) with 3 variables (x,y,z) Define each variable....?
Let x = number of regular pills
y = number of extra-strength pills
z = number of fortified pills
Then write an equation using the totals of 50, 120 and 90 for each vitamin:
10x + 20y + 10z = 50
20x + 60y + 20z = 120
20x + 10y + 40z = 90
artificial flowers
C++ help, needed by 5PM PST please! No room, but in file (VERTEX 500 600 700) ect... reads 500 500 uninitilize
#include %26lt;iostream%26gt;
#include %26lt;fstream%26gt;
using namespace std;
#define TRUE 1
#define FALSE 0
class file_line
{
private:
string one_line;
ifstream to_read;
public:
file_line (char aFile[]) { to_read.open (aFile); }
bool get_line (void);
void close_file (void) { to_read.close(); }
void put_line (void) { cout %26lt;%26lt; one_line %26lt;%26lt; endl; }
};
bool file_line::get_line (void)
{
int to_temp [10], count_string = 0;
bool been_through = FALSE;
short count = 0;
char numb_to [8];
bool again = FALSE;
string::iterator StrVal;
if (!to_read.eof())
{
do
{
if (!been_through)
{
getline (to_read, one_line);
StrVal = one_line.begin();
}
while (!(*StrVal %26gt;= '0' %26amp;%26amp; *StrVal %26lt;= '9') %26amp;%26amp; StrVal %26lt; one_line.end())
StrVal+=1;
while ((*(StrVal) != ' ' %26amp;%26amp; StrVal %26lt; one_line.end()) %26amp;%26amp; count %26lt; 8)
{
numb_to[count] = *StrVal;
count++; StrVal++;
}
to_temp[count_string] = atoi (numb_to);
count_string++;
count = 0;
again = TRUE;
} while (StrVal %26lt; one
C++ help, needed by 5PM PST please! No room, but in file (VERTEX 500 600 700) ect... reads 500 500 uninitilize
From what I can tell, the problem, is here, the code doesn't look all that logical to me, but this is definately a problem:
to_temp[count_string] = atoi (numb_to); //numb_to is an array,
You're probably looking for something like this
to_temp[count_string] = atoi (numb_to[i]);
Then do this:
char *cp=numb_to[];
string s=cp;
atoi(s);
Reply:Post on cboard.cprogramming.com because you can post full, formatted code on there. Your code isn't complete here, but I already see problems.
#include %26lt;fstream%26gt;
using namespace std;
#define TRUE 1
#define FALSE 0
class file_line
{
private:
string one_line;
ifstream to_read;
public:
file_line (char aFile[]) { to_read.open (aFile); }
bool get_line (void);
void close_file (void) { to_read.close(); }
void put_line (void) { cout %26lt;%26lt; one_line %26lt;%26lt; endl; }
};
bool file_line::get_line (void)
{
int to_temp [10], count_string = 0;
bool been_through = FALSE;
short count = 0;
char numb_to [8];
bool again = FALSE;
string::iterator StrVal;
if (!to_read.eof())
{
do
{
if (!been_through)
{
getline (to_read, one_line);
StrVal = one_line.begin();
}
while (!(*StrVal %26gt;= '0' %26amp;%26amp; *StrVal %26lt;= '9') %26amp;%26amp; StrVal %26lt; one_line.end())
StrVal+=1;
while ((*(StrVal) != ' ' %26amp;%26amp; StrVal %26lt; one_line.end()) %26amp;%26amp; count %26lt; 8)
{
numb_to[count] = *StrVal;
count++; StrVal++;
}
to_temp[count_string] = atoi (numb_to);
count_string++;
count = 0;
again = TRUE;
} while (StrVal %26lt; one
C++ help, needed by 5PM PST please! No room, but in file (VERTEX 500 600 700) ect... reads 500 500 uninitilize
From what I can tell, the problem, is here, the code doesn't look all that logical to me, but this is definately a problem:
to_temp[count_string] = atoi (numb_to); //numb_to is an array,
You're probably looking for something like this
to_temp[count_string] = atoi (numb_to[i]);
Then do this:
char *cp=numb_to[];
string s=cp;
atoi(s);
Reply:Post on cboard.cprogramming.com because you can post full, formatted code on there. Your code isn't complete here, but I already see problems.
C programming question....?
Using the text below, write a program to determine if a year is a leap year by using a set of conditionals.
/*
author:
date:
purpose: Determine if a year is a leapyear.
NOTES: The #define statement is necessary to turn off Visual Studio's
warnings for using scanf().
*/
#define _CRT_SECURE_NO_DEPRECATE
#include %26lt;stdio.h%26gt;
int main( void )
{
int year;
/* prompt the user for a year to check */
printf("Enter a year: ");
scanf("%d", %26amp;year);
/* put your code below here */
C programming question....?
This is handled in standard C libraries, but:
A year is a leap year if it is divisible by 4 and not 100 unless it is divisible by 400 as well.
1998 is divisible by 4 without a remainder and is not divisible by 100 so it is a leap year.
1900 is divisible by 4 but also 100 but not 400 without a remainder. It is not a leap year.
2000 is divisible by 4 and 100 without a remainder, but it's also divisible by 400 so it is a leap year.
Here's a start for 4 and one case of 100. Add the other case for 100 and the case for 400 and you're done. Use the modulus operator in C:
if(year % 4){ /* has a remainder */
printf("Not\n");
}else if (year % 100){ /* 4 passed 100 failed */
printf("Is\n");
}
Reply:I believe every leap year is divisible by 4 without having a remainder. So basically you would have to divide the year
by four and store in "X". Then do the same but take the
absolute value (forced to NO REMAINDER) and store in "Y".
Then subtract Y from X. If it is ZERO then it is a leap year... otherwise it is not.
-JP
/*
author:
date:
purpose: Determine if a year is a leapyear.
NOTES: The #define statement is necessary to turn off Visual Studio's
warnings for using scanf().
*/
#define _CRT_SECURE_NO_DEPRECATE
#include %26lt;stdio.h%26gt;
int main( void )
{
int year;
/* prompt the user for a year to check */
printf("Enter a year: ");
scanf("%d", %26amp;year);
/* put your code below here */
C programming question....?
This is handled in standard C libraries, but:
A year is a leap year if it is divisible by 4 and not 100 unless it is divisible by 400 as well.
1998 is divisible by 4 without a remainder and is not divisible by 100 so it is a leap year.
1900 is divisible by 4 but also 100 but not 400 without a remainder. It is not a leap year.
2000 is divisible by 4 and 100 without a remainder, but it's also divisible by 400 so it is a leap year.
Here's a start for 4 and one case of 100. Add the other case for 100 and the case for 400 and you're done. Use the modulus operator in C:
if(year % 4){ /* has a remainder */
printf("Not\n");
}else if (year % 100){ /* 4 passed 100 failed */
printf("Is\n");
}
Reply:I believe every leap year is divisible by 4 without having a remainder. So basically you would have to divide the year
by four and store in "X". Then do the same but take the
absolute value (forced to NO REMAINDER) and store in "Y".
Then subtract Y from X. If it is ZERO then it is a leap year... otherwise it is not.
-JP
Poll:How would you define God?
A.Magical fairy that lives in the sky and grants wishes
B.Your favorite mythical creature
C.That guy that created Pine-Sol
D.Other...?
Poll:How would you define God?
not a, he doesn't grant everyone's wishes!
not b, that's this lady boadicea from a book.
perhaps c, but that'd mean he'd have to roll around in the sheets with that lady that does the commercials, i think even God couldn't find that vagina.
yes d, the face on the moon who laughs at me whenever i do something idiotic (every 5 seconds).
Reply:A father and best friend. Someone who will be there for you through thick and thin. Will not hold your past over your head. Someone who will forgive you for your sins mistakes if you only ask. Someone to help you to know and understand things better. Someone you can call on 24/7 rain or shine when you just need someone to talk to or a shoulder to cry on.
He is also someone who can make your dreams come true if its his will and if you believe with no doubt.
James 1:6 But when he asks, he must believe and not doubt, because he who doubts is like a wave of the sea, blown and tossed by the wind. (YOU MUST BELIEVE WITH NO DOUBT)
Matthew 21:22
If you believe you will receive whatever you ask for in prayer.
Did I miss anything?
I hope this helps
yes Jesus died for our sins so we can be forgiven and go to heaven, but you didn't ask about Jesus you asked about GOD that is why I didn't say this in the above.
Reply:The guy who created me, my dad. heh heh! Maybe it is my new guy, who knows? Want to see what he looks like? I will send you a picture of him later. No seriously it is Jason Stat ham.
Reply:a spirit who created everything
Reply:B! I once described God as a fictional character (it was an accident, put my foot in my mouth, but that's pretty much what I think)
Reply:D. Imortal
Reply:D. "Living he loved me, dying he saved me, buried he carried my sins far away."
Reply:Perhaps when you die one day you'll be able to ask him personally to define himself....Our answers would do you no justice.
Reply:I'll give it to 'ya, choice 'c' is pretty funny.
I think of God as a spiritual being that is responsible for life.
Reply:other
Reply:D. A supreme being who I love very much.
Reply:D. hes someone that i have a serious love/hate realtionship with
Reply:In a word, LOVE.
Reply:A.
Reply:d. other...............FAKE!!!!!
Reply:pure (:
Reply:god.....
something drunk people and those really bad pornos say when getting their "freak" on
Reply:D. my father. bring on the thumbs down!
B.Your favorite mythical creature
C.That guy that created Pine-Sol
D.Other...?
Poll:How would you define God?
not a, he doesn't grant everyone's wishes!
not b, that's this lady boadicea from a book.
perhaps c, but that'd mean he'd have to roll around in the sheets with that lady that does the commercials, i think even God couldn't find that vagina.
yes d, the face on the moon who laughs at me whenever i do something idiotic (every 5 seconds).
Reply:A father and best friend. Someone who will be there for you through thick and thin. Will not hold your past over your head. Someone who will forgive you for your sins mistakes if you only ask. Someone to help you to know and understand things better. Someone you can call on 24/7 rain or shine when you just need someone to talk to or a shoulder to cry on.
He is also someone who can make your dreams come true if its his will and if you believe with no doubt.
James 1:6 But when he asks, he must believe and not doubt, because he who doubts is like a wave of the sea, blown and tossed by the wind. (YOU MUST BELIEVE WITH NO DOUBT)
Matthew 21:22
If you believe you will receive whatever you ask for in prayer.
Did I miss anything?
I hope this helps
yes Jesus died for our sins so we can be forgiven and go to heaven, but you didn't ask about Jesus you asked about GOD that is why I didn't say this in the above.
Reply:The guy who created me, my dad. heh heh! Maybe it is my new guy, who knows? Want to see what he looks like? I will send you a picture of him later. No seriously it is Jason Stat ham.
Reply:a spirit who created everything
Reply:B! I once described God as a fictional character (it was an accident, put my foot in my mouth, but that's pretty much what I think)
Reply:D. Imortal
Reply:D. "Living he loved me, dying he saved me, buried he carried my sins far away."
Reply:Perhaps when you die one day you'll be able to ask him personally to define himself....Our answers would do you no justice.
Reply:I'll give it to 'ya, choice 'c' is pretty funny.
I think of God as a spiritual being that is responsible for life.
Reply:other
Reply:D. A supreme being who I love very much.
Reply:D. hes someone that i have a serious love/hate realtionship with
Reply:In a word, LOVE.
Reply:A.
Reply:d. other...............FAKE!!!!!
Reply:pure (:
Reply:god.....
something drunk people and those really bad pornos say when getting their "freak" on
Reply:D. my father. bring on the thumbs down!
Anybody knows how to define Data in XML format of spirometer?
Data in xml format of spirometer got a couple of values.
eg. %26lt;E T="C" N="Data" V="0:0:0:0:0:-3:-13:-13:-10:3:... .......%26gt;
Anybody knows how to define Data in XML format of spirometer?
You example has an open-ended XML node. It should be:
%26lt;E T="C".... /%26gt;
or
%26lt;E T="C" ... %26gt;%26lt;/E%26gt;
the idea being the line of data is encapsulated, or bracketed with the start %26lt;E%26gt; and the close %26lt;/E%26gt;
then, the software will break apart the line of data, which is always text-based. If need be, numbers will be converted from the text. In your example:
%26lt;E T="C" N="Data" ...
the first two fields are T and N. The software will read the data after the equals sign and between the quotes. Furthermore, the field V="0:0:0:0:-3:-13:-10:3 ... " would probably read the field named V and split the values based on the colons -- perhaps to provide plot points on a graph.
With XML, it's all in the software that will read the text. XML itself is just a text file that represents data. Keeping data as structured %26lt;E%26gt;text%26lt;/E%26gt; allows the data to migrate to multiple software and hardware platforms. A spirometer is not a standard machine. There could be many different brands and they would all utilize their own softwares.
800flowers.com
eg. %26lt;E T="C" N="Data" V="0:0:0:0:0:-3:-13:-13:-10:3:... .......%26gt;
Anybody knows how to define Data in XML format of spirometer?
You example has an open-ended XML node. It should be:
%26lt;E T="C".... /%26gt;
or
%26lt;E T="C" ... %26gt;%26lt;/E%26gt;
the idea being the line of data is encapsulated, or bracketed with the start %26lt;E%26gt; and the close %26lt;/E%26gt;
then, the software will break apart the line of data, which is always text-based. If need be, numbers will be converted from the text. In your example:
%26lt;E T="C" N="Data" ...
the first two fields are T and N. The software will read the data after the equals sign and between the quotes. Furthermore, the field V="0:0:0:0:-3:-13:-10:3 ... " would probably read the field named V and split the values based on the colons -- perhaps to provide plot points on a graph.
With XML, it's all in the software that will read the text. XML itself is just a text file that represents data. Keeping data as structured %26lt;E%26gt;text%26lt;/E%26gt; allows the data to migrate to multiple software and hardware platforms. A spirometer is not a standard machine. There could be many different brands and they would all utilize their own softwares.
800flowers.com
Please help me on this question. (BIG GRADE FOR ME ) thankssss?
Use a graphing calculator to find the point at which curve C defined by parametric equations x=sin t , y=sin(t+sint), crosses itself for two different values of t.
a)Find and state the two values of t.
b). Show that C has two tangent lines at the origin and find their equations.
Please help me on this question. (BIG GRADE FOR ME ) thankssss?
a: sin t=0 if t=πk, k∈Z. Thus, x=sin t=0 and y=sin (t+sin t)=sin (t+0)=sin t=0. Therefore, and two solutions of the form t=πk will work, you might choose e.g. t=0 and t=π
b: Since the line passes through the origin, the equation of the line is simply y=mx, where m is the slope of the line at the origin. The slope is given by (dy/dt)/(dx/dt), which is given by cos (t+sin t) (1+cos t)/cos t. For t=0, this is 2, but for t=π, this is 0. Therefore, there are two tangent lines running through the origin, with equations y=2x and y=0.
As for the graphing part, this function has a really nice graph, so I've uploaded it here: http://img161.imageshack.us/img161/1597/... . I think that the nature of the problem is made very much clearer by the graph.
Reply:a) t=0 %26amp; t= 6.28319
b) The first tangent at t=o its equation is : y=0
The second tangent at t = 6.28319
Its slope = sin(t+sint)/ sin t = 1.017346621
its equation is : y = 1.017346621 x
a)Find and state the two values of t.
b). Show that C has two tangent lines at the origin and find their equations.
Please help me on this question. (BIG GRADE FOR ME ) thankssss?
a: sin t=0 if t=πk, k∈Z. Thus, x=sin t=0 and y=sin (t+sin t)=sin (t+0)=sin t=0. Therefore, and two solutions of the form t=πk will work, you might choose e.g. t=0 and t=π
b: Since the line passes through the origin, the equation of the line is simply y=mx, where m is the slope of the line at the origin. The slope is given by (dy/dt)/(dx/dt), which is given by cos (t+sin t) (1+cos t)/cos t. For t=0, this is 2, but for t=π, this is 0. Therefore, there are two tangent lines running through the origin, with equations y=2x and y=0.
As for the graphing part, this function has a really nice graph, so I've uploaded it here: http://img161.imageshack.us/img161/1597/... . I think that the nature of the problem is made very much clearer by the graph.
Reply:a) t=0 %26amp; t= 6.28319
b) The first tangent at t=o its equation is : y=0
The second tangent at t = 6.28319
Its slope = sin(t+sint)/ sin t = 1.017346621
its equation is : y = 1.017346621 x
Subscribe to:
Posts (Atom)