[ad_1]
Get college assignment help at uniessay writers – 1- Type a command from the command prompt that will give you a user last login on the network as well as the PC he/she last log on to. 2- On a Windows based platform, write the steps on how to do a sysprep for Windows XP and Windows 7 3- Write down the command to find all users on Active Directory from XP 4- Write down the query to look up a user on Active Directoy and see the user’s property.
A common task that must be done in a loop is to find the maximum and minimum of a sequence of values. The file Temps.java contains a program that reads in a sequence of hourly temperature readings over a 24-hour period. You will be adding code to this program to find the maximum and minimum temperatures. Do the following: 1. Save the file to your directory, open it and see what’s there. Note that a for loop is used since we need a count-controlled loop. Your first task is to add code to find the maximum temperature read in. In general to find the maximum of a sequence of values processed in a loop you need to do two things: You need a variable that will keep track of the maximum of the values processed so far. This variable must be initialized before the loop. There are two standard techniques for initialization: one is to initialize the variable to some value smaller than any possible value being processed; another is to initialize the variable to the first value processed. In either case, after the first value is processed the maximum variable should contain the first value. For the temperature program declare a variable maxTemp to hold the maximum temperature. Initialize it to -1000 (a value less than any legitimate temperature). _ The maximum variable must be updated each time through the loop. This is done by comparing the maximum to the current value being processed. If the current value is larger, then the current value is the new maximum. So, in the temperature program, add an if statement inside the loop to compare the current temperature read in to maxTemp. If the current temperature is larger set maxTemp to that temperature. NOTE: If the current temperature is NOT larger, DO NOTHING! 2. Add code to print out the maximum after the loop. Test your program to make sure it is correct. Be sure to test it on at least three scenarios: the first number read in is the maximum, the last number read in is the maximum, and the maximum occurs somewhere in the middle of the list. For testing purposes you may want to change the HOURS_PER_DAY variable to something smaller than 24 so you don’t have to type in so many numbers! 3. Often we want to keep track of more than just the maximum. For example, if we are finding the maximum of a sequence of test grades we might want to know the name of the student with the maximum grade. Suppose for the temperatures we want to keep track of the time (hour) the maximum temperature occurred. To do this we need to save the current value of the hour variable when we update the maxTemp variable. This of course requires a new variable to store the time (hour) that the maximum occurs. Declare timeOfMax (type int) to keep track of the time (hour) the maximum temperature occurred. Modify your if statment so that in addition to updating maxTemp you also save the value of hour in the timeOfMax variable. (WARNING: you are now doing TWO things when the if condition is TRUE.) 4. Add code to print out the time the maximum temperature occurred along with the maximum. 5. Finally, add code to find the minimum temperature and the time that temperature occurs. The idea is the same as for the maximum. NOTE: Use a separate if when updating the minimum temperature variable (that is, don’t add an else clause to the if that is already there). // ********************************************************** // Temps.java // // This program reads in a sequence of hourly temperature // readings (beginning with midnight) and prints the maximum // temperature (along with the hour, on a 24-hour clock, it // occurred) and the minimum temperature (along with the hour // it occurred). // ********************************************************** import java.util.Scanner; public class Temps { //—————————————————- // Reads in a sequence of temperatures and finds the // maximum and minimum read in. //—————————————————- public static void main (String[] args) { final int HOURS_PER_DAY = 24; int temp; // a temperature reading Scanner scan = new Scanner(System.in); // print program heading System.out.println (); System.out.println (“Temperature Readings for 24 Hour Period”); System.out.println (); for (int hour = 0; hour < HOURS_PER_DAY; hour ) { System.out.print ("Enter the temperature reading at " hour " hours: "); temp = scan.nextInt(); } // Print the results } }
What will display in MessageLabel when the following statements are executed? Assume that CountInteger = 10. MessageString = “Visual Basic is fun” IF CountInteger 20 Then MessageLabel.Text = MessageString.ToUpper() ELSE MessageLabel.Text = MessageString END IF
Design a flowchart for the following Diana Lee, a supervisor in a manufacturing company, wants to know which employees have increase their production this year over last year, so that she can issue them certificates of commendation and bonuses. Design a flowchart for the following: a. a program that continuously accepts each worker’s first and last names, this year’s number of units produced, and last year’s number of units produced. Display each employee with a message indicating whether the employee’s production has increased over last year’s production. b. A program that accepts each worker’s data and displays the name and a bonus amount. The bonuses will be distributed as follows: If this year’s production is greater than last year’s production and this year’s production is 1000 units or fewer, the bonus is $25 1001 to 3000 units, the bonus is $50 3001 to 6000 units, the bonus is $100 6001 units and up, the bonus is $200 .
A project folder has the following path: http://www.mywebsite.com/IT237MyProject. The folder contains a page called index.html and a folder called images. A picture named imgLake.jpg is saved in the images folder. What tag would I use to specify a relative link from index.html to imgLake.jpg?
create a class called employee that includes three pieces of information as instance variables – a first name (type string), a last name (type string) and a monthly salary (type integer). Your class shoudl have a constructor that initializes the three instance variables. Provide a property for each instance variable. The property for the monthly salary should ensure that its value remains positive.
a C program that uses inclass in a travel agency system
Dear tutor the attavhed file describe the programme that should be build but I’m asking a question to writte a Safe Management Python script it should be Well commented and built with sub procedures. Not a whole one procedure script and should be fully configurable. The script executable should be parameterized from the command line. I do’nt know how to start in this homework and the deadline very close I need your help to write the script Thanks
a 3-4 page plan for how Boardman Management Group should utilize Smith Systems Consulting as an outside consultant for this project. Include a discussion of why the specific elements of your plan are important, how they will achieve the results you intend and why they were chosen over alternative methods.
Describe The Law of Conservation of Familiarity (Section 1.4.2) in your own words.
Get college assignment help at uniessay writers write a program that reads 2 strings, the age (as a 4 bit binary number) followed by a name from the keyboard then converts age from binary to decimal and prints out the age in decimal followed by the name in lower case letters.
8. You have just been hired by the accounting firm More
a)Requirements engineering has been defined as “the branch of software engineering concerned with the real-world goals for, functions of, and constraints on software systems [and] the relationship of these factors to precise specifications of software behavior, and to their evolution over time and across software families”. Why is Requirements Engineering considered to be the most important part of software engineering? [5 Points] b) Requirements should state what a system should do, without stating how it should do it. Why is this distinction useful? [3 Points] c) Structured Analysis proceeds by modeling the current physical system, abstracting out a model of the current logical system, and then modeling the new logical system. What are the advantages and disadvantages of building these three separate models? What representations are used for each of these models? [5 Points]
What are two ways you can execute a shell script when you do not have executive access permission for the file containing the script? Can you execute a shell script if you do not have read access permission for the file containing the script?
In Figure 4-1, suppose that edge t3 went from s1 to s4. Would the resulting system be secure?
Chapter 5. Data and Process Modeling Assignments Before you perform the following task, you should review the information provided in Chapter 2 and 4 of the case. 1. Prepare a context diagram for the new system. 2. Prepare a diagram 0 DFD for the new system. 3. write a brief memo that explains the importance of leveling a set of DFDs. 4. Write a brief memo that explains the importance of balancing a set of DFDs.
Chapter 5. Data and Process Modeling PERSONAL TRAINER, INC Personal Trainer, Inc., owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning an international expansion by opening a new “supercenter” in the Toronto area. Personal Trainer’s president, Cassia Umi, hired an IT consultant, Susan Park, to help develop an information system for the new facility. During the project, Susan will work closely with Gray Lewis, who will manage the new operation. Background Susan Park has completed a preliminary investigation and performed the fact-finding task that were described in Chapter 2 and 4. Now, she will use the result to develop a logical model of the proposed information system. Assignments Before you perform the following task, you should review the information provided in Chapter 2 and 4 of the case. 1. Prepare a context diagram for the new system. 2. Prepare a diagram 0 DFD for the new system. 3. write a brief memo that explains the importance of leveling a set of DFDs. 4. Write a brief memo that explains the importance of balancing a set of DFDs.
Dear could you please help me to answer the question in red in attached file it’s the same programe(linux) and i have 3 free question in a day so could you please help me in the second question Thank you”
Each police officer works two consecutive 4-hour shifts. Formulate an LP that can be used to minimize the number of police officers needed to meet Smalltown’s daily requirements.
design a pair of classes ReliableMcastServer and ReliableMcastClient in Java that implements a simple version of reliable multicast. Be prepared to allow up to 10 ReliableMcastClient to simultaneously subscribe to the multicast group address served by your ReliableMcastServer.
// repeat calculation for 3 employees using a while loop //while ( count 40 with overtime //if pay = _____________________________________________ // else straight time //pay = ___________________________ // print the pay for the current employee //use System.out.printf to display “Pay for Employee” (format with printf) //increment count // end while loop // end method calculateWages // end class Wages **********************separate driver to run class above**************** // Exercise 4.20 pseudo code: WagesTest.java // Test application for class Wages //create a public class called WagesTest //create an application method that takes a string argument //create an instance of the Wages class called application //use the instance name application and dot syntax to call the method calculateWages() in Wages class // end main // end class WagesTest *************************output should look like:*********** Enter hourly rate: 12.50 Enter hours worked: 50 Pay for Employee 1 is $687.50 Enter hourly rate: 27 Enter hours worked: 40 Pay for Employee 2 is $1080.00 Enter hourly rate: 8.25 Enter hours worked: 30.5 Pay for Employee 3 is $251.63
The post – 1- Type a command from the command prompt that will appeared first on uniessay writers.
[ad_2]
Source link