Answer:
3.85 out of 4
Explanation:
As 96.1791 out of 100 gives 96.1791% calculated below:
Percentage formula: (Obtained value/total value)*100.......eq(1)
Putting values:
= (96.1791/100)*100
= 96.1791%
Now finding 96.1791% of 4:
Putting values in eq (1):
96.1791% = (Obtained value/4)*100
96.1791/100= (Obtained value/4) (dividing by 100 on both sides)
0.961791 = (Obtained value/4)
4* 0.961791 = Obtained value (multiplying 4 on both sides)
3.847164 = Obtained value
Then 96.1791% of 4 will be equal to: 0.961791 * 4 = 3.847164
Rounding off the answer to 2 decimal places:
=3.85 (As the digit on 3rd decimal place is greater than 5)
Solution :
function tickets(user_tickets){
var num_tickets;
if (user_tickets < 5) {
num_tickets = 1;
return ('num_tickets: '+ num_tickets);
}
else {
num_tickets = user_tickets;
return('num_tickets: '+ num_tickets);
}
}
// Testing the tickets function
// With user_tickets = 3, 5, 8, and 1
console.log(tickets(3));
console.log(tickets(5));
console.log(tickets(8));
console.log(tickets(1));
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
double num;
// read discriminant
cin>>num;
// calculate square of the input
double result=num*num;
// print the square number
cout<<result<<endl;
return 0;
}
Explanation:
Declare a variable "num".Read the value of "num" from keybord.Then calculate square of the input number.Print the square of input number.
Output:
5
25
Answer:
B
Explanation:
This question demonstrates the concept of method overloading
Method overloading means having different versions of the same method. In this case the method mystery() has three versions. The compiler is able to determine which method to call by their different parameters
The first implementation of mystery requires an array of integers as parameter
The second implementation requires an int variable
The third implementation requires a String
The Method call mystery(6 * 8) will output B because 6*8 evaluates to an integer which is the expected argument.
Answer:
Yes, it is.
Explanation:
Yes it will surely achieve the goal. When there is no license for user, then he/she will not access the dashboard.