Professional Documents
Culture Documents
Read All The Questions Carefully Before Writing Code. It Will Help You To Solve Maximum Numbers of Problems
Read All The Questions Carefully Before Writing Code. It Will Help You To Solve Maximum Numbers of Problems
Read all the questions carefully before writing code. It will help you to solve
maximum numbers of problems.
1. Write a program to display the string Campus Boi in the first line and then
display A Book Sharing Application in the next line
Sample Output :
Campus Boi
A Book Sharing Application
2. One of your friends installs the Campus Boi app from the Google Play Store
and then he wants to share a book and there are three options like “Gift” ,
“Giving Back” and “Paid” . Then he selects an option.
Now write a program to take user input to select any option and display
selected item comments.
If input is 1 then selected item comments is “ The Book is For Gift”
If input is 2 then selected item comments is “The Book is For 1
Semester”
If input is 3 then selected item comments is “The Book is For Sell”
Sample Input:
2
Sample Output: The Book is For 1 Semester
3. To create an account in Campus Boi you need to enter your mobile number
for automatic verification. Your input number must have 11 digits. If you
input 11 digits then there will show “ Generating OTP ” otherwise there will
show an error “Invalid Number” .
Now write a program that takes a phone number as input and displays either
Invalid phone number or Generating OTP according to the condition .
Borrow 2 times
Old Book 1 times
New Book 3 times