Answer:
Explanation:
#include <iostream>
using namespace std;
double cube(double);
int main()
{
double ci=0;
cout << "Enter avalue :";
cin >> ci;
cout << "Cube of " << ci << "is =" << cube(ci) << endl;
return 0;
}
double cube(double i)
{
return(i*i*i);
}
Answer: Intranet
Explanation:
The options include:
A. extranet.
B) social network.
C) intranet.
D) e-market.
A corporate or government network that uses Internet tools, such as Web browsers, and Internet protocols is referred to as intranet.
Social networks are social media sites that are used by people which allows them to stay connected with one another.
E-market is a form of marketing whereby goods and services are promoted or advertised through the use of the internet.
Therefore, the answer to he above question is intranet.
Answer:
TAX_RATE = 0.20
STANDART_DEDUCTION = 10000.0
DEPENDENT_DEDUCTION = 3000.0
gross_income = float(input("Enter the gross income: "))
number_of_dependents = int(input("Enter the number of dependents: "))
income = gross_income - STANDART_DEDUCTION - (DEPENDENT_DEDUCTION * number_of_dependents)
tax = income * TAX_RATE
print ("The income tax is $" + str(round(tax, 2)))
Explanation:
Define the <em>constants</em>
Ask user to enter the <em>gross income</em> and <em>number of dependents</em>
Calculate the <em>income</em> using formula (income = gross_income - STANDART_DEDUCTION - (DEPENDENT_DEDUCTION * number_of_dependents))
Calculate the <em>tax</em>
Print the <em>tax</em>
<em />
round(number, number of digits) -> This is the general usage of the <em>round</em> function in Python.
Since we need <u>two digits of precision</u>, we need to modify the program as str(<u>round(incomeTax, 2</u>)).
Answer:
Hi how are you doing today Jasmine