Branching, also refer to as conditional branching, is a type of flow control statements in software development which is used for decision making. That is, it provides p

NO AI

NO PLAGIARISM

NO REFERENCES

NO CHAT GPT

Minimum 50 words per response:(What are your thoughts)

1) Branching, also refer to as conditional branching, is a type of flow control statements in software development which is used for decision making. That is, it provides programming a construct to conditionally change the flow of execution in a block of code.

Our lesson this week showed us how to use if statement, if-else statement, and if-elseif statement to dictate which code should be executed. Later in our software development pursue, you will encounter additional conditional branching construct available in different programming languages that can add to your tool. For example, Java and C# languages provide switch case statement enables us to select which one of a multiple block of codes to execute by matching pattern of an expression:

Switch (expression)

{

               Case expression_value1:

Statement 1

               Break;

               Case expression_value2:

Statement 2

               Break;

Case expression_value3:

Statement 3

               Break;

               Default:

2) When constructing this discount for twenty percent to people who are sixty-five years or older it is important to understand the branching construct. Being able to acknowledge that this is a code that will need to distinguish between someone who is sixty-five and below. If I was to write this code I would start by stating the hotel rate. After I have written the hotel rate I would include a transaction to ask for the users age. Once the user has input their age I would write the transaction to allow someone who is over the sixty-five year age requirement to get the twenty percent discount. If they are not sixty-five years of age the code would would output the regular hotel rate, however if the user is over sixty-five the output would add in the discount then give the hotel rate. The code that would need to be written would need to look something like this:

  1. HotelRate = 180
  2. UserAge = Get next input
  3. UserAge > 65
  4. (True) HotelRate – 20
  5. (False) HotelRate
  6. (True) Put “Your rate: ” to output
  7. (False) Put HotelRate to output

    Branching, also refer to as conditional branching, is a type of flow control statements in software development which is used for decision making. That is, it provides p

    We offer the best custom writing paper services. We have answered this question before and we can also do it for you.

    GET STARTED TODAY AND GET A 20% DISCOUNT coupon code DISC20

    We offer the bestcustom writing paper services. We have done this question before, we can also do it for you.

    Why Choose Us

    • 100% non-plagiarized Papers
    • 24/7 /365 Service Available
    • Affordable Prices
    • Any Paper, Urgency, and Subject
    • Will complete your papers in 6 hours
    • On-time Delivery
    • Money-back and Privacy guarantees
    • Unlimited Amendments upon request
    • Satisfaction guarantee

    How it Works

    • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
    • Fill in your paper’s requirements in the "PAPER DETAILS" section.
    • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
    • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
    • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.