Showing posts with label Seconds To Hours. Show all posts
Showing posts with label Seconds To Hours. Show all posts

Thursday, April 23, 2020

Seconds to Hours,Minutes and Seconds Converter


Create and design a program that will ask the user to input a number in seconds and then, the program will convert its days, hours, minutes, and seconds equivalent and
display the result on the screen.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/



Program Listing


print()
print("\tSeconds to Hours,Minutes and Seconds Converter");
print()
time = float(input('\tHow many seconds : '))
day = time // (24 * 3600)
time = time % (24 * 3600)
hour = time // 3600
time %= 3600
minutes = time // 60
time %= 60
seconds = time
print();
print("\t===== DISPLAY RESULT =====");
print();
print("\tDays:%d Hours:%d Minutes: %d Seconds :%d" % (day, hour, minutes, seconds))
print();
print("\tEND OF PROGRAM");
print("\n\n");

Saturday, November 9, 2019

Seconds to Hours,Minutes and Seconds Converter in PERL

Create and design a program that will ask the user to give the number in seconds and then the program will convert its hours, minutes and seconds equivalent and display the result on the screen using Perl as our programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?id=100009212511791

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.

Sample Program Output


Program Listing

# temp.pl
# Author    :  Jake Rodriguez Pomperada,MAED-IT
# Date        :  November 9, 2019  Saturday    9:00 AM
# Location  :  Bacolod City, Negros Occidental
# Tools        :  Perl  5 and Visual Studio Code Version 1.37.0
# Websites :  www.jakerpomperada.com   and www.jakerpomperada.blogspot.com
# Email       :  jakerpomperada@gmail.com

print "\n";
printf("\tSeconds to Hours,Minutes and Seconds Converter in PERL");
printf("\n\n");
printf("\tHow many seconds : ");
chomp($time =<>);

# Conversion starts here 

$hours = int($time / 3600);
$minutes = int(($time % 3600) / 60);
$seconds = int(($time % 3600) % 60);

printf("\n");
printf("\t===== DISPLAY RESULTS =====");
printf("\n\n");
printf("\tHour(s)   : %d ",$hours);
printf("\n");
printf("\tMinute(s) : %d ",$minutes);
printf("\n");
printf("\tSecond(s) : %d ",$seconds);
print "\n\n";
print "\tEnd of Program";
print "\n";







Thursday, October 10, 2019

Seconds to Hours, Minutes and Seconds Converter Pseudocode and Flowchart

Programming Problem

Write pseudocode and flowchart to convert a given integer (in seconds) to hours, minutes and seconds.


Pseudocode

Start
    Declare Integer sec, h, m, s
     Output "Seconds to Hours, Minutes and Seconds Converter"
    Output "Give value in seconds"
    Input sec
    Assign h = (sec/3600)
    Assign m = (sec -(3600*h))/60
    Assign s = (sec -(3600*h)-(m*60))
    Output "The equivalent is " & h & " Hour " & m & " Minutes " &  s &" Seconds."
Stop



Flowchart  of Seconds to Hours, Minutes and Seconds Converter 

Thursday, August 15, 2019

Seconds to Hours,Minutes and Seconds Using Pointers Using Go

Create and design a program that will ask the user to give the number in seconds and then the program will convert its hours, minutes and seconds equivalent and display the result on the screen using pointers.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Sample Program Output



Program Listing

/* time_pointers.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT
   Date     : August 8, 2019  Thursday  4:14 PM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Emails   : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
 */


package main

import "fmt"

func main(){

var time,hours int32
var minutes,seconds int32

fmt.Print("\n");
fmt.Print("\tSeconds to Hours,Minutes and Seconds Using Pointers");
fmt.Print("\n\n");
fmt.Print("\tHow Many Days Worked? : ");
fmt.Scanln(&time);

check_time := &time

/* Conversion starts here */

hours = *check_time / 3600;
minutes = (*check_time % 3600) / 60;
seconds = ((*check_time % 3600) % 60);

fmt.Print("\n\n");
fmt.Print("\t===== DISPLAY RESULTS =====");
fmt.Print("\n\n");
fmt.Print("\tHour(s)   : ");
fmt.Printf("%d",hours);
fmt.Print("\n");
fmt.Print("\tMinute(s) : ");
fmt.Printf("%d",minutes);
fmt.Print("\n");
fmt.Print("\tSecond(s) : ");
fmt.Printf("%d",seconds);
fmt.Print("\n\n");
fmt.Print("\tEnd of Program");
fmt.Print("\n");
}



Tuesday, August 13, 2019

Seconds to Hours,Minutes and Seconds Converter in Ruby


Create and design a program that will ask the user to give the number in seconds and then the program will convert its hours, minutes and seconds equivalent and display the result on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Sample Program Output


Program Listing


# time.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
# Date     : May 17, 2019   Friday  9:19 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Website  : http://www.jakerpomperada.com
# Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
puts "\n"
print "\tSeconds to Hours,Minutes and Seconds Converter";
puts "\n\n"
print "\tHow many seconds?  ";
time = gets;
time = time.to_i;

# Conversion starts here 

hours = time / 3600;
minutes = (time % 3600) / 60;
seconds = ((time % 3600) % 60);

print "\n";
print "\t===== DISPLAY RESULTS =====";
print "\n\n";
print("\tHour(s)   : #{hours}");
print("\n");
print("\tMinute(s) : #{minutes}");
print("\n");
print("\tSecond(s) : #{seconds}");
print "\n\n";
print "\tEND OF PROGRAM";
print "\n\n";
  





Saturday, October 15, 2016

Seconds To Hours, Minutes and Seconds in C#

A very simple program that I wrote using C# as my programming language that will ask the user to give time in seconds and then our program will converted the given time in hours, minutes and seconds.

Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com. 

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com. 

My mobile number here in the Philippines is 09173084360.




Sample Program Output

Program Listing

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace time_conversion
{
    class time_check
    {
        static void Main(string[] args)
        {
            long v,sec,hr,min; 

            Console.Write("Time Converter Converter");
            Console.Write("\n\n");
            Console.Write("Enter Time in Seconds   : ");
            sec = Convert.ToInt32(Console.ReadLine());

            hr=sec/3600; 
            v=sec%3600; 
            min=v/60; 
            sec=v%60; 

            Console.Write("\n\n");
            Console.Write("===== DISPLAY REPORT =====");
            Console.Write("\n\n");
            Console.WriteLine(" Time in hour:min:sec is: {0}:{1}:{2}." ,hr,min,sec);
            Console.Write("\n\n");
            Console.Write("End of Program");
            Console.ReadLine();
        }
    }
}