Hello,
Well, not long ago i've been given a worksheet at school since I wanted to get into software development to achieve small games and useful programs. The worksheet is really simple and i've learned quite a bit on basics but I still need help.
This is what I could achieve with my knowledge;
#include <iostream.h>
/*Worksheet I
30 of July
Michel
Complete additions*/
int main ()
{
int num1, num2, num3, suma, prom, prod; // declarations of variable
cout << "Insert the first number/n";
cin >> num1;
cout << "Insert the second number/n";
cin >> num2;
cout << "Insert the third number/n";
cin >> num3;
sum = num1 + num2 + num3;
prom = (num1 + num2 + num3)/3;
prod = num1 * num2 * num3;
cout << " The addition of " <<num1 << " , " <<num2 << " and " <<num3 << " is " <<sum << endl;
cout << " The overall of " <<num1 << " , " <<num2 << " and " <<num3 << " is " << prom << endl;
cout << " The product of : <<num1 << " , " <<num2 << " and " <<num3 << " is " << prod << endl;
reutn 0;
}
This is a small calculator I made for question 1 - 2 of the worksheet (it is in Spanish so i'm sorry for work translation).
At this point, its were I go blank, I need help on a couple of things which will really help me get going quick!
- A program that draws a rectangular rectangle using 6 asterixes (*) in its base
- A program that determines if a number is pair or odd (using operator module)
- " " if the largest number inserted is a multiple of the small one (using two numbers).
Since im on a Windows and the script is on a Mac, I had to copy it. I use Xcode as software for C++.
Michel
Thanks,