Comprehensive Project Report on A super advanced calculator.
2. CALCULATOR
Working Of The Program :
• The program starts by presenting the user with a menu of arithmetic operations:
addition, subtraction, multiplication, division, or a random mixture of all.
• After the user makes a selection, the program generates random numbers based on
the chosen operation.
• It then prompts the user to solve the arithmetic problem and
provides feedback on whether the answer is correct or incorrect.
3. Logic Of Program :
• The program follows a structured approach to handle each arithmetic operation
by using loops (if/else if).
• It utilizes functions to generate random numbers 2 to 5 in the range of 1 to 100
by using random module of numpy library.
• It uses options to use operators to operate between numbers such as ‘Addition’ ,
‘Substraction’, ‘Multiplication’ , ‘Division’ and Random mixture of all four.
• We used proper operands to match the operator requirements i.e. two operands
for substraction and division where no restriction for addition and
multiplication.
4. Logic Of Program :
• It take user input for choice of operator in the range of 1 to 5, based on choice it
perform the operation and saved the response nature whether right/wrong.
• It provide feedback for both right and wrong answer and update the number of
response by a user.
Choose The
operator (+,-,*,/)
Process the
operation
Compare it and
provide feedback
5. Logic Of Program :
• We have used various loops to implement same code for different users and
store their responses. Take input
for new user
Process
according to
choice
Provide the
feedback
Store the
performanc
e
6. Output Of Program :
• We Store and display the progress of an user in both topic-wise and total
exercise form.
• Along with numerical data, we have used graphical representation using
matplot.
Positive Negative
5
2
Progress report
Questions
Key Value
Total Exercise 7
Total correct
response
5
Total Incorrect
response
2
7. STRING
Working Of The Program :
• extract_letters_from_string(input_string):
• This function takes an input string and extracts only the alphabetic characters from it, converting
them to lowercase.
• summarize_letters(letters):
• This function takes a list of letters and counts the frequency of each letter, returning a dictionary
where keys are unique letters and values are their frequencies.
• has_all_alphabets(letters):
• This function checks if the input list of letters contains all the letters of the alphabet (a to z).
8. Working Of The Program :
• present_descriptive_statistics(letters):
• This function presents descriptive statistics of the input letters.
• It creates a dataframe to visualize the frequency of each letter using seaborn.
• It prints the total number of letters, total unique letters, unique letters, most frequent letter(s),
and least frequent letter(s).
• sort_letters(letters, reverse=False):
• This function sorts the input list of letters in either ascending or descending order and
removes duplicates.
• generate_anagrams(letters):
• This function generates all possible anagrams of the input string.
9. Logic Of Program :
• The program first prompts the user to input an arbitrary string.
• It then extracts the letters from the input string, summarizes their frequency, checks if all alphabet
letters are present, and presents descriptive statistics.
• It sorts the letters in ascending and descending order and generates anagrams of the input string.
• The code employs error handling to handle cases where no letters are found in the input string.
Input The
String
Extract The
Letters
Perform
various
Operations
10. Output Of Program :
• The program displays the frequency summary of letters, whether all alphabet letters are
present, and presents descriptive statistics in tabular form.
• It visualizes the frequency of each letter using a bar plot.
• The sorted letters and generated anagrams are printed to the console.
Character Frequency
a 2
b 1
c 1
11. SURVEY
Working Of The Program :
• The program begins by prompting the user to input ratings for 20 products, ensuring that
the entered ratings fall within the range of 1 to 5.
• Upon successful input, the program calculates the frequency of each rating using
NumPy's np.unique function and presents this information in a tabular format,
displaying the frequency of each rating.
12. Working Of The Program :
• Subsequently, the program computes various statistical measures, including the minimum,
maximum, mean, median, mode, variance, and standard deviation of the ratings, utilizing
functions from the statistics module.
• Furthermore, the program visualizes the frequency distribution of ratings by generating a bar
chart using Matplotlib, illustrating the distribution of ratings across the 1 to 5 scale.
13. Output Of Program :
• The program displays the frequency of each rating in tabular format.
• It presents various statistical measures of the ratings, including the minimum,
maximum, mean, median, mode, variance, and standard deviation.
• It visualizes the frequency distribution of ratings using a bar chart.
Ratings Frequnecy
5 STAR 3
4 STAR 2
3 STAR 8
2 STAR 4
1 STAR 3