Answer:
R's share = 306
Explanation:
Sum of ratio = 1/3 + 1/2 + 1/5
LCM = 30
Sum of ratio = (10 + 15 + 6) / 30 = 31 /30
Profit to be shared = 1581
P = 1/3 ; Q = 1/2 ; R = 1/5
Share of R :
(Total profit / sum of ratio) * R ratio
[1581 / (31/30)] * 1/5
(1581 / 1 * 30/31) * 1/5
51 * 30 * 1/5
51 * 6 = 306
Answer:
Algorithm:
1. Declare an integer variable N.
2. Read the value N from user.
3.While(N):
3.1 find r=N%10;
3.2 print r in new line.
3.3 Update N as N=N/10.
4.end program.
Implementation in C++.
// header
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variable
int N;
cout<<"Enter an Integer:";
cin>>N;
// find the digits of number
while(N)
{
// last digit
int r=N%10;
// print last digit
cout<<r<<endl;
// update the number
N=N/10;
}
return 0;
}
Output:
Enter an Integer:329
9
2
3
First addition, then division
Answer:
select style_name,br.name as brewery,count(beer_id) as Num
from beerdb.beers be
inner join beerdb.styles st
on be.style_id = st.style_id
join beerdb.breweries br on
be.brewery_id = br.brewery_id
group by style_name , br.name
having count(beer_id)>=10
order by style_name, num desc
Explanation:
The item that would be most likely to keep in a database would be the payroll records. The other items such as address book, financial statements and sales reports would not necessarily be placed in a database.
The answer would be letter A.