0% found this document useful (0 votes)
4 views4 pages

Palindrome and Salary Tax Analysis

This document summarizes 4 questions from Assignment #01. Question 1 asks to find the smallest and largest numbers from 5 user-input numbers. Question 2 checks if a user-input string is a palindrome. Question 3 calculates tax amounts and net salaries for 6 salary levels based on tax rates. Question 4 checks if a user-input character is contained within a user-input string.

Uploaded by

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

Palindrome and Salary Tax Analysis

This document summarizes 4 questions from Assignment #01. Question 1 asks to find the smallest and largest numbers from 5 user-input numbers. Question 2 checks if a user-input string is a palindrome. Question 3 calculates tax amounts and net salaries for 6 salary levels based on tax rates. Question 4 checks if a user-input character is contained within a user-input string.

Uploaded by

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

Report Of Assignment # 01

Q 1= IN QUESTION ONE THE USER GIVE 5 NUMBERS AS INPUT AND ASK THAT PRINT THE SMALLEST
NUMBER AS WELL AS THE LARGEST NUMBER FROM ALL OF THEM. SO WE FIND THE SMALLEST NUMBER
FROM THE LARGEST NUMBERS AND GIVE OUTPUT TO THE USER.

Q 2= IN THIS QUESTION WE HAVE GIVEN A PALINGDROM WHICH IS A WORD, NUMBER, PHRASE OR


OTHER SEQUENCE OF CHARACTERS WHICH READS THE SAME BACKWARD AS FORWARD. SO IN THIS
QUESTION WE HAVE A STRING SO WE HAVE TO FIND OUT WHATEVER THE STRING IS PALINGDROM OR
NOT.
Q 3= IN QUESTION NO 3 THE USER GIVE US THE 6 TYPES OF SALARIES AND ASK TO FIND THE TAX PER
EACH PERSON E.G IF THE SALARY INCREASES THE TAX INCREASES PER RATIO. IF THE PERSON MEET THE
REQUIREMENTS AS PER GOVERNMENT THEN HE PAY TAX AS HE HAVE. AND AFTER THAT ALSO FIND THE
NET SALARY WHICH WILL PAY TO EMPLOYEE AFTER DEDUCTION OF TAX.
Q 4= IN THIS QUESTION WE HAVE A STRING THAT WE TAKE AS A INPUT AND THEN WE TAKE
CHARACTER AS A INPUT FROM USER. SO WE PRINT OUT THE CHARACTER WHICH WERE GIVEN THAT IS
OCCURRED IN STRING OR NOT THAT IS PROVIDED BY THE USER. E.G OF THAT IS SCHOOL IS STRING AND
O IS A CHARACTER WHICH IS USED IN PROGRAM AS FOR PRINT.

You might also like