Ask a New Question
Search
Questions and answers by
gnozahs
Questions (21)
I don't know what to do now. Below is my code I have so far but I have no idea what to do next.
Here's the prompt for what the
6 answers
692 views
How do you reprompt after the user inputs a wrong number into the program in C Programming? Loop structure?
i.e. I want my code
4 answers
1,146 views
Okay, question.
What if I inputted this: Enter a temperature: 32 Enter 'C' for Celsius or 'F' for Fahrenheit: c Choose a
7 answers
626 views
This is what the program needs to do:
Enter a temperature: 32.4 Enter 'C' for Celsius or 'F' for Fahrenheit: C Choose a
23 answers
987 views
Write a program that prompts the user to enter a temperature, followed by a letter representing Celsius
(C) or Fahrenheit (F).
1 answer
1,913 views
Consider the function f(x)=x^4 + 8sqrtx
Let F(x) be the antiderivative of f(x) with F(1)=-4. Then F(x)=_____
0 answers
522 views
Find the derivative of f(x)=[lnx]^4
2 answers
419 views
If the equation of the tangent line to the curve:
xy^3+xy=6, (3,1) find m and b
1 answer
482 views
Use implicit differentiation to find the slope of the tangent line to the curve sqrt of x + sqrt of y = 8
1 answer
1,388 views
find the derivative of f(x)=tanx-4/secx
I used the quotient rule and got (sec^2x-4)(secx)-(tanx-4)(cosx)/sec^2x but I'm pretty
3 answers
760 views
f(x)=sin^(7)x
The 7 is an exponent and the x is not. Find the derivative.
5 answers
443 views
If f(t)=(t^2+6t+2)(3t^2+3)
then f'(t)=_____? and f'(3)=______?
1 answer
438 views
If f(x)=6x+9/3x+1
then f'(x)_____? and f'(3)=_____?
2 answers
344 views
If f(x)=4sinx/1+cosx
then f'(x)=_____? I think that the derivative of 4sinx would be 4cos and cosx would be sinx but I don't know
2 answers
1,444 views
Determine the infinite limit of the following function.
Lim as x-->zero 1/x^2(x+7) and lim as x-->3 from the left side 2/x-3
0 answers
469 views
In the context of a silicon-based semiconductor, match each of the following descriptions to the type of semiconductor.
dopant:bo
1 answer
1,121 views
Rank the crystal lattice structures in order of decreasing efficiency of space in the structure?
Face centered cubic, body
1 answer
2,940 views
Xrays with a wavelenth of 1.70A scatter at an angle of 21.5 degrees from a crystal. If n=1, what is the distance between planes
1 answer
826 views
What is the vapor pressure of ethanol at 13 C?
2 answers
2,438 views
Use the drawing of MO energy diagram for CO to predict the bond order.
2 answers
763 views
Use the drawing of a molecular orbital energy diagram for ClF to predict the bond order?
2 answers
1,898 views
Answers (27)
Also, what do you mean by set maxHeight to -1000; ?
Ok, I changed all my floats to double floats and changed my scanfs to read in double floats. I'm looking at the code you posted and I have a question. What would go into "time"? Like when you say time=staringtime; time
I remember my instructor telling us that we couldn't use a for loop to create the table because for loops must use integers, and for us to use a while loop since the starting time, time increment, and ending time are floating point numbers, and not
Ah! Thanks. When I was doing my if and while statements, I kept doing (heading < 0.0 || > 360.0) and kept wondering why it wasn't working. It needs to be while (heading 360.0);
Hmm, code was too long for the post? Here's a second try. /* Directives */ #include int main(void) { double heading; /*compass heading in degrees*/ /* Get compass heading */ printf("Enter a Compass Heading: "); scanf("%lf", &heading); /* Display equivalent
Yeah! I keep forgetting to write comments for each part of my code. But I'll make sure I write up good comments for the code.
Yes, I have learned the if else statements. I made another switch statement within the first switch statement to account for the F to F and C to C and that did the trick. Thanks.
MathMate was helping me with it the other day. Everything works correctly except for when I convert it from Celsius to Celsius (same thing), I'm wondering how I would make a code to make it output the same input number since it's going to be the same
Yeah, at first I had the formulas in the wrong place, then I put 5/9 in one of the formulas instead of 9/5. Thanks for all your help man. I don't know what I would do without you. THANK YOU!!!
Oh! There's my problem. It's 9/5, not 5/9.
Hmm, my F to C conversion works fine but my C to F is not giving me the right output. My code for C to F is (temp * 5/9) + 32. I think it's the way you divide the 5/9. Starting out with 32.4, when I do it a certain way on my calculator, I get 50, which the
It doesn't close out the window. It just goes back to the ~> Now I just gotta figure out why my math is wrong since it's not spitting out the correct temperatures after the conversion.
We have just talked a little bit about loops structures. Haven't gotten into any coding with it though.
Nevermind! I found out how to end the program if it's not C,c,f,F after experimenting. return(0); =]
Ok, I replaced the second switch with the code you provided earlier and now I got the second switch to operate correctly. I'm just wondering how to end the program if the user does not enter C,c, F, f.
Thanks! Now the first switch is working. But how do you end the program if the user inputs something else than C,c,F,f? It displays "Invalid Syntax" but it still moves onto the next line. I want it to just stop at "Invalid Syntax" if the user doesn't input
Okay, so since my first switch statement is useless, how would I go about getting the program to only recognize F, f, C, and c only and if anything else than that is inputted for it to display "Invalid Syntax"?
Alright. I think I'm almost there. I'm just having a slight problem when I'm running the program. This is how it should look like (for reference). Enter a temperature: 32.4 Enter 'C' for Celsius or 'F' for Fahrenheit: C Choose a conversion ('C' for Celsius
Oh yeah, and I need to use a switch statement in this program. The instructor's orders.
I'm guessing the //get char. from keyboard is a comment telling what the code you just wrote means?
I couldn't figure it out.
Oh, the s is not supposed to be there.
Try using the online translator and see if that helps?
Thank you! I've been stuck on that problem all night.
cos(x) + 4 sin(x) is correct. How did the 4 end up with the sin and not with the cos?
I got the same answer but for some reason, it's not the right answer(webwork). Thanks though!
Ethanol has a heat of vaporization of 38.56 kJ/mol and a normal boiling point of 78.4 C.