All right you cucks i want to find out if their are any programmers here or is it truly just cucks and faggots simple...

All right you cucks i want to find out if their are any programmers here or is it truly just cucks and faggots simple c++ request
>>Declare variable named a1. (just declare)
Initialize variable with value 10.
Declare variable a2 and assign value from keyboard.
Declare variable a3 and assign value from keyboard.
Declare variable a4 and assign value a2+a3.
Declare variable b1 and assign value a4+10.

Feeling all top shit after just finishing your first fizzbuzz app?

>Feeling top shit
>simple code

> real programmers
> literally most trivial question after hello world.

Fuck you, you can pay my $200 hourly rate if you want me to do your homework for you, kid.

>>homework
Kek it's all on YouTube besides if you don't know you don't know no shame in that i am glad you show some interest in programming

0/10

It's ok

Seriously are you 12 wtf this is impossibly straightforward

Indeed it is and yet nobody has done it what dose that tell you?

int a1;
a1 = 10;
int a2 = 11;
int a3 = 12;
int a4 = a2 + a3;
int b1 = a4 + 10;
(or int b1 = a4 + a1; if a1 never changes)

declaring a variable does depend on what your going to store inside it.
There's no point declaring a variable as a string if your going to use it as a number for calculation later. So your variable declaration is highly dependant upon what you want to variable to hold.

That being said you can assume these are all 'int' as your asked for 'value'

need any more?

It tells me nothing but traps faggots and furrys on this on Sup Forums sadly

Missing some cin to get keyboard input or whatever the function is called

This still nice start now Print on screen, formatted exactly like this:
"Variable a1 value: [value], variable a2 [value], variable a3 [value], variable a4 [value], variable b1 [value]

That is only if you want to take user input from the keyboard.
If you are the programmer you do not require cin as you are hard coding these into the program.

You seriously can't figure out printf?

This kids homework requires keyboard input though didn't it

he never ask for user input anywhere

Bruh, stop doing his homework for him.

> cin or whatever it's called
> self-identifies as someone who can pass judgement on the code of others.
> clearly needs Baby's First Compiler

my bad i read the keyboard bit wrong
let me fix.
I do java, c# python and swift so im not used to c++

Sad part is you think this is homework worthy this is literally 10 min of work at most

int a1;
a1 = 10;
int a2;
cin >> a2;
int a3;
cin >> a3;
int a4 = a2 + a3;
int b1 = a4 + 10;
(or int b1 = a4 + a1; if a1 never changes)

this is not how you would write it all out this is simply as you asked for it, if i wrote it in a whole program it would be different.

No need my man you tried and you did good

This is literally like page 2 of remedial programming.

Write me a check for 200, and I'll do your work for you. I bill in hour increments.

There*
My autocorrect changes int and var
Not going to type on my tablet

I was thinking int doesn't cover decimals and key input may be any character....
So in essence op is a fag

i wouldn't be learning much if others did my homework for me now would i ? also are people really paying 200 bucks to get their homework done?

basically im not going to be setting up all the user error nonsense 'what if they press a instead of 1' idc he simply said we're dealing with values.

>10 mins
Literally took me 3 seconds to imagine the answer and the keystrokes would be around a minute.

Yeah
Maybe he just wants to see syntax

did as written good job man
i don't know who you are trying to convince me or yourself

just one think that bugs me
>Declare variable named a1. (just declare)
Initialize variable with value 10.

#include

using namespace std;

class OPsAddition {
int a1;
a1 = 10;
int a2;
int a3;
int a4;
int b1;
};
// Member functions definitions including constructor
OPsAddition::OPsAddition(void) {
cout a2;
cout > a3;
//set a4 value
opsAddition.setA4(a2, a3);
//set b1 value
opsAddition.setB1(opsAddition.getA4);
cout

9/10

Okay newfag, you failed to mention the constraints on input, or whether or not we should test input.

int a = 10;
/* Very poor naming convention */
/* Because you didn't specify whether or not decimal input is valid, we assume worst case */
double a2, a3, a4, b1;

/* We're going to assume the user isn't retarded and knows how to input a valid number */
cout > a2;

cout > a3;

/* Assign a2 + a3 to a4 */
a4 = a2 + a3;

/* Assign a4 + 10 to b1 */
b1 = a4 + 10;

No sale Pajeet follow what it say's
Declare variable named a1. (just declare)
Initialize variable with value 10.
Declare variable a2 and assign value from keyboard.
Declare variable a3 and assign value from keyboard.
Declare variable a4 and assign value a2+a3.
Declare variable b1 and assign value a4+10.

Print on screen, formatted exactly like this:
"Variable a1 value: [value], variable a2 [value], variable a3 [value], variable a4 [value], variable b1

I'm not sure why your setters are public functions when the values of a4 and b1 should be instantiated in the constructor.

There's no print request in the OPs post. Also, OP is autistic and decided to include instructions as green text.

how can you do it in the constructor?

>Print on screen, formatted exactly like this:
get it together man

take your homework to Sup Forums

those variables cant be known until after runtime though?

correct

are you implying i want a straight answer ? no i want to see Sup Forums do it and be autistic about it so far there has been who was really close but didn't use c++

Declare variable named a1. (just declare)
Initialize variable with value 10.
Declare variable a2 and assign value from keyboard.
Declare variable a3 and assign value from keyboard.
Declare variable a4 and assign value a2+a3.
Declare variable b1 and assign value a4+10.

Print on screen, formatted exactly like this:
"Variable a1 value: [value], variable a2 [value], variable a3 [value], variable a4 [value], variable b1 [value]."
[new line]
"I'm user and i know difference between declaration and initialization of variables"

simple yet nobody can do it to the letter

You didn't even get the terminology in the question right. In declaring a1, it is default-initialized (which is a no-op, to an indeterminate value). The following assignment to it is not called initialization.

'declare'
int a1;
yes this is already initialised by default but this is just declaring a variable. your just saying 'heres an int called a1'.

'Initialize variable with value 10'
a1 = 10;
initialise is the act of giving it a default value urself so upon compilation the variable will be 'initialised' with this value.
(notice the word compilation)