The smarter way
to do assignments.

Please note that this is just a preview of a school assignment posted on our website by one of our clients. If you need assistance with this question too, please click on the Order button at the bottom of the page to get started.

Programming Principle
In this  assignment,  you will  be analyzing sequence,  selection,  and loop,  the relational comparison operators,  precedence when combining AND  and OR  operators,  and the case structure.
Instructions:
Part I. 1. 2. 3. 4. 5. Design a program  in which,  from  a date  entered by  keyboard with the format DAY,  MONTH,  YEAR,  the date of  the following day  is  obtained. Write a program  that  asks  the user  to enter  two numbers.  If  the first  number entered is  greater  than the second number,  the program  must  print  the message “The first  number  is  the  largest”,  otherwise the  program  must  print  the message “The first  number  is  the  smallest”.  Consider  the case that  both numbers  are equal  and print  the  corresponding message. Write a program  that  simulates  the normal  operation of  a modern elevator  with 25 floors  (levels)  and that  has  two buttons:  UP  and DOWN,  except  on the lower floor  (level),  that  there  is  only  a call  button to  UP  and the  last  floor  (level)  that only  exists  DOWN  button. Write a program  that  selects  the arithmetic  operation to be executed between two numbers  depending on the value of  a variable called selectionOp. Write an algorithm  that  displays  the next  double message: Enter  a month (1 for  January,  2 for  February,….…) Enter  a day  of  the month
The algorithm  accepts  and stores  a number  in the “month”  variable  in response to the  first  question and accepts  and stores  a number  in the “day”  variable in response to the second question.  If  the  month entered is  not  between 1 and 12 inclusive,  an information message should be displayed  to  the user  warning that the number  entered is  not  valid as  a month;  in the same  way  we proceed with the number  that  represents  the day  of  the month if  it  is  not  in the range between 1 and 31.   Modify  the  algorithm  to alert  the  user  to no  enter  numbers  with decimals.