Create a digital clock

Assignment Help Computer Engineering
Reference no: EM132194618

Question :

Write a C++ program that will create a digital clock. The clock should print out a heading for hours, min and sec and should appear in the middle of the screen.

Arrange the timing of the clock so that the hours, min and sec track as close as possible to a real clock. The clock will work on classical time with distinction of Am and PM.

What this means is that the clock displays from 0 hours to 12 noon as AM and then converts to 1 to 12 PM hour time. So the output would look like

HOURS MIN SEC

2 24 47 PM

The program must contain a "while" loop, a "for" loop and "do while" loop. Hint use the "cls" comand , the #include<string> command and use of "if" statements to decide between Am and PM.

You will need to use the command system("cls") to clear the screen.

Reference no: EM132194618

Questions Cloud

What is the minimum speed that the man must have : A man is going to complete a full vertical loop around a post to which a swing is attached. The swing's rope mass is negligible.
What is the speed of the ball at the lowest point : The figure shows a thin rod, of length L = 1.90 m and negligible mass, that can pivot about one end to rotate in a vertical circle. A heavy ball of mass.
Give the code and screenshot of the code working for user : Give the code and the screenshot of the code working for user input and displayed output printed to the command line by the program.
What is the magnitude of its acceleration in the water : A hailstone traveling with a velocity of 43 meters/second comes to a virtual stop 0.28 seconds after hitting water. What is the magnitude of its acceleration.
Create a digital clock : Write a program that will create a digital clock. The clock should print out a heading for hours, min and sec and should appear in the middle of the screen.
How the round robin scheduling algorithm works : Topic 1: Discuss how the round robin scheduling algorithm works. Topic 2: Discuss the strength and weakness of each of the CPU scheduling algorithm.
With what speed v will it hit the ground : Two buckets of mass m1 = 17.1 kg and m2 = 12.3 kg are attached to the ends of a massless rope, which passes over a pulley with a mass of mp = 9.33 kg.
Create a dynamic allocated array of int : Write a C program that creates a dynamic allocated array of int. The size of the array N is entered by the user.
Explain the relationship between object and class : a) Explain the relationship between object and class. b) Explain the difference between abstract class and interface.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd