Question

C++ please 1 .the formula F= (9.0/5.0) * Celcius temperture to fareinheith useing a do -...

C++ please

1 .the formula F= (9.0/5.0) * Celcius temperture to fareinheith useing a do - while loop display celcius to fareinheith conversions for celcius tempurtures ranging from -32 degress C to + 32 degresss C display both tempurutres

2. c++ program to check if letter is a vowel using switch statement

3. function that determines if number is even or odd using modulus operator and conditional operator

4 . assign a whole number value to a inter ger declare an intialize a pointer to the variable

5. create an array of 10 double values using a pointer notation display the array values in reverse order

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

#include<iostream>
using namespace std;
int main()
{
float fahrenheit;
int celsius=-32;
cout << "Celsius" << "\t\t"<< "Fahrenheit" << endl;
do{
fahrenheit = (celsius * 9.0) / 5.0 + 32;
cout << celsius << "\t\t"<< fahrenheit << endl;
}while(celsius++<32);
return 0;
}

2.

#include <iostream>
using namespace std;
int main(){
char ch;
cout<<"Input Alphabet: ";
cin>>ch;
switch(ch)
{
case 'A': cout<<"It's a vowel";
break;
case 'E': cout<<"It's a vowel";
break;
case 'I': cout<<"It's a vowel";
break;
case 'O': cout<<"It's a vowel";
break;
case 'U': cout<<"It's a vowel";
break;
case 'a': cout<<"It's a vowel";
break;
case 'e': cout<<"It's a vowel";
break;
case 'i': cout<<"It's a vowel";
break;
case 'o': cout<<"It's a vowel";
break;
case 'u': cout<<"It's a vowel";
break;
default: cout<<"Consonant";
}
return 0;
}

3.

#include <iostream>
using namespace std;
int main(){
int ch;
cout<<"Enter a number: ";
cin>>ch;
if(ch%2==0){
cout<<"\nEVEN!!";
}
else{
cout<<"\nODD";
}
return 0;
}

4.

#include <iostream>
using namespace std;
int main(){
int k= 24; // Integer Variable
int *p= &k; // p is now pointing to k
}

5.

#include <iostream>
using namespace std;
int main(){
int k[]={1,2,3,4,5,6,7,8,9,10};
int *p=k;
for(int i=9;i>=0;i--){
cout<<*(p+i)<<endl;
}

return 0;
}

Add a comment
Know the answer?
Add Answer to:
C++ please 1 .the formula F= (9.0/5.0) * Celcius temperture to fareinheith useing a do -...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please Use C++ for coding . . Note: The order that these functions are listed, do...

    Please Use C++ for coding . . Note: The order that these functions are listed, do not reflect the order that they should be called. Your program must be fully functional. Submit all.cpp, input and output files for grading. Write a complete program that uses the functions listed below. Except for the printodd function, main should print the results after each function call to a file. Be sure to declare all necessary variables to properly call each function. Pay attention...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT