homeworkstudyhelp

Our Services

Get 15% Discount on your First Order

Currently stuck on how to tackle this project. I am new to c++ and…

Currently stuck on how to tackle this project. I am new to c++ and I am not quite sure where to start. Can I get some help on how to structure and organize this project? I’ve included all details below. Thanks.

 

Directions

Develop an object-oriented programming (OOP) application to create two clocks that display simultaneously and allow for user input using secure and efficient C++ code.

  1. Review the Chada Tech Clocks Functional Requirements, located in the Supporting Materials section.
  2. Review the following flowchart, as it is a graphical representation of the logic you will use in relation to your application’s sequence of functions. A text version of this flowchart is available: Project One Flowchart Text Version.

Title: Clocks Flowchart

 

Top of chart begins: “Start Program” (Terminator)

 

  1. “Read User Input.” (Process)
  2. “Display Menu” (Process)
    1. “Add Hour?” (Decision)
    2. “Add Hour” (Process)
    3. “Add Minute?” (Decision)
    4. “Add Minute” (Process)
    5. “Add Second?” (Decision)
    6. “Add Second” (Process)
    7. “Display Time HH:MM:SS” (Process)
    8. “Exit Program?” (Decision)
      1. If “No” 
        1. “Read User Input” (Process)
        2. “Display Menu” (Process)
      2. If “Yes”
        1. “Read User Input” (Process)
        2. “End Program” (Terminator)

 

Note: This assignment represents a simulation of clock functionality. It does not need to display your local time zone, and it does not need to run in real time or tick.

  1. Your code should be properly modularized and written in functions so that your main() has the least amount of code.
  2. Before you begin coding, remember that you must demonstrate industry standard best practices in all your code to ensure clarity, consistency, and efficiency. This includes:
    1. Inserting in-line comments to denote your changes and to briefly describe the functionality of the code
    2. Using appropriate variable, parameter, and other naming conventions throughout your code
  3. When your solution is finished, zip your project including all components (CPP, H, and any other files used).

Functions that need to be included:

  • function to format numbers as two digits
  • function that repeats the ‘*’ to use in formatting your programs output
  • function that outputs time using 24-hour time format. 
  • function that outputs time using 12-hour time format
  • function that prints out the menu illustrated in the project and functional requirements documentation. 
  • function that processes user input from the menu choices in the user interface. 
  • function that displays BOTH 12- and 24-hour time formats on the interface at the same time. 
  • main function (main.cpp) to control your program.
  • function to add a second to the clock’s time
  • function to add a minute to the clock’s time. 
  • function to add an hour to the clock’s time

 

 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

In most countries in Europe, a comma is used to separate an…

In most countries in Europe, a comma is used to separate an integral part of a number from the decimal part. For example, 2 euros and 10 cents is written 2,10. English speaking countries use a decimal point and would write the same amount as 2.10. Create a code that

I have the following question for help writing a C++ program…

I have the following question for help writing a C++ program allowing users to play the game Wordle. I have played it after searching and I am still having trouble with this assignment. Any help will be appreciated. Thank You.     If you are not familiar with Wordle, search

1.8.1: Determining the size of a vector.   Assign currentSize with…

1.8.1: Determining the size of a vector.   Assign currentSize with the size of the sensorReadings vector.   #include <iostream>#include <vector>using namespace std; int main() {  vector<int> sensorReadings(4);  int currentSize;  int input;  cin >> input;   sensorReadings.resize(input);     /* Your solution goes here  */       cout <<

To push all general purpose registers onto the stack, which…

To push all general purpose registers onto the stack, which instruction would you use? To push the EFLAGS register onto the stack, which instruction would you use? To pop the stack into the EFLAGS register, which instruction would you use? If you could not use the PUSH instruction, what two

#define _CRT_SECURE_NO_WARNINGS  #include    …

#define _CRT_SECURE_NO_WARNINGS  #include <stdio.h>    #define MAX_FACTORIALS 10000 #define NUM_FACTS 100    struct FactorialResults  {        int results[MAX_FACTORIALS];   int numResults;  };  int factorial(const int n)  {        return (n <= n) ? n * factorial(n – 1) : 1;  }  int reduceFactorial(const int n)  {        return n / n;  }  void computeFactorials(struct FactorialResults results, int numFactorials)  {        int

I need help please. I don’t know what to do. Code:   #include…

I need help please. I don’t know what to do. Code:   #include <iostream>using namespace std; int main() {   // initialize Boolean array to store the status of the treasure chests   bool chest[5] = { false };    // ask user to input which chest they found   int foundChest;   cout&

3.16 LAB: Natural merge sort   The merge sort algorithm…

3.16 LAB: Natural merge sort   The merge sort algorithm recursively divides the array in half until an array with one element is reached. A variant of merge sort, called natural merge sort, instead finds already-sorted runs of elements and merges the runs together. Ex: The unsorted array below has five

When you use the Scaffold-DbContext command, which parameters are…

When you use the Scaffold-DbContext command, which parameters are required?   A)the -Connection and -OutputDir parameters   B)the -Context and -DataAnnotation parameters   C)the -Context and -Provider parameters   D)the -Connection and -Provider parameters   Given an entity named Products that has a Description property, and given a combo box