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

  Compute the synchronize control

compute the synchronize control for each amount of automatic dislocation of the rotor plus the equivalent synchronize torque.

  What are the binary encodings of the message hello world

Using the EBCDIC, Acyl, and Unicode character code sets, what are the binary encodings of the message Hello, world?

  How would you respond in a way that islegal or moral

You are a software engineer working at a large publicly-traded corporation, where a colleague invents a new kind of compiler.

  Find at least three shopping cart systems

Find at least three shopping cart systems that you feel would be easy to use. Create a Web page that reports your findings.

  Credit card transaction processing occurs on all web servers

Credit card transaction processing occurs on all web servers, Apache Web Server running the e-commerce Web application server

  Why all applications and servers in same data center

Write him a brief note that explains why keeping all applications and security servers in the same data center could compromise the organization

  Describe the process by which software recognizes keystrokes

Describe the process by which software recognizes keystrokes. What are the additive colors? What are the subtractive colors?

  What are the contents of the stack pointer

Suppose that an 8-bit microcontroller has a 16-bit stack pointer and uses a 16-bit register to access the stack from the top.

  The difference between animation and transition effects

When are they appropriate? When is it better not to use them? Can you give me an examples.

  Explain the segments of adoption curve with an example

Explain why the one characteristic is the main driver of the rate of diffusion withan example? Explain the five segments of adoption curve with an example?

  Prompt the user to enter a linear equation of the form

The program should prompt the user to enter a linear equation of the form aY + b = c where a, b, and c are real numbers of type double.

  Write a script that asks the user for two numbers a and b

Write a script that asks the user for two numbers a and b, and then prints all the prime numbers existing between a and b in ascending order.

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