Bucky Roberts's Profile

About

 
Points: 26,647
Gender: Male
Relationship: Single
Religion: Other
Political Views: Other
Current City: Adams, NY

Employment

 
Google: 2009 - 2015

Pages

Contact

 
thenewbostonlive thenewboston buckyroberts

CRiouz CRiouz  >>  Bucky Roberts
March 24, 2017 · Public

I want to create the Temperature Converter but it calculated the number wasn't right. How can I solve this. (Code is down below thx)


#include
#include
#include
#include
#include

int main()
{
char choice;
int qCelcius;
int qFahrenheit;
float cCelcius = ((qCelcius * 18) + 32);
float cFahrenheit = ((qFahrenheit - 32) / 18);

printf("!!!This is Temperature Converter program!!!\n\n");
printf("Type in A for Celsius to Fahrenheit\tor\tB for Fahrenheit to Celsius\n");
scanf(" %c", &choice);
if(choice = 'a'){
printf(" Enter your celsius temperature --> ");
scanf(" %d", &qCelcius);
printf("This is a fahrenhiet temperature %.2f", cCelcius);
}else{printf(" Enter your fahrenhiet temperature --> ");
scanf(" %d", &qFahrenheit);
printf("This is a celsius temperature %.2f", cFahrenheit);
}

return 0;
}

CRiouz CRiouz  >>  Bucky Roberts
March 22, 2017 · Public

I wrote a multiple choices exam. The issue is after I answered the first question the 2nd and 3rd show up at the same time. The 4th and 5th question have this problem as well. So.... can you guys help me solve this thx.

#include
#include

int main()
{
char firstchoice;
char secondchoice;
char thirdchoice;
char forthchoice;
char fifthchoice;
int score=0;

printf("27 * 28 = ?\n");
printf("a) 756\t b) 546\n");
scanf("%c", &firstchoice);
(firstchoice == 'a') ? ++score : --score;

printf("___ you been to china?\n");
printf("a) Have\t b) Did\n");
scanf("%c", &secondchoice);
(secondchoice == 'a') ? ++score : --score;

printf("What does pH stands for?");
printf("a) power of hydrogen\t b) potential for hydrogen\n");
scanf("%c", &thirdchoice);
(thirdchoice == 'b') ? ++score : --score;

printf("Mushroom is in which species?\n");
printf("a) Fugi\t b) Mamals\n");
scanf("%c", &forthchoice);
(forthchoice == 'a') ? ++score : --score;

printf("Is 2 to the power of 6 greater than 76\n");
printf("a) Of couse, pretty sure it is\t b) No way, it cant be possible\n");
scanf("%c", &fifthchoice);
(fifthchoice == 'b') ? ++score : --score;

printf("Your score is %d", score);

return 0;
}

Frozen Flame  >>  Bucky Roberts
March 22, 2017 · Public

What are the playlists I must watch in order to become a network and application security expert (Concepts, Tools and all) .

TeamCurtsyEfe Websalute  >>  Bucky Roberts
March 22, 2017 · Public

hi Bucky

Jesse Cox  >>  Bucky Roberts
March 21, 2017 · Public

Hey, I can't post to the forums. What's going on?

thenewboston
1342 Followers
Bitcoin
128 Followers
tnb Videos
87 Followers
Buckys Fans
408 Followers
Quotes
78 Followers
Java
971 Followers
HTML5
808 Followers
Linux
357 Followers
Buckys LOL room
166 Followers
Java Gaming
173 Followers
The Young Coders
150 Followers
Paint Art
18 Followers
Dog
41 Followers