Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Shade
Physics Problem, please help!?
A) A roller-coaster vehicle has a mass of 700 kg when fully loaded with passengers (Fig. P7.28). r1 = 9 m and r2 = 18 m (a) If the vehicle has a speed of 23 m/s at A, what is the magnitude of the force that the track exerts on the vehicle at this point?
B) What is the maximum speed the vehicle can have at B in order for gravity to hold it on the track?
Image: http://i1309.photobucket.com/albums/s627/zalud1ke/...
I have been working on this problem for quite a while, and have tried to use other examples where people have asked the same thing, but I am having trouble getting the correct answer.
3 AnswersPhysics7 years agoBeginning ASP.Net 4 in C#?
One of the assignments for my beginning web programming class involves the following step. "Add a new Web Form...and then add an image to the root of the site..." I understand how to do the rest of the problem, along with how to add the Web Form to my website. However, I am very confused on what exactly it means "add an image to the root of the site" Please help. Just a note, this is in Visual Web Developer, and I am programming in C#. Thank you, in advance.
1 AnswerProgramming & Design8 years agoAsp.Net 4 in C# Calendar & Literal Control Programming help needed?
So I am just learning ASP.Net 4 programming and I am more comfortable using C# than VB. One of the problems assigned this week is as follows...
Create a new page and add a Calendar control and a Literal control to your page. Set the SelectedDate of the Calendar control to today's date (DateTime.Today) in your Page_Init function (note that Page_Init and Page_Load are different functions). When a new date is selected (by clicking on a date on the Calendar control), output the current selected date to the literal control.
I am really confused in how to do this, any help would be greatly appreciated.
1 AnswerProgramming & Design8 years agoGaming Systems through my VGA and 3.5mm projector?
Ok, so I just recently got a very nice projector instead of a new tv. However, when it arrived I realized I had ordered a computer projector (so it only has VGA, S Video, and a 3.5mm input jacks). I would like to play my video game systems (that use the Red/White/Yellow RCA outputs). I am just wanting to check, if I use a cable such as this http://www.amazon.com/HDE-Adapter-S-Video-Cable-Vi... , to transfer the video (yellow RCA) output from the gaming console to the projector (VGA in). And a Audio RCA to 3.5mm jack convertor for the sound. Would this work correctly or would I have to dish out the money for a tuner to convert it over?
1 AnswerHome Theater9 years agoCan anyone help me get to this web page please?
My fiance was told she needs to use this website for class...www.mysoclab.com however when we try to go to it the connection times out every time. I have tried different web browsers, even safari on our Ipad. Nothing can seem to get to this web page. At first I thought perhaps their server has overloading hence the connection issues, but that was 5 days ago and it still isn't working. Any ideas?? Thanks a lot.
2 AnswersOther - Internet9 years agoWhat to put on a application for "hours available"?
I am looking to apply for gamestop, and because it is for summer I am available at any time they are open. I would just put their hours of operation, but I cannot find them. Also, the space on the application is to small to write anything other than hours. What should I put down?
2 AnswersVideo & Online Games9 years agoHelp with finding a formula to write a mathematical proof?
Ok, so I am doing my homework and I need a little help. The problem is "Find a formula for 1+4+7+...+(3n-2) for positive integers n, and then verify your formula by mathematical induction." I seem to be getting the hang out writing the actual proofs, but I have spend over an hour trying to create a formula to set this equal to. The formula should be fairly simple. Please help, again all I need is the formula this is equal too, I would prefer to solve the proof by myself. Thank you.
1 AnswerMathematics9 years agoHelp with finding a formula to write a mathematical proof?
Ok, so I am doing my homework and I need a little help. The problem is "Find a formula for 1+4+7+...+(3n-2) for positive integers n, and then verify your formula by mathematical induction." I seem to be getting the hang out writing the actual proofs, but I have spend over an hour trying to create a formula to set this equal to. The formula should be fairly simple. Please help, again all I need is the formula this is equal too, I would prefer to solve the proof by myself. Thank you.
1 AnswerHomework Help9 years agoC++ template function use help?
I am working on building a program to add elements from any type of array to the other elements in that same array. I have it all built and it seems correct to me (though I am still fairly new to c++ programming). When I compile the program I get these 2 errors, I understand what the errors mean, but when I look at my program I can't seem to understand why I am getting them. Please help, thanks.
P.S. Everything is below...
errors:
Hw8_2.cpp: In function âint main()â:
Hw8_2.cpp:33: error: no matching function for call to âsum(std::string [2], int&)â
Hw8_2.cpp:37: error: no matching function for call to âsum(double [3], int&)â
code:
// Sum.cpp : main project file.
#include <iostream>
#include <string>
using namespace std;
template <class T>
T sum(T a[],T b) //function to add the parts of the arrays together
{
T result; //variable to hold the result
for(int z=0;z<b;z++) //loop to go through the entire array
{
result += a[z]; //add the current value to the current result
}
return result; //return the result
}
int main()
{
//build arrays for use of template function
int iarr[] = {3, 6, 2, 7};
string sarr[] = {"Hello ", "World"};
double darr[] = {4.5, 2.6, 1.9};
int size; //int to hold the arrays length
//use the template sum function for integers
size = sizeof iarr/sizeof(int); //get length of int array
int iout = sum(iarr, size); //compute the sum of all values in int array
//use the template sum function for strings
size = sizeof sarr/sizeof(int); //get the length of the string array
string sout = sum(sarr, size); //compute the sum of all strings in the string array
//use the template sum function for doubles
size = sizeof darr/sizeof(int); //get length of double array
double dout = sum(darr, size); //compute the sum of all doubles in the double array
//print out the resulting sums
cout<<"Integers: "<<iarr[0]<<","<<iarr[1]<<","<<iarr[2]<<","<<iarr[3]<<" The sum of integers: "<<iout<<endl;
cout<<"Strings: "<<sarr[0]<<" , "<<sarr[1]<<"The sum of strings: "<<sout<<endl;
cout<<"Doubles: "<<darr[0]<<","<<darr[1]<<","<<darr[2]<<" The sum of doubles: "<<dout<<endl;
}
2 AnswersProgramming & Design1 decade agoHelp me with these c++ errors please ASAP?
I have this program I have written and I am getting a few errors that I really can't seem to fix up. I am a new learning programmer and need to turn in this assignment tonight. I know my main method doesn't have anything in it yet, I just need to fix these compilation errors. Thanks
hw2_1.cpp:36: error: multiple types in one declaration
hw2_1.cpp:38: error: expected unqualified-id before â)â token
hw2_1.cpp:45: error: expected unqualified-id before âdoubleâ
hw2_1.cpp:45: error: expected `)' before âdoubleâ
hw2_1.cpp:57: error: expected unqualified-id before âlongâ
hw2_1.cpp:57: error: expected `)' before âlongâ
// ex2_1.cpp : main project file.
#include <iostream>
#include <iomanip>
#include <streambuf>
#include <streambuf>
using namespace std;
struct sterling
{
long pound;
int shilling;
int pence;
}
class Sterling
{
long pounds;
int shillings;
int pence;
double decpounds;
public:
Sterling(); //constructor w/ no param.
Sterling(double dec_pound); //constructor w/ 2
Sterling(long pounds, int shillings, int pence); //constructor w/ 3
sterling getSterling(); //get the parts
void putSterling(); //print sterling
void addition(sterling a, sterling b);
void subtraction(sterling a, sterling b);
void mult(sterling a, sterling b);
void div(sterling a, sterling b);
void div(sterling a, double b);
};
Sterling()
{
pounds =0;
shillings =0;
pence =0;
}
Sterling(double dec_pound) //constructor to convert from decimal pounds
{
int d = dec_pound;
double decimal = dec_pound - d;
decimal *= 240;
double result = decimal /12;
pounds = d;
shillings = result;
pence = int((result - shillings) * 10);
}
Sterling(long pounds, int shillings, int pence) //constructor w/ 3
{
double dshillings = shillings/20.0;
double dpence = pence/240.0;
double decpounds = (double)pounds + dshillings + dpence;
}
sterling getSterling()
{
sterling give;
give.pound = 5;
give.shilling = 2;
give.pence = 8;
return give;
}
void putSterling(sterling printe)
{
cout<<(char)156<<printe.pound<<"."<<printe.shilling<<"."<<printe.pence<<endl;
}
void addition(sterling a, sterling b)
{
sterling added;
added.pound = a.pound + b.pound;
added.shilling = a.shilling + b.shilling;
added.pence = a.pence + b.pence;
cout<<"Addition: "<<(char)156<<added.pound<<"."<<added.shilling<<"."<<added.pence<<endl;
}
void subtraction(sterling a, sterling b)
{
sterling sub;
if(a.pound > b.pound)
{
sub.pound = a.pound - b.pound;
sub.shilling = a.shilling - b.shilling;
sub.pence = a.pence - b.pence;
cout<<"Subtraction: "<<(char)156<<sub.pound<<"."<<sub.shilling<<"."<<sub.pence<<endl;
}
else
{
sub.pound = b.pound - a.pound;
sub.shilling = b.shilling - a.shilling;
sub.pence = b.pence - a.pence;
cout<<"Subtraction: "<<(char)156<<sub.pound<<"."<<sub.shilling<<"."<<sub.pence<<endl;
}
}
void mult(sterling a, sterling b)
{
sterling product;
product.pound = a.pound*b.pound;
product.shilling = a.shilling*b.shilling;
product.pence = a.pence*b.pence;
cout<<"Multiplication: "<<(char)156<<product.pound<<"."<<product.shilling<<"."<<product.pence<<endl;
}
void div(sterling a, sterling b)
{
sterling quotient;
if(a.pound > b.pound)
{
quotient.pound = (a.pound/b.pound);
quotient.shilling = (a.shilling/b.shilling);
quotient.pence = (a.pence/b.pence);
cout<<"Division: "<<(char)156<<quotient.pound<<"."<<quotient.shilling<<"."<<quotient.pence<<endl;
}
else
{
quotient.pound = (b.pound/a.pound);
quotient.shilling = (b.shilling/a.shilling);
quotient.pence = (b.pence/a.pence);
cout<<"Division: "<<(char)156<<quotient.pound<<"."<<quotient.shilling<<"."<<quotient.pence<<endl;
}
}
void div(sterling a, double b)
{
sterling quotient;
int d = b;
double
3 AnswersProgramming & Design1 decade agoC++ program help for understanding how to write the code?
I have this program that I need to do for my class and I am having a hard time figuring out how to write it. I am brand new to c++ programming and really need some help. I understand what I need to do, but I have no idea how to program it.
Write a program that accepts a series of integer numbers from the standard input separated by spaces and displays the number of occurrences of each number. The number of occurrences of all entered numbers must be updated and displayed right after getting every new number.
1 AnswerProgramming & Design1 decade agoHow to read a line in C as a array/string?
Like it says I am trying to read a line from a file and place that line in a string. I am new to C and am trying to make a program that reads a single 1st line out of a .txt file and places it in a array then counts how many words are in the string. I was doing a test just to try to read the number of words (by counting the number of spaces and then adding 1) but I got stuck when it stopped after the first word. Here is what I have, any help would be great, but I mostly just need help on how to read the entire line and place it in.
#include <stdio.h>
#include <string.h>
main()
{
int length, i;
int count = 0;
char str[100];
printf("enter the sentence: ");
scanf("%s",str);
length=strlen(str);
printf("str: %s,length: %d\n",str,length);
for(i=0;i<=length;i++)
{
if(str[i]==' ')
count++;
}
printf("the number of words are :\t%d\n",count);
}
3 AnswersProgramming & Design1 decade agoJava programming, paint() method?
I am making a program that uses JTextFields to convert an input number into its corresponding ascii code. I was wondering how I can make it so that the text fields appear above the rectangles made from my paint() method. Basically, is there a way I can make the parts of the applet that are made by the paint() method consist in the background so that if I add buttons or anything like that to the applet, that they will still appear, instead of being covered up by my paint() method shapes.
1 AnswerProgramming & Design1 decade agoHelp explain how to make this java program?
I need to do this in my Java program and am completely lost on how to do this, can anyone please help?
Design class Point3D by extending class Point from Java API. Your class must represent a 3-dimentional point and introduce a new variable z of type int. The class must override all methods of class Point, including constructors (replace every occurrence of Point in Java API methods with Point3D in your implementation). Write a test class with containing method main that demonstrates usage of all methods of class Point3D. Put BOTH classes in one file.
1 AnswerProgramming & Design1 decade agoConvert type double to a floating point?
Exactly like the question states. How can I convert a Double to a floating-point number in Java. Also, if you know how to designate how many digits are printed when you print the floating-point that would be great.
Thanks in advance
2 AnswersProgramming & Design1 decade ago