Write pseudocode for the 5 (five) problems for full credit. There are two ways to complete this quiz. One is to simply download the instructions file (docx) below and do your pseudocode code editing right into the instruction document. Then upload the edited Word file.The other is to type a separate document with your pseudocode and submit the newly created document. Make sure your pseudocode includes the problem descriptions. You get to pick your own poison. You DO NOT need to create C++ source code files for this assignment. Remember pseudocode is intended to be a description/roadmap for your program. Keep it simple but include enough information to define your plan. It is not supposed to look like code. Use the template sections. Purpose: Don’t just repeat the problem description. Think in terms of HOW you are going to do the job. Input: What values (if any) do you need from the user. You can also include known/defined values such as PI. Processing: Describe what processing/calculations need to be done Output: Results to be output. Text and/or calculated values.

Pseudocode for Problem 1: Fibonacci Sequence

Problem Description:
Write a program that generates the Fibonacci sequence up to a given number.

Pseudocode:
1. Ask the user to enter a number, n.
2. Initialize two variables, a and b, with values 0 and 1 respectively.
3. Print the value of a.
4. Print the value of b.
5. Repeat steps 6 to 9 n-2 times.
6. Calculate the sum of a and b and store it in a new variable, c.
7. Print the value of c.
8. Update the value of a to be the current value of b.
9. Update the value of b to be the current value of c.
10. End the program.

Pseudocode for Problem 2: Prime Numbers

Problem Description:
Write a program that determines if a given number is prime or not.

Pseudocode:
1. Ask the user to enter a number, n.
2. Initialize a boolean variable, isPrime, and set it to true.
3. If n is less than or equal to 1, set isPrime to false.
4. Iterate through numbers i from 2 to the square root of n.
5. If n is divisible by i, set isPrime to false and break out of the loop.
6. If isPrime is still true, print “n is a prime number.”
7. Otherwise, print “n is not a prime number.”
8. End the program.

Pseudocode for Problem 3: Factorial

Problem Description:
Write a program that calculates the factorial of a given number.

Pseudocode:
1. Ask the user to enter a number, n.
2. If n is less than 0, print “Factorial is not defined for negative numbers.”
3. If n is equal to 0, print “Factorial of 0 is 1.”
4. If n is greater than 0, initialize a variable, factorial, with value 1.
5. Iterate through numbers i from 1 to n.
6. Multiply factorial by i and store the result back in factorial.
7. Print “Factorial of n is factorial.”
8. End the program.

Pseudocode for Problem 4: Palindrome

Problem Description:
Write a program that checks if a given string is a palindrome.

Pseudocode:
1. Ask the user to enter a string, str.
2. Initialize two variables, start and end, with values 0 and length(str)-1 respectively.
3. While start is less than end, do steps 4 to 6.
4. If the characters at indices start and end in str are not equal, print “str is not a palindrome” and break out of the loop.
5. Increment start by 1.
6. Decrement end by 1.
7. If start is greater than or equal to end, print “str is a palindrome.”
8. End the program.

Pseudocode for Problem 5: Area of a Circle

Problem Description:
Write a program that calculates the area of a circle given its radius.

Pseudocode:
1. Ask the user to enter the radius of the circle, r.
2. Calculate the area of the circle using the formula: area = PI * r^2.
3. Print “The area of the circle is area.”
4. End the program.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer