Answer:
void DisplayStats(string fName, int num1, double examScore);
Explanation:
Using C++ programming language.
Function headers (signatures) are allowed to be placed on top just before the main method in C++ indicating that the function's definition will be provided down below the main method, thereby allowing you to call the function within the main function.
The requirements of the the question are met. The function signature above indicates that it is void (wont return any value), The name is DisplayStats, and the parameter list are separated by single spaces as required with the correct data types.
Answer:
Explanation: c vecause am pro
Answer: <u>Computer hardware is any physical device used in or with your machine, like for example, a mouse, or a keyboard.</u> Computer software is a collection of programming code installed on your computer's hard drive it can process billions of data and inputs through this.
Hope this helps!
Answer:
#here is code in python.
#main method
def main():
#read the initial position
in_pos=float(input("enter the initial position:"))
#read the initial velocity
in_vel=float(input("enter the initial velocity:"))
#read the acceleration
acc=float(input("enter the acceleration:"))
#read time
time=float(input("enter the time:"))
# final position =x+ut+(at^2)/2
fin_pos=in_pos+(in_vel*time)+(acc*(time**2)/2)
#print the final position
print("final position is: ",fin_pos)
#call the main method
main()
Explanation:
Read the initial position, initial velocity, acceleration and time from user.Then calculate final position as initial position+(initial velocity*time)+ (acceleration*time^2)/2. This equation will give the final position. print the final position.
Output:
enter the initial position:10
enter the initial velocity:20.5
enter the acceleration:5
enter the time:15
final position is: 880.0
Answer:
mkdir homeworks // make a new directory called homeworks.
touch homework_instructions.txt //create a file called homework_instruction
sudo -i // login as root user with password.
chmod u+rwx homework_instructions.txt // allow user access all permissions
chmod go-wx homework_instructions.txt // remove write and execute permissions for group and others if present
chmod go+r homework_instructions.txt // adds read permission to group and others if absent.
grep POINTS homework_instructions.txt | ls -n
Explanation:
The Linux commands above first create a directory and create and save the homework_instructions.txt file in it. The sudo or su command is used to login as a root user to the system to access administrative privileges.
The user permission is configured to read, write and execute the text file while the group and others are only configured to read the file.