0% found this document useful (0 votes)
11 views1 page

Programming Assignment: Grades & Anagrams

The document outlines an individual assignment consisting of multiple programming tasks, including creating a program to calculate grades based on user input, generating nested loops for specific outputs, and determining if two strings are anagrams. Additionally, it requires an explanation of recursion in programming, detailing the components of a recursive function and the behavior of the call stack. The assignment emphasizes both coding and conceptual understanding.

Uploaded by

sxmonachan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Programming Assignment: Grades & Anagrams

The document outlines an individual assignment consisting of multiple programming tasks, including creating a program to calculate grades based on user input, generating nested loops for specific outputs, and determining if two strings are anagrams. Additionally, it requires an explanation of recursion in programming, detailing the components of a recursive function and the behavior of the call stack. The assignment emphasizes both coding and conceptual understanding.

Uploaded by

sxmonachan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Individual Assignment

1.​ Create a program that:

●​ Takes a numeric score as input from the user


●​ Validates the input
●​ Calculates the grade based on the score
●​ Return the result
●​ Create a flowchart for the problem
●​ Use your grading system

-​ Write a complete code


-​ Create a flowchart

2.​ Create a nested for loops produce the loops produce the
following output.

3.​ Create a nested for loops produce the loops produce the
following output.

4.​ Write a program that determines if two given strings are anagrams of each other. Two
strings are anagrams if they contain the same characters with the same frequencies, in
any order. The program should return True if they are anagrams, otherwise return False.

5.​ Explain how recursion works in programming. What are the essential components of a
recursive function, and how does the call stack behave during recursive calls?

You might also like