Google assistant on my lava iris 820 smartphone in the following way.
Explanation:
Google Assistant on your smartphone, here’s a complete ready to use guide
How to download and install Google Assistant
- Most of the Android smartphones today come with Google Assistant pre installed and if it is not there.You can download it from Google Play Store.Apple iphone/ipad user installed it fro the App store.
How to set up google assistant .
-
Turn the Google Assistant on or off
- On your Android phone or tablet, touch and hold the Home button or say "OK Google" or "Hey Google."
- In the bottom right, tap .
- In the top right, tap your Profile picture or initial Settings. ...
- Under "Assistant devices," select your phone or tablet.
- Turn Google Assistant on or off.
Link your voice
To use Voice Match, you must link a Google Account to the Google Assistant device. If you have multiple Google Accounts, you can choose which account you want to use.
Open the Google Home app Google Home.
At the bottom, tap Home Home and then Settings Settings.
Under “Google Assistant services,” tap More settings.
Tap Assistant and then Voice Match and then Add devices.
Follow the steps.
When you link your voice and use the Google Assistant in US English, the Google Assistant will automatically acknowledge when you ask it for something politely.
Answer:
System.out.println("October is the "+monthSales[9]+"th Month of the year");
A complete Java program is given in the explanation section.
Explanation:
public class num4 {
public static void main(String[] args) {
int [] monthSales = new int[12];
int i=0;
for(i = 0; i<monthSales.length; i++){
monthSales[i] = i+1;
}
System.out.println("October is the "+monthSales[9]+"th Month of the year");
}
}
In the code above, we created an an array of size 12 with this statement
int [] monthSales = new int[12];
using the for loop, the numbers 0-12 are added to the array corresponding to the twelve months in the year
The statement System.out.println("October is the "+monthSales[9]+"th Month of the year"); outputs the corresponding number to October
Implement the simulation of a biased 6-sided die which takes the values 1,2,3,4,5,6 with probabilities 1/8,1/12,1/8,1/12,1/12,1/
hjlf
Answer:
see explaination
Explanation:
import numpy as np
import matplotlib.pyplot as plt
a = [1, 2, 3, 4, 5, 6]
prob = [1.0/8.0, 1.0/12.0, 1.0/8.0, 1.0/12.0, 1.0/12.0, 1.0/2.0]
smls = 1000000
rolls = list(np.random.choice(a, smls, p=prob))
counts = [rolls.count(i) for i in a]
prob_exper = [float(counts[i])/1000000.0 for i in range(6)]
print("\nProbabilities from experiment : \n\n", prob_exper, end = "\n\n")
plt.hist(rolls)
plt.title("Histogram with counts")
plt.show()
check attachment output and histogram