Answer:
name = input("Enter name: ")
droids = int(input("How many droids you want to meet? "))
wookies = int(input("How many Wookies you want to meet? "))
print(name + " wants to meet " + str(droids) + " droids, and " + str(wookies) + " Wookies")
Explanation:
*The code is in Python.
Ask the user to enter the name, number of the droids and number of the Wookies
Print the name, number of the droids, and number of the Wookies
Note that while getting the input for the droids and wookies, you need to typecast the input the int (Since the values are int). Also, to print these variables, you need to typecast them as string in that format.
A command you would use to perform a reverse lookup of the IP address 10.0.0.3 on a Linux system: dig -x 10.0.0.3.
<h3>What is a Linux command?</h3>
A Linux command can be defined as a software program that is designed and developed to run on the command line, in order to enable an administrator (end user) of a Linux network perform both basic and advanced tasks by only entering a line of text.
<h3>What is IP address?</h3>
IP address is an abbreviation for Internet protocol address and it can be defined as a unique set of numbers that are assigned to a computer, website or other network devices, in order to successfully differentiate them from one another in an active network system.
In Computer Networking, a command which an administrator (end user) would use to perform a reverse lookup of the IP address 10.0.0.3 on a Linux system is dig -x 10.0.0.3.
Read more on Linux commands here: brainly.com/question/25480553
#SPJ1
The Exhaust stroke.
The exhaust stroke is the final stroke of the four-stroke cycle engine. It occurs when the stroke valve is open and the intake valve is closed as can be seen in the picture above. The piston in this stage moves upwards from BDC to TDC. The exhaust valve opens other moving parts like the wheel which pushes the piston back to TDC. This action emits the spent air-fuel mixture through the exhaust valve.
Answer:
The code is designed using C++ with comments
Explanation:
#include<bits/stdc++.h>
using namespace std;
int main(){
int pay, hours; //declaring hourly pay rate and number of hours worked
cout<<"Enter hourly pay rate: "<<endl; //taking user input
cin>>pay;
cout<<"Enter hours worked: "<<endl; //taking user input
cin>>hours;
int gross;
if (hours<=40){
gross=hours*pay; //calculating gross pay
}
else if (hours>40){
gross=40*pay+(hours-40)*1.5*pay; //calculating gross pay for overtime
}
int withholding, netpay;
//calculation of withholding..
if (gross>1000){
withholding=(gross*28)/100;
}
else if (gross>600 && gross<=1000){
withholding=(gross*21)/100;
}
else if (gross<=600){
withholding=(gross*10)/100;
}
netpay=gross-withholding; //calculation of netpay
cout<<"Gross pay is $"<<gross<<endl; //output
cout<<"Net pay is $"<<netpay<<endl; //output
return 0;
}
Answer:
There is a distinction between where the script exists, given by __file__, and the current working directory (usually the place from which the script was invoked), given by os.getcwd(). It is not entirely clear from the question wording which one was intended, although they are often the same.