Answer:
1. Get the number
2. Declare a variable to store the sum and set it to 0
3. Repeat the next two steps till the number is not 0
4. Get the rightmost digit of the number with help of remainder ‘%’ operator by dividing it with 10 and add it to sum.
5. Divide the number by 10 with help of ‘/’ operator
6. Print or return the sum
# include<iostream>
using namespace std;
/* Function to get sum of digits */
class gfg
{
public:
int getSum(float n)
{
float sum = 0 ;
while (n != 0)
{
sum = sum + n % 10;
n = n/10;
}
return sum;
}
};
//driver code
int main()
{
gfg g;
float n = 687;
cout<< g.getSum(n);
return 0;
}
Explanation:
Answer: (D) Database design follows the twelve principles proffered by Dr. Edgar F. Codd
Explanation:
The relational database is basically based on the relational model of the data which is proposed by the Dr Edger F. codd and he mainly introduced the twelve basics principle of the database designing in the database system. He also contributed various valuable principle in the computer science.
The twelve principle are:
- The first rule of the relational database is the information rule as it represented all data or information
- Independence of the integrity
- Viewing various updating rule
- Logically treatment of various NULL value
- Independence of the physical database
- Distribution in-dependency
- Various delete, insert and update rules
- The overall logical description of the database are basically stored in the database directory
- There is no subversion rule
- There is guarantee accessing rule
- Proper rule for data language
- The relational database level actions
Answer:
c. all of these choices
Explanation:
all of them are correct. i took a quiz on this like 2 days ago and that was the answer.
<em>hope this helpsssssssss!!!!!!!!!!! :):):)</em>
Answer:
Central Processing Unit
Explanation:
Principle part of any digital computer system
WAECUP stands for waste, accident, error, crime, and unethical practices.
Assuming that the components are the same as what's included in the acronym, that should be your answer.
Hope this helps!