Control Statements Assignment | Homework Help Websites

CIS 36A :: LAB 3 – Control Statements

Don't use plagiarized sources. Get Your Assignment on
Control Statements Assignment | Homework Help Websites
Just from $13/Page
Order Now

 

Student Name:

Instructions:

  1. Make a copy of assignment template. Go to File => Make a copy (or download as a Word file.)
  2. Complete definitions and attach Snipping Photos where appropriate
  3. Place your name in the Title of each Assignment
    1. For Example: CIS 36A- Assignment 1 – Basic Concepts – Irfan O.
  4. Use the book or do online research to find answers.
  5. Write your answers using a different font color. Find your own unique color.
  6. Write answers in your own words. DO NOT COPY & PASTE from anywhere.
  7. Submission: When done, go to File -> Download as -> Microsoft Word and then upload the file to Canvas.

Task 1: Definitions & Concepts

Instructions: Answer the questions below.

  1. Keywords: To you best knowledge, describe below words:
    1. in =>
    2. Break =>
    3. While =>
  2. List Java’s selection statements:
    =>
  3. What is a definite loop?
    =>

professional writing services near me

  1. What is an infinite loop? How would you break one?
    =>
  2. What is the difference between for loop and while loop?
    =>
  3. When is a good time to use a do-while loop instead of a while loop?
    =>
  4. Explain the difference between a using a break and a continue in a loop?
    =>

Task 2: Understanding Programming

Instructions: Answer each question below. Try to understand and explain the code. Do not put an IDE code screenshot.

  1. Show the general if – else if – else ladder.
    =>
  2. What is the difference between 5, ‘5’,”5”?
    =>
  3. Given
    if(x < y)
    if(y > 100) {
    if(!done) x = z;
    else y = z;
    }
    else System.out.println(“error”); // what if?
    To what if does the last else associate?
    =>
  4. Show the for statement for a loop that counts from 2000 to 100 by -4.
    =>
  5. Is the following fragment valid? Why or why not?
    for(int i = 0; i < num; i++)
    sum += i;
    count = i;
    =>
  6. What does the following fragment print?
    for(int i = 0; i < 10; i++)
    {
    out.print(i + “”);
    if(i%2 == 0) continue;
    System.out.println();
    }
    =>

Task 3: Programming Exercises

Instructions: Use any IDE to write and execute below exercises from the book chapter 3. Attach Snipping photos of your source code and execution of the code in the console. Make sure to create separate files for each exercise.
Sample screenshot:

Chapter Examples: Follow the lectures to do below programs with the instructor.

  1. Day 1: Kbln, Guess, Guess2, Compare, Compare2, Compares3, Ladder, SwitchDemo, GPACalculator, SqrRoot (Attached the screenshot of at least 3).
  2. Day 2: DecrFor, MultipleLoopVars, ForTest, Empty, Empty2, ForVar, WhileDemo, Power, DWDemoe, Guess4, BreakDemo, Break2, Break3, ContDemo, FindFact, NestedDemo1, NestedDEmo2, NestedDemo3 (Attached the screenshot of at least 3).
  3. Write one self-created loop example program.

TRY THIS

  1. TRY THIS 3-1 – Page 87 – Do not submit this
  2. TRY THIS 3-2 – Page 99 – Do not submit this
  3. TRY THIS 3-3 – Page 110 – Only Submit output of this version

Chapter Exercises: Do the following chapter exercises.

  • Exercise 1: Write a program that reads characters from the keyboard until a Qis received. Have the program count the number of ‘A’ Report the total at the end of the program.
  • Exercise 15:
  • Exercise 16:
  • Exercise 17:
  • Exercise 18:
  • Exercise 20:

Extra Credit:

  • Exercise 19:
  • Exercise 21:
  • Exercise 22:

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Choose Us

Quality Papers

At Myhomeworkwriters.com, we always aim at 100% customer satisfaction. As such, we never compromise o the quality of our homework services. Our homework helpers ensure that they craft each paper carefully to match the requirements of the instruction form.

Professional Academic Writers

With Myhomeworkwriters.com, every student is guaranteed high-quality, professionally written papers. We ensure that we hire individuals with high academic qualifications who can maintain our quality policy. These writers undergo further training to sharpen their writing skills, making them more competent in writing academic papers.

Affordable Prices

Our company maintains a fair pricing system for all academic writing services to ensure affordability. Our pricing system generates quotations based on the properties of individual papers.

On-Time delivery

My Homework Writers guarantees all students of swift delivery of papers. We understand that time is an essential factor in the academic world. Therefore, we ensure that we deliver the paper on or before the agreed date to give students ample time for reviewing.

100% Originality

Myhomeworkwriters.com maintains a zero-plagiarism policy in all papers. As such, My Homework Writers professional academic writers ensure that they use the students’ instructions to deliver plagiarism-free papers. We are very keen on avoiding any chance of similarities with previous papers.

Customer Support 24/7

Our customer support works around the clock to provide students with assistance or guidance at any time of the day. Students can always communicate with us through our live chat system or our email and receive instant responses. Feel free to contact us via the Chat window or support email: support@myhomeworkwriters.com.

Try it now!

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Homework Writing Services

My Homework Writers holds a reputation for being a platform that provides high-quality homework writing services. All you need to do is provide us with all the necessary requirements of the paper and wait for quality results.

Essays

Essay Writing Services

At My Homework Writers, we have highly qualified academic gurus who will offer great assistance towards completing your essays. Our homework writing service providers are well-versed with all the aspects of developing high-quality and relevant essays.

Admissions

Admission and Business Papers

With Myhomeworkwriters.com, we will help you secure a position at your desired institution. Our essay writing services include the crafting of admissions papers. We will still help you climb your career ladder by helping you write the official papers that will help you secure a job. We will guide you on how to write an outstanding portfolio or resume.

Editing

Editing and Proofreading

Myhomeworkwriters.com has a professional editorial team that will help you organize your paper, paraphrase it, and eliminate any possible mistakes. Also, we will help you check on plagiarism to ensure that your final paper posses quality and originality.

Coursework

Technical papers

My Homework Writers harbors professional academic writers from diverse academic disciplines. As such, we can develop homework writing services in all academic areas. The simplicity or complexity of the paper does not affect the quality of homework writing services.