Skip to main content

Printing Name Using Symbols

 This is simple program of printing name using symbols. It just look cool to see.

In this program we have simply written print function for different letters. Depending on our input it will take one by one letter and print that letter in the form of symbols.

This is just for fun.

   

#Author : SPPU CSE GURU name = input("Enter your name: ") print("\n") print("<><><><><><><><><><><><><><><><><><><><><>\n")

for letter in name: letter = letter.upper() if (letter == "A"): print("..@@@@@@..\n..@....@..\n..@@@@@@..\n..@....@..\n..@....@..\n\n") elif (letter == "B"): print("..@@@@@@..\n..@....@..\n..@@@@@...\n..@....@..\n..@@@@@@..\n\n") elif (letter == "C"): print("..@@@@@@..\n..@.......\n..@.......\n..@.......\n..@@@@@@..\n\n") elif (letter == "D"): print("..@@@@@...\n..@....@..\n..@....@..\n..@....@..\n..@@@@@...\n\n") elif (letter == "E"): print("..@@@@@@..\n..@.......\n..@@@@@...\n..@.......\n..@@@@@@..\n\n") elif (letter == "F"): print("..@@@@@@..\n..@.......\n..@@@@@...\n..@.......\n..@.......\n\n") elif (letter == "G"): print("..@@@@@@..\n..@.......\n..@@@@@...\n..@....@..\n..@@@@@...\n\n") elif (letter == "H"): print("..@....@..\n..@....@..\n..@@@@@@..\n..@....@..\n..@....@..\n\n") elif (letter == "I"): print("..@@@@@@..\n....@@....\n....@@....\n....@@....\n..@@@@@@..\n\n") elif (letter == "J"): print("..@@@@@@..\n....@@....\n....@@....\n..@.@@....\n..@@@@....\n\n") elif (letter == "K"): print("..@...@...\n..@..@....\n..@@......\n..@..@....\n..@...@...\n\n") elif (letter == "L"): print("..@.......\n..@.......\n..@.......\n..@.......\n..@@@@@@..\n\n") elif (letter == "M"): print("..@....@..\n..@@..@@..\n..@.@@.@..\n..@....@..\n..@....@..\n\n") elif (letter == "N"): print("..@....@..\n..@@...@..\n..@.@..@..\n..@..@.@..\n..@...@@..\n\n") elif (letter == "O"): print("..@@@@@@..\n..@....@..\n..@....@..\n..@....@..\n..@@@@@@..\n\n") elif (letter == "P"): print("..@@@@@@..\n..@....@..\n..@@@@@@..\n..@.......\n..@.......\n\n") elif (letter == "Q"): print("..@@@@@@..\n..@....@..\n..@.@..@..\n..@..@.@..\n..@@@@@@..\n\n") elif (letter == "R"): print("..@@@@@@..\n..@....@..\n..@.@@...\n..@...@...\n..@....@..\n\n") elif (letter == "S"): print("..@@@@@@..\n..@.......\n..@@@@@@..\n.......@..\n..@@@@@@..\n\n") elif (letter == "T"): print("..@@@@@@..\n....@@....\n....@@....\n....@@....\n....@@....\n\n") elif (letter == "U"): print("..@....@..\n..@....@..\n..@....@..\n..@....@..\n..@@@@@@..\n\n") elif (letter == "V"): print("..@....@..\n..@....@..\n..@....@..\n...@..@...\n....@@....\n\n") elif (letter == "W"): print("..@....@..\n..@....@..\n..@.@@.@..\n..@@..@@..\n..@....@..\n\n") elif (letter == "X"): print("..@....@..\n...@..@...\n....@@....\n...@..@...\n..@....@..\n\n") elif (letter == "Y"): print("..@....@..\n...@..@...\n....@@....\n....@@....\n....@@....\n\n") elif (letter == "Z"): print("..@@@@@@..\n......@...\n.....@....\n....@.....\n..@@@@@@..\n\n") elif (letter == " "): print("..........\n..........\n..........\n..........\n\n") elif (letter == "."): print("..........\n..........\n....@@....\n....@@....\n..........\n..........\n") print("<><><><><><><><><><><><><><><><><><><><><>")

Comments

Popular posts from this blog

OOP 2

Object Oriented Programming Group A - Practical : 2 Problem Statement :  Develop a program in C++ to create a database of student’s information system containing the following information: Name, Roll number, Class, Division, Date of Birth, Blood group, Contact address, Telephone number, Driving license no. and other. Construct the database with suitable member functions. Make use of constructor, default constructor, copy constructor, destructor, static member functions, friend class, this pointer, inline code and dynamic memory allocation operators-new and delete as well as exception handling. Check Out Code Here  ðŸ‘‡ Code can get updated so also come back later to see if there is any changes. Also if there is any problem with code you can comment below. If you like it, do share with your friends.😊

OOP 3

  Imagine a publishing company which does marketing for book and audio cassette versions. Create a class publication that stores the title (a string) and price (type float) of publications. From this class derive two classes: book which adds a page count (type int) and tape which adds a playing time in minutes (type float). Write a program that instantiates the book and tape class, allows user to enter data and displays the data members. If an exception is caught, replace all the data member values with zero values. The code for above problem is as follows: //@author: SPPU CSE GURU #include <iostream> using namespace std; class Publication { private: string title; float price; public: Publication() //constructor { title=""; price=0.0; } Publication(string title, float price) { this->title=title; ...

3D Cube Transformations

  Group C   Practical 6 b   Problem Statement :     Write C++ program to draw 3-D cube and perform following transformations on it using OpenGL i) Scaling ii) Translation iii) Rotation about an axis (X/Y/Z). Check Out Code Here  ðŸ‘‡ Code can get updated so also come back later to see if there is any changes. Also if there is any problem with code you can comment below. If you like it, do share with your friends.😊