Answer:
if(goodsSold>500000){
bonus = 10000;
}
Explanation:
A complete Java program that prompts user to enter value for goodsSold is given below:
<em>import java.util.Scanner;</em>
<em>public class num14 {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Enter goods Sold: ");</em>
<em> int goodsSold = in.nextInt();</em>
<em> int bonus =0;</em>
<em> if(goodsSold>500000){</em>
<em> bonus=10000;</em>
<em> }</em>
<em> System.out.println("You bonus for "+goodsSold+" is "+bonus);</em>
<em> }</em>
<em>}</em>
Answer:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df = pd.read_excel('coalpublic2013.xlsx')
sorted_by_production = df.sort_values(['Production'], ascending=False).head(10)
sorted_by_production['Production'].head(10).plot(kind="bar")
plt.show()
Explanation:
The python program plot a bar chart of the top ten productions in the excel worksheet. The excel file is read in as a pandas dataframe, sorted in descending order and the first ten of the dataframe is plotted as a bar plot.
Answer:
Following are the program in the Python Programming Language:
def sort_by_product(products): #define function
products.sort(key=lambda x: x[4] * x[1]) #solution is here
return products #return products
#set list type variable
product = [
[1, 2, 9, 1, 1, 2],
[1, 7, 9, 9, 7, 2],
[1, 1, 9, 5, 2, 2],
[1, 5, 9, 4, 6, 2],
]
sort_by_product(product) #call function
print(product) #print result
Explanation:
Here, we define function "sort_by_product" and pass an argument inside it.
- inside the function we sort the list and writr the following solution in it.
- we return the value of products
Then, we set the list type variable 'product' then, call the function.
Answer:
E-business model.
Explanation:
E-business model is a strategy that outlines how an organization produces, provides and yields Online revenues.
The e-business model is the path that a firm requires towards becoming a successful online business. There are several catchphrases describing facets of digital business and also there are categories in the business-to-consumer sector, such as service providers, auction sites and perfect-play Online retailers.