Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem-1. You are going to write a program to simulate an alarm clock. differen

ID: 3909871 • Letter: P

Question

Problem-1. You are going to write a program to simulate an alarm clock. different alarms. To set each alarm, the user enters the hour, the minute, and if it is AM orPM alarm is set, the user can turn it on, or off, which the user can see in the display as "A1 on" and/or "A2 on" if alarms are on, or "A1 off" and/or "A2 off" if alarms are off The user can set up to two 1. (5 points) All programs/algorithms have input(s) and an output(s). List the inputs) and outputfs) for the program that would help you simulate Problem-1 2. (5 points) Use C Language notation to represent the input(s) and output(s) listed in 1. Be sure to use the right data types and create meaningful and correct C language identifiers. Input(s)

Explanation / Answer

1 Inputs:
       hour for A1
       minute for A1
       AM/PM   for A1
       alarmON/alarmOFF for A1

       hour for A2
       minute for A2
       AM/PM   for A2
       alarmON/alarmOFF for A2


Outputs:
       A1 off /A1 on
       A2 off/A2 on

2 . As per the C language:

     Input for hour -   (Identifier: hr : type :int)
     Input for minute -   (Identifier: min : type :int)
     Input for AM/PM -   (Identifier: time : type : char[2])
     Input for ON/OFF -   (Identifier: status : type : char[2])


     Output A1 off/ A1 on - (Identifier: displayStatus : type : char[10])
   

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote