With the variables given to you, add the numbers together and store it in the variable called sum.
Basic Konwlege
Score: 0 / 15.0
Exercises
Replace the /* comparison */ comment with the appropriate expression that evaluates whether the variable first
is the same size or bigger...
With the code given to you, create a new variable called quotient
that stores the numerator
divided by the denominator
and represented as...
Complete the code so that the variable polarity is -1 when adding first and second is negative, but polarity is 1 when adding first and...
Replace the /*date type*/
comments with the appropriate data types for each variable.
Given an input integer x for a math function defined by y = 3*(x^2) + 5 (three multiplied by the square of x plus five). The variable y...
Given three variables called first, second and third. If third is less than the difference of first and second, then return third....
Given three integer variables called first, second and third, if second is less than first, return false. Otherwise, check if third lies...
Given three integers named first, second and third, write code that finds the average of the three numbers and that stores the result in...
Given a decimal number called input
, calculate the cube of this number. Store the result in the decimal variable called myCube
.
Given an integer month_number
, complete the function using a switch statement so that the string month_name
is assigned the name of the...
Complete the function using a switch statement so that the variable am_pm
is assigned the value 'A'
if hour
corresponds with any hour...
Write a program that stores the following information about a soccer player in variables with the following identifiers and corresponding...
Write a program that makes a decision and does something so that if the input is 1
the output is 0
and vice versa.
Write the code that...
Write a program that prompts the user to login, and displays appropriate messages according to whether the details are correct, partially...