Question: Please help me Task 3: Prime or not prime Write a C program that takes an integer as input and checks whether it is a

Please help me

Task 3: Prime or not prime Write a C program that takes an integer as input and checks whether it is a prime number or not. Your program should output "Prime" if the input is a prime number, and "Not prime" otherwise.

Task 4: Age Calculator Write a C program that prompts the user to enter their name and date of birth, and then outputs a message saying "Hello, [Name]! You are 18 years, 5 months and 10 days old." Your program should use variables to store the name and age entered by the user. Sample Input: Name: Jon Date of Birth: 1990/01/01 Sample Output (15 Feb, 2023): Hello, Jon! You are 33 years, 1 months, and 14 days old.

Task 5: Circle area Write a C program that calculates the area and circumference of a circle with a given radius. Your program should use a constant value of 3.14159 for pi. Your program should prompt the user to enter the radius, and then output the area and circumference of the circle.

Task 6: Unix Commands Using the Unix commands, you have learned in class, create the following file structure:

Create a directory called "unix_hw" in your home directory.

Within "unix_hw", create a file called "helloworld.c" and a directory called "output".

Compile your helloworld.c file into output folder. This should create an output executable file in output folder.

Run the helloworld program from output folder.

Within "output", create a file called "notes.txt".

Move "notes.txt" to "unix_hw" (using relative path)

Remove "notes.txt" from output folder. (using absolute path)

Remove "output" (using absolute path)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!