Prolog program for weather

  % problem 5 – Implement get_weather, which first prints a message: % ‘Enter hot, sun, rain, snow or stop.’ Then it starts a loop, % in which it prints the prompt and reads the user’s input. % If the user enters stop the loop ends. Else, if the % user entered one of the […]

Read More

Operating system questions and solutions 2

1. Write a program named <print_num.c>, which should take one command-line argument called maxnum. Print_num should fork a child process, which prints the odd integers up to maxnum (inclusive), with space separating the numbers. At the same time, the parent process should print the even integers from 0 to maxnum (inclusive), with space separating the […]

Read More

Sample History Questions and solutions.

This was my history exam in college and l’ve attached my solutions to some of the problems. SHORT IDS: ANSWER 10, AT LEAST 4 SENTENCES EACH 1. Abolitionist Movement The Abolitionist Movement was started in the United States in the 18th century to end slavery and emancipate slaves. The presidential victory of Abraham Lincoln who […]

Read More