Sunday

April 20, 2014

April 20, 2014

Total # Posts: 48

**C Programming**

Also, what do you mean by set maxHeight to -1000; ?

**C Programming**

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<=endingtime; Declare additional variables...

**C Programming**

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 integers.

**C Programming**

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 program should do: Welcome to the Weather Balloon Altitude and Velocity Program. Enter the Balloon's Starting Time: 1 Enter the Time Incre...

**C Programming**

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 <= 0.0 || heading > 360.0);

**C Programming**

Hmm, code was too long for the post? Here's a second try. /* Directives */ #include <stdio.h> int main(void) { double heading; /*compass heading in degrees*/ /* Get compass heading */ printf("Enter a Compass Heading: "); scanf("%lf", &heading); /*...

**C Programming**

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 to do this: Enter a Compass Heading: 500.7 Please Input a Compass Heading between 0 and 360 Degrees. Enter a Compass Heading: 360.0 If the user puts ...

**C Programming**

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.

**C Programming**

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.

**C Programming**

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 temperature.

**C Programming**

Okay, question. What if I inputted this: Enter a temperature: 32 Enter 'C' for Celsius or 'F' for Fahrenheit: c Choose a conversion ('C' for Celsius or 'F' for Fahrenheit): c The temperature is: 0.0 C. I want the program to read [The temperature...

**C Programming**

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!!!

**C Programming**

Oh! There's my problem. It's 9/5, not 5/9.

**C Programming**

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 program is spitt...

**C Programming**

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.

**C Programming**

We have just talked a little bit about loops structures. Haven't gotten into any coding with it though.

**C Programming**

Nevermind! I found out how to end the program if it's not C,c,f,F after experimenting. return(0); =]

**C Programming**

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.

**C Programming**

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 in...

**C Programming**

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"?

**C Programming**

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&#...

**C Programming**

Oh yeah, and I need to use a switch statement in this program. The instructor's orders.

**C Programming**

I'm guessing the //get char. from keyboard is a comment telling what the code you just wrote means?

**C Programming**

This is what the program needs to do: Enter a temperature: 32.4 Enter 'C' for Celsius or 'F' for Fahrenheit: C Choose a conversion ('C' for Celsius or 'F' for Fahrenheit): F The temperature is: 90.3 F. How would I store the input when it asks fo...

**C Programming**

Write a program that prompts the user to enter a temperature, followed by a letter representing Celsius (C) or Fahrenheit (F). Then prompt the user for the conversion type and print the results to the screen with one decimal point. If the user enters a letter other than 'C...

**Calculus**

Consider the function f(x)=x^4 + 8sqrtx Let F(x) be the antiderivative of f(x) with F(1)=-4. Then F(x)=_____

**Calculus**

I couldn't figure it out.

**Calculus**

Oh, the s is not supposed to be there.

**spanish**

Try using the online translator and see if that helps?

**calculus**

Thank you! I've been stuck on that problem all night.

**calculus**

Find the derivative of f(x)=[lnx]^4

**Calculus**

If the equation of the tangent line to the curve: xy^3+xy=6, (3,1) find m and b

**Calculus**

Use implicit differentiation to find the slope of the tangent line to the curve sqrt of x + sqrt of y = 8

**Calculus**

cos(x) + 4 sin(x) is correct. How did the 4 end up with the sin and not with the cos?

**Calculus**

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 sure that's wrong. Help. Thanks.

**Calculus**

I got the same answer but for some reason, it's not the right answer(webwork). Thanks though!

**Calculus**

f(x)=sin^(7)x The 7 is an exponent and the x is not. Find the derivative.

**Calculus**

If f(t)=(t^2+6t+2)(3t^2+3) then f'(t)=_____? and f'(3)=______?

**Calculus**

If f(x)=6x+9/3x+1 then f'(x)_____? and f'(3)=_____?

**Calculus**

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 where to go from there.

**calculus**

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

**Chemistry**

In the context of a silicon-based semiconductor, match each of the following descriptions to the type of semiconductor. dopant:boron contains electron holes contains extra electrons dopant:phosphorus n-type semiconductors or p-type semiconductors

**Chemistry**

Rank the crystal lattice structures in order of decreasing efficiency of space in the structure? Face centered cubic, body centered cubic, simple cubic, hexagonal close packing.

**Chemistry**

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 of atoms in the crystal that give rise to this scatterying? So far I've gotten .367 radians but I have no idea where to go from there.

**Chemistry**

Ethanol has a heat of vaporization of 38.56 kJ/mol and a normal boiling point of 78.4 C.

**Chemistry**

What is the vapor pressure of ethanol at 13 C?

**Chemistry**

Use the drawing of MO energy diagram for CO to predict the bond order.

**Chemistry**

Use the drawing of a molecular orbital energy diagram for ClF to predict the bond order?

Pages: **1**