Skip to content

nagapraneethk/Smart-phone-Replica

Repository files navigation

SMART PHONE REPLICA

INDEX:

INTRODUCTION:

The purpose of this project is to develop a software application in C language that replicates the functionality of a basic mobile phone. The Phone Replica application will be able to add contacts, play games, perform the function of a simple calculator and currency convertor, and display a calendar. It also can install and delete apps from the App Store. This replica has a feature to change the password, wallpaper of the lock screen, font color, and display color through the settings. It also has a file manager comprising folders, sub-folders, and files. File manager provides users to create new folders, subfolders, and files and it also has access to delete and edit them.

ABSTRACT:

The "Phone Replica" project aims to develop a software application that replicates the basic functions of a mobile phone. This report presents the development of a Phone Replica application using C programming language. The main focus of the project is to provide users with a virtual phone experience that closely mimics real-life phone interactions. To ensure user-friendliness, the interface will be intuitive and straightforward, making it easy for users to navigate and use the application. The application uses the menu-driven interface to allow the user to select the desired action. Overall, the Phone Replica project will offer a fun and educational experience, while also providing a practical solution for those who need a virtual phone experience.

METHODOLOGY:

● Problem statement: A brief description of the problem addressed by the project, which is the need to provide a more affordable alternative to expensive smartphones while offering a similar user experience.

● Programming language: C language was used to write the program.

● Testing: The method used to test the program is user acceptance testing.

● Lock Screen Display:

image

Home Screen:

image

Settings:

image

Change Password:

It allows the user to create a new password. File handling is used to check and store the password entered by the user. String comparison is used to verify the password entered by the user. For security purposes when the user enters the password it will display in * format and it is done through \b in 'printf' function.

image

Set Wallpaper:

It allows the user to change the lock screen wallpaper. File handling plays a major part in accessing the changes in the lock screen wallpaper.

Before:

image

After:

image

Font Color:

This function is used to change the font color of the mobile(entire program). system(“color ##”) is used to change the desired font color.

Before:

image

After:

image

Display Color:

This setting allows the user to access the desired display color. system(“color ##”) is used to change the display color.

Before:

image

After:

image

APPS IN PHONE REPLICA

App List:

image

Rock Paper Scissors:

The game is between the user and the computer. We have used a while loop for playing multiple times depending upon the user. The library time.h is used to pick random options for the computer. File handling is used to display the ASCII art whenever required in the game. Nested switch cases are used to give the result of the game between the user and the computer.

image

Calculator:

It provides a simple calculation of two numbers. We have used a while loop for operating multiple times depending upon the user. Nested switch cases are used to display the mathematical operations.

image

Calendar:

It displays the calendar of a particular month of the year 2023. We have used a while loop for displaying multiple times. Switch cases are used to store some data in particular variables for which the user wants to display the particular month.

image image

Currency Converter:

It allows users to convert the currency of one country to another country. While loop is used for operating the converter multiple times depending upon the user. Nested switch cases are used to display the required amount to be converted into the required currency.

image image

Tic Tac Toe:

The game is between two users. Whenever any player forms a straight line in any direction in the game then the player is the winner of the game. We used a while loop for playing multiple times depending on the user. We used data structures to reserve a particular place in the game for User 1 and User 2. With the help of data structures and a for loop, the grid system in the game is printed. If, else ifs are used to display the result of the game between user 1 and user 2.

image image image image

Adventure Game:

This game is played only by a user. It is a game in which the user searches for a treasure by solving the riddles. We have used a while loop for playing multiple times depending upon the user. The library time.h is used to pick random riddles in each level of the game. File handling is used to display the ASCII art whenever required in the game. Switch cases are used to display the riddles, and hints, and store the result of the riddle. In switch cases, 'if' conditions and ‘string comparison’ are used to compare the user-entered answer and the correct answer for the riddle.

image

This game goes on until a player solves 5 riddles or fails to solve a riddle. If a player is successful in solving a riddle, then the player will get the treasure.

Final:

image

If a player fails to solve a riddle, then the player will die.

image

App Store:

It allows users to install and delete apps. Swapping of elements in the array is used to install and delete apps. The sleeping function is used to display the install page.

image image

Install Apps:

image image

Delete Apps:

image image

File Manager:

It allows users to create, edit, and remove folders and text files. system() function from library <stdlib.h> is used to show directories and also for clear screen. chdir() [from <unistd.h> library] is used to change directories. File handling also plays a vital role in creating and editing a text file.

image

Opening a folder:

image image

File Manager Options:

image

Folder Management:

image
Creating New Folder:
image image
Deleting a Folder:
image

Txt File Management Options:

image
Creating a new txt file:
image image
Editing a txt file:
image image
Deleting a txt file:
image

CONCLUSION:

The Phone Replica software application was successfully developed in C language and tested to ensure its functionality and reliability. The application provides a user-friendly interface for the user to interact with the application. The application provides the basic functionality of a mobile phone, making it a useful tool for learning and practicing programming in C language. The development of this application is an excellent opportunity to demonstrate the use of C programming language in developing practical applications and to provide a basic understanding of the functionality of a smartphone.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages