Answer:
d. if (radius > 0) System.out.println(radius * radius * 3.14159);
Explanation:
The positive values are those values that are greater than 0(zero).0 is considered to be nonnegative number it is neither positive nor negative and for a zero radius the area will be 0.As we know the are of the circle is π*radius*radius, and π is 3.14159.So the correct answer matching to this condition is option d.
Which checks if the radius is greater than 0 then find the radius and print it.
Northbridge and Southbridge components.
Answer:
Probably a sports game
Explanation:
A role-playing means acting it out, so you need to explain the life with a structured narrative.
An adventure game needs lots of background, so you need to fill that in with a structured narrative.
A sports game revolves solely around sports, so you only need to know how to play the game and/or sport, so no structured narrative is needed.
An fps game needs a structured narrative in that it is similar to an adventure game and needs background.
Let me know if I was right! Hope this helped. :)
Answer:
#include <iostream>
using namespace std;
int main() {
int currentYear = 2020;
int myCurrentAge = 23;
int myNewAge=myCurrentAge+(2050-currentYear);
cout << "My Current Age is " << myCurrentAge << endl;
cout << "I will be " << myNewAge << " in 2050." << endl;
}
Explanation:
- Initialize the currentYear with 2020 and myCurrentAge with 23.
- Add myCurrentAge with the the result of (2015 - currentYear) and assign this result to myNewAge variable.
- Finally display my current age and after that display the new age in 2050.
Output:
My Current Age is 23
I will be 53 in 2050.