A+ Work



Create your own While-End (or For-End) repetition structure that includes a nested if-then selection structure. You decide the theme. You should provide both the pseudo code and the flowchart of your example. Be sure to provide an overview of what your repetition structure is doing. Provide a walk-through of your code and the values at each iteration of the loop.
CMIS 102 Hands-On Lab
Overview:

This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, analysis, test plan, design (using pseudocode visualization), and implementation with C code.  The example provided uses sequential, repetition statements and nested repetition statements.

Program Description:
This program will calculate the average of 3 exams for 5 students. The program will ask the user to enter 5 student names. For each of the students, the program will ask for 3 exam scores.  The average exam score for each student will be calculated and printed.
Analysis:
I will use sequential and repetition programming statements.

I will define one String to store student name: StudentName.

I will define three Float numbers: Examvalue, Sum, Avg to store exam values the sum of the exams and the average of the exams.

The sum will be calculated by this formula:

 Sum = Sum + Examvalue

For example, if the first value entered was 80.0 and second was 90.0 and the third exam was 100.0:

sum = sum + Examvalue = 0.0 + 80.0

sum = 80.0 + 90.0 = 170.0

sum = 170.0 + 100.0 = 270.0

Avg is then calculated as:

Avg = sum/3.0

For example 270.0/3.0 = 90.0

A nested repetition loop can be used to loop through each of the 5 students and each of the 3 exams:

For (students=0; students <5; students++)

    For (exams=0;exams<3;exams++)

   End For

End For

Sum values will need to be reset for each student to ensure only one student data is used for calculations each time.

      

 Test Plan:

To verify this program is working properly the input values could be used for testing
Learning Exercises for you to try:
What would you change in the design and the code if you wanted to input 10 students and 5 exams?
What is the line of code doing?
char StudentName[100];
What would happen if you moved the Set Sum = 0.0 from inside the for loop to right after the declaration. For example:

CIS 223



 CIS 223 Lab Assignment #9
(Chapter 9)
 Complete the Hands-On Project 9-2, Project 9-3, and Project 9-4 from page 667 to page 674. You should use Microsoft Internet Explorer to test this homework. Google Chrome will not work for the cookie in this homework.
After completing Project 9-2, open the index.htm in a browser. In the username box, type your email address, and then click the Login button. The result.htm page, containing the text “Login successful,” is displayed because this page is specified in the form’s action attribute.
Return to index.htm in your browser, and then shift-refresh or shift-reload the page. Even though you reloaded or refreshed the page using Shift to clear the form, when the page finished loading, the code you created populated the Username field with the username stored in a cookie. Debug your code as necessary until it functions correctly.
Continue to work on Project 9-3.
After completing Project 9-3, open the index.htm in a browser. In the Username box, type your email address, click the Remember me box to check it, and then click the Login button. The result.htm page, containing the text “Login successful,” is displayed. Because you checked the Remember me box, the browser also stored a cookie containing your username.
Return to index.htm in your browser, and then shift-refresh or shift-reload the page. The code you created populated the Username field with the username stored in a cookie. Debug your code as necessary until it functions correctly.
Ensure that the Remember me box is not checked, click Login to open the results.htm page, return to the index.htm page, and then shift-refresh or shift-reload the page. Because you last submitted the form with the “Remember me” box unchecked, the code you created deleted the cookie, and the Username field is blank. Debug your code as necessary until it functions correctly.
Continue to work on Project 9-4.
After completing Project 9-4, make sure you follow the step 8 to step 12 closely to verify that the 2 minutes expiration is applied to the cookie. Debug your code as necessary until it functions correctly.
 Zip all the files in the Project 9-4 folder including .htm files, .js files, and .css files into 1 zip file.
Submit the zip file to the iCampus site.

Reservation



QQQQQQ Below are examples of what your menu’s could look like: Main Menu ************* Welcome to CIT Hotel Management Systems **************************************************** 1) Display Available Rooms 2) Display Guests 3) Process Reservation 4) Process Payment 5) Exit  Reservations Menu ********************** Welcome to Reservations ****************************** 1) New Reservation 2) View Reservation 3) Cancel Reservation 4) Return· Collections i. Arraylist ect.. · Naming standards · Indentation · Exception handling i. Use your own Exception where applicable · Comments – Indicating what methods are supposed to be doing ect. i. Very useful to readers when grading code to know what a programmer was doing when creating a method. · OOP concepts ·Good programming standards · Packages · Save to file i. Reads from file if file exists on startup to load objects into the system. The following are expected to be used in the code · Asks the user to save the current system ·Outstanding Payments 6. Exit the system · Process a payment i. A room becomes available once payment is received ii. Guest is removed from system payment is received · Lecturers get 10% discount on room rate 5. Display Payments · Give option of room i. Check room availability · Get the guest details · By Lecturer or by Student 3. Display all available Rooms 4. Process a new reservation · Display all Reservations 2. Display All current guests · Cancel a Reservation i. A room becomes available once reservation is cancelled ii. Guest is removed from system once reservation cancelled · Add a new reservation i. A reservation will be either from a student or a lecturer ii. Once a reservation is made the room is no longer available ·Object Oriented Programming CIT has long required a Hotel to allow students and overworked lecturers a place to stay late at night. You are required to create a menu driven hotel system to allow management to rent rooms out to clients. The system will control 15 rooms (3 suites, 6 doubles, 6 singles). Each room has a rate per night per person, indicator whether it is in use, max guests and current occupant of room is in use 1. Suite can hold 3 guests a. Rate is 150 pp per night 2. Doubles can hold 2 people a. Rate is 100 pp per night 3. Singles hold 1 person a. Rate is 75 per night Max 27 occupants in hotel per night. The system has the following basic functions: 1. Reservations

A+ Paper


write a 2,000- to 2,500 word term paper. Choose three counseling theories covered in class to provide counseling for the family below. The situation is vague; you are to fill in the details so that you are able to apply the theory. You may modify you scenario slightly for each theory, if needed. Consider the following situation. A woman comes in for counseling. Her husband and daughter were in a car accident. He barely lived but her daughter did not make it. The woman cannot be in the same room with her husband and she finds herself wishing he would die. Develop a counseling plan for the woman and couple for each of the three theories you choose. You will create intermediary goals to help the client reach the ultimate goal. Each intermediate goal must be justified using research to indicate why that specific approach falls in line with the overall theory you are using. Use a minimum of three sources per theory to support why the counseling plan you outlined is the best given the theory you chose. Please see the basic outline for the counseling plan to help you structure your paper. Use a minimum of nine sources, with at least four dated within the past 10 years. Prepare this assignment according to the APA guidelines