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

  How many computers will be attached to the network

E Norm, Inc. has two sites in Pittsburgh that are four miles apart. How many computers will be attached to the network?

  Makes a recursive call to put a queen on the next row

The function will know it hit the base case because the position (or the column) is out of bounds (NOT because you generated all possible permutations).

  Cloud computing management

As we selecting Google Docs as the SaaS provider Proper actions are to be upheld when handling Google Docs servers as the software service providers. This is a challenge posed from several grounds, starting from its vulnerability to hacking and ea..

  Write a short paper on privacy and future direction

Write a short paper based on the week 8 discussion about: "Privacy and future direction" in Network security that affirms your position using at least 1 source.

  For the given circuit derive the state table

For the following circuit, derive the state table. Use the assignments.

  Clarify security mechanisms available for a database

Clarify security mechanisms available for a database

  Explain the purpose of the schottky diode

Sketch a modified ECL circuit in which a Schottky diode is incorporated in the collector portion of the circuit. - Explain the purpose of the Schottky diode.

  Security issues while users processing the database

Describe the security issues which may be encountered when the multiple users process the database concurrently.

  Write a c function similar to the partition process

Write a C function, similar to the partition process in QuickSort, that will rearrange the integers so that either all the integers in evennumbered positions.

  Define natural disaster management

Throughout the history of emergency management in the United States, priorities set for government emergency management agencies

  What control mechanisms at your organization

What control mechanisms at your organization are (or should be) the most useful or important for the success of DHL?

  Question1 use big-theta notation to classify traditional

question1. use big-theta notation to classify traditional grade school algorithms for addition and development. that is

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