Skip to content

sarahnrhlzaa/TimeConversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

⏱️ Time Conversion App (C)

📌 Project Overview

Time Conversion App is a simple application developed using the C programming language.
This application is designed to help users convert time units quickly and accurately without manually calculating conversion formulas.

Time plays an important role in everyday life. Humans use time units such as seconds, minutes, and hours to organize activities efficiently. However, manual time conversion can be time-consuming and prone to errors.
This application simplifies the conversion process and produces accurate results in seconds.

This project is also created as a learning medium for beginners to practice programming logic using the C language.


🎯 Background

The creation of this time conversion application aims to facilitate human needs in daily life.
By using consistent and structured time units, users can manage activities more effectively.

With this application:

  • Users can convert time easily without memorizing formulas
  • Conversion results are fast and accurate
  • It helps students, workers, and anyone who frequently manages time
  • It provides hands-on programming practice for beginners in C

🧩 System Analysis

🔹 Application Description

This program is a Time Conversion Application implemented using the C programming language.
Users can convert time between hours, minutes, and seconds based on their needs.

🔹 Features

The benefits obtained by users when using this application include:

  1. Convert hours to minutes and seconds
  2. Convert minutes to hours and seconds
  3. Convert seconds to hours and minutes

🔐 Login System

Before accessing the conversion feature, users must log in using predefined credentials:

  • Username: user1, user2, user3
  • Password: pass1, pass2, pass3

If the login is successful, the user can proceed to the time conversion menu.
If the login fails, the program will terminate.


⚙️ Algorithm – Time Conversion Program

  1. Input username and password

  2. If login is successful, proceed to the conversion menu
    If login fails, terminate the program

  3. Display:

    • Welcome message
    • Time conversion options
  4. User selects a time unit:

    • Hour
    • Minute
    • Second
  5. If Hour is selected:

    • Input time in hours
    • Choose conversion:
      • Hours → Minutes
        • Formula: Minutes = Hours × 60
      • Hours → Seconds
        • Formula: Seconds = Hours × 3600
    • Display result
  6. If Minute is selected:

    • Input time in minutes
    • Choose conversion:
      • Minutes → Hours
        • Formula: Hours = Minutes ÷ 60
      • Minutes → Seconds
        • Formula: Seconds = Minutes × 60
    • Display result
  7. If Second is selected:

    • Input time in seconds
    • Choose conversion:
      • Seconds → Hours
        • Formula: Hours = Seconds ÷ 3600
      • Seconds → Minutes
        • Formula: Minutes = Seconds ÷ 60
    • Display result
  8. Program ends after showing the final result


🛠️ Technology Used

  • Programming Language: C
  • Compiler: GCC / any standard C compiler

🚀 Purpose of the Project

  • Help users convert time units easily
  • Reduce calculation errors
  • Improve understanding of basic programming concepts
  • Practice logic, conditions, and user input in C

✨ Author

  • Sarah Nurhaliza, Developer
  • Fathurrahman, Developer
  • Justin Nathanael, Developer This project was created as a first programming project to learn and practice the fundamentals of the C programming language.

About

A simple time conversion application built using C programming language. This application converts time units between seconds, minutes, and hours to help users perform fast and accurate calculations while practicing basic programming logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages