COMPUTER SCIENCE HHW PSD

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

COMPUTER SCIENCE

HOLIDAY HOMEWORK

NAME: ANISH MANNA


CLASS: XII
SECTION: H
SCHOOL NAME: ADITYA ACADEMY SECONDARY

Q) Write a program that reads a string and checks whether it is a


palindrome or not.
Solution)
a)PROGRAM:-

b)OUTPUT
Q)Program to sort a list using Bubble Sort
Solution)
a)PROGRAM
b)OUTPUT

Q) Write a program that prompts for a phone number of 10 digits


and two dashes, with dashes after the area code and the next 3
numbers. For example, 017-555-1212 is a legal input.
Display, if the phone number entered, is a valid format or not and
display if the phone number is valid or not.
Solution)
a) PROGRAM

b) OUTPUT
Q) Write a function that takes the amount in dollars and dollar to
rupee conversion price, it then returns the amount converted to
rupees.
Solution)
a) PROGRAM
b) OUTPUT
Q) Write a function that takes two numbers and returns the number
that has minimum one’s digit.
Solution)
a) PROGRAM
b) OUTPUT

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy