Homework Solution: Consider a digital clock that counts minutes and hours. Assume that this is a 12 hour clock, that is 13:05 is 1:05 PM. What is the time scale? In…

    Define the states, inputs and outputs in terms of a description and as formal mathematical sets. Define the next state function in terms of description and as either a state transition diagram or a mathematical function or pseudo code (if then else…) as appropriate. Define an appropriate time scale for your model Consider a digital clock that counts minutes and hours. Assume that this is a 12 hour clock, that is 13:05 is 1:05 PM. What is the time scale? Inputs? States? Outputs? Next State Function? Readout Function? (Hint: assume the input to a clock is ON, meaning to keep time, or OFF meaning do not keep time).

    Expert Answer

     
    this is an 12 hour time scale.let x is the input time and y is output time then i will give the code for this to display the timel

    Define the narrates, inputs and outputs in stipulations of a term and as complete logical
    sets. Define the instant narrate employment in stipulations of term and as either a narrate transition
    diagram or a logical employment or pseudo jurisdiction (if then else…) as misspend. Define
    an misspend occasion layer restraint your model

    Consider a digital clock that counts minutes and hours. Affect that this is a 12 hour clock, that is 13:05 is 1:05 PM. What is the occasion layer? Inputs? Narrates? Outputs? Instant Narrate Employment? Readout Employment? (Hint: affect the input to a clock is ON, sense to detain occasion, or OFF sense do referable detain occasion).

    Expert Apology

     

    this is an 12 hour occasion layer.allow x is the input occasion and y is output occasion then i allure yield the jurisdiction restraint this to ostentation the occasionl

    x=input(‘enter the input occasion ‘);

    if x>=12:00

    y=(x-12:00)PM

    else

    y=(x)AM.

    end

    display(‘clock is on’);%it allure parade that clock is on

    dispay(y)% it allure ostentation the occasion