Answer:
- #include <stdio.h>
- int main()
- {
- const double piVal = 3.14159;
- double sphereVolume = 0.0;
- double sphereRadius = 0.0;
-
- sphereRadius = 1.0;
- sphereVolume = 4.0/ 3.0 * piVal * sphereRadius * sphereRadius * sphereRadius;
-
-
- printf("Sphere volume: %lf\n", sphereVolume);
- return 0;
- }
Explanation:
Firstly we can identify the formula to calculate volume of sphere which is
Volume = 4/3
With this formula in mind, we can apply this formula to calculate the volume of sphere in Line 10. This is important to perform floating-point division 4.0/3.0 to ensure the resulting value is a floating value as well. Since we have been given piVal and sphereRadius, we can just multiply the result of floating-point division with piVal and sphereRadius and get the sphereVolume value.
At last, display the sphere volume using printf method (Line 13).
Answer:
Option 2: Variable names can not begin with a number.
Explanation:
As given Mark and John named a variable as 24_hour_mart while writing a program in python.
While it is forbidden to name a variable starting with any digit, only alphabets (capital and smaller) and underscore can be the first letter of the variable name.
Moreover, by considering the other options given:
- Variable name can include the underscore (_) between the words. It is used instead of spaces that are not allowed.
- There is no upper limit for variable length, it can be of any reasonable length and more than 10 characters say 11 or 12 are reasonable.
- There is no lower limit for variable length, it can be any reasonable length , even it can be of 1 character.
Variables named in python language must not be the keywords as they are reserved for other purposes.
i hope it will help you!
Answer: Option(d) is correct
Explanation:
Data warehouse is the storage that holds collected information and data for making acknowledged decision through analyzing the data. Data present in data warehouse is as per subject which contains history and sources of data for understanding and perceiving it.
- Other options are incorrect because data is not coded in various forms,retrieved for certain period of time, real-time update and arrangement in hierarchical form.
- Thus, the correct option is option(d).
Answer:
Explanation:
<u>Ways to Avoid Scope Creep</u>
Scope creep is what happens when changes are made to the scope of a project without any control. Changes happen to projects all the time without been notify ontime as a project manager. It is that very rare project that ends up delivering exactly what was asked for on the first day. However, without there being some control over the changes, a project manager has little chance of keeping on top of the work and managing the project effectively.
Generally, scope creep is when new requirements are added after the project has commence. These changes are not properly reviewed. The project team is expected to deliver them with the same resources and in the same time as the original scope.
On the other hand, as a project manager you could end up with a project with lots of approved, considered changes, that never ends because every time you think you have finished a new requirement arrives in your inbox and you have to make more changes.
The following are five ways to keep control of your project.
<em>1-Document the Requirements</em>
<em>2-Set up Change Control Processes</em>
<em>3-Create a Clear Project Schedule</em>
<em>4-Verify the Scope with the Stakeholders</em>
<em>5-Engage the Project Team</em>