Answer:
An activity of a function that is performed for some specific business reason.
Explanation:
A set of actions to achieve a particular task is called process.
<u>Definition</u>
Process is the actions happening while something is happening or being done.
<u>Example </u>
1. Process is the steps taken by someone to clean a kitchen.
2. Collection of action items to be decided on by government committees.
Answer:
10000000000
Explanation:
While a typical byte only goes up to 8 digits, you can expand past that by having each integer past the initial 8 just double the amount from before
Answer:
import java.util.Scanner;
public class salary{
public static void main(String []args){
System.out.println("Enter the monthly pay: ");
Scanner scn = new Scanner(System.in);
double salary = scn.nextDouble();
double result = salary-(salary*0.15*0.035*0.0575*0.0275*0.05)-75;
System.out.println("The net salary is: "+result);
}
}
Explanation:
first import the Scanner class for taking the input from user.
then, create the main function and print the message for enter the salary from user. scn.nextDouble() store the value enter by user into the result.
after that, calculate the net salary by calculating the deduction amount and then subtract with salary.
finally, print the result on the screen.
Answer:
Yes it is possible for the following cases:-
- When the queue is full.
- When the queue is empty.
Explanation:
When the queue is full the the front and the rear references in the circular array implementation are equal because after inserting an element in the queue we increase the rear pointer.So when inserting the last element the rear pointer will be increased and it will become equal to front pointer.
When the queue is empty the front and rear pointer are equal.We remove an element from queue by deleting the element at front pointer decreasing the front pointer when there is only one element and we are deleting that element front and rear pointer will become equal after deleting that element.
import random
rock,paper,scissors = 1,2,3
choice = int(input("Please choose 1 2 or 3: "))
computer = random.randint(1,3)
player_won = False
draw = False
if choice == computer:
draw = True
elif choice == 1 and computer == 3:
player_won = True
elif choice == 2 and computer == 1:
player_won = True
elif choice == 3 and computer == 2:
player_won = True
if player_won:
print("You won!")
elif not player_won and not draw:
print("The computer won!")
else:
print("It's a draw!")
First, I recommend importing at the beginning of your program. Also, you can combine all your same datatype variables in one line. You also need to cast your user choice to an integer so you can compare it with the computer's choice. I wrote the if, elif, and else statements using a boolean variable. I simply wrote all the possibilities that would result in the player winning and this would result in the player_won variable being true. If this is the case, we print to the console, "You won!"