User Profile
Collapse
-
-
Just doesn't seem right. It won't compile either, any explaination, why it won't compile?...Leave a comment:
-
Little Help
I'm suppose to write two codes....I have some of it done, I don't think I've done it right.
I'm suppose to write a program that will get from the user's keyboard one sets of numbers that will be read into two 2 dimensional arrays of size 4 by 3. Below is an example.
Array A
column 1 column 2 column 3
2 3 5
4 5 7
1 ... -
-
1.) int addIt(int &n1, int &n2) or int addIt(int n1, int n2)
2.) void tryIt() or int tryIt(); or void tryIt; or int tryIt;...Leave a comment:
-
What is the function header for a function that receives two integers and returns their sum to the main. The two integers sent to the fucntion will not be changed in the function.
What is the correct Function prototype for a function that contains no arguments?
Which is a the prototype of a function that receives two integer arguments, multiplies them by 3 and returns the tripled value in the original variables?
...Leave a comment:
-
Need help with questions
I need to help with about 18 or 20 questions, anyone want to help me with a bunch of questions? I must complete them by 11am est -
Code:#include <stdio.h> double get_input() { double fahrenheit; printf("Enter the degrees in Fahrenheit:"); scanf_s(" %lf", &fahrenheit); /* Get's the degrees in Fahrenheit temperature from the user using a scanf statement.**/ return fahrenheit; } double calculate(double fahrenheit) { return ((fahrenheit - 32)
Leave a comment:
-
-
From Scratch - Need Help
I'm suppose to write a program to convert a temperature from Fahrenheit to Celsius or from Celsius to Fahrenheit.
* Ask the user which way they want to convert (use a menu 1 = Fahrenheit to Celsius; 2 = Celsius to Fahrenheit)
* Then have the user enter the temperature.
* Convert the temperature to the new temperature
* Print out the original temperature and the temperature in the new measurement... -
-
-
Very Lost and Very need of help
I'm suppose to edit the function called swap_values so that it receives three numbers (not two nubmers) called first , second, and third. These numbers will not be in any special order (for example enter 20.0, 3.1 and 9.3). The function swap-values will need to be edited to use more "if" statements to place the smallest vlaue in the variable named first, the second smallest number in the variable named second, and the largest number in... -
Code:{ while(1) { switch(ch) { case'a' : result=number1+numder2; break; case's' : result=number1-number2; break; case'm' : result=number1*number2; break; case'd' : result=number1/number2; break; default: printf("please enter the correct character"); break; } /*end of while*/ int DoOperation(int
Leave a comment:
-
What should loop look like for the user over and oner again to enter the correct character...Leave a comment:
-
Code:== 'a' or i == 's' or i == 'm' or i == 'd'
Leave a comment:
-
-
Gonzo, help me please
I'm suppose to write a program that will ask the user to enter two integers. Then the program will ask the user for one of four letters a to add the numbers, s to subtract the numbers, m to multiply the numbers, or d to divide the two numbers.
If the user enters any character other than the 4 listed, keep asking them over and over until they enter a correct letter. Display on the monitor the two numbers entered the math operation used and... -
2 Errors
fatal error C1004: unexpected end of file found
error C2447: missing function header (old-style formal list?)
int age;
int count1 = 0;
int count2 = 0;
int count3 = 0;
{
cout << "Enter an age: ";
cin >> age;
if ( age <= 17 )
{
count1++;
}
else if ( age < 65 )
{...
No activity results to display
Show More
Leave a comment: