...assessed Lab 5 Built-in functions and methods ASSESSMENT INFORMATION This worksheet is one of the seven assessed lab sheets. It can be assessed within the next 5 weeks. Let me know in advance when you’d like to be assessed. Deadline: Thursday, 17th of July. Do not forget to have it ‘signed off’ after you have been assessed. 1 introduction This laboratory worksheet covers the use of built in functions, methods and classes within the Java programming environment. This laboratory involves the creation of a number of Java programs. Make sure that you save any code you write. Also make sure you save any results or notes that you observe about your work. Note that you are unlikely to complete this worksheet in just one laboratory session. 2 Preliminaries Create a project in Eclipse called CS1002_Lab5 and create a corresponding class (say CS1002_Lab5). Try and organise your work (from the following exercises) into separate methods as we did in the previous worksheet. 3 Strings Copy the following code into your project and run the program. public static void main(String args[]) { double number = 1.0/3.0; System.out.println(number); DecimalFormat number_format = new DecimalFormat("#.##"); String formatted_string = number_format.format(number); System.out.println(formatted_string); } Is it showing you an error? Can you fix it? The DecimalFormat class enables us to format numbers (and other classes) in a variety of ways. In the above example we are formatting the number to...
Words: 2314 - Pages: 10
...Post Internship Thank You Letter Dear Barbara, It has been a pleasure working for you and being a part of the “pit crew” team this summer. Since the very beginning of the internship I felt very welcomed by you and the whole team. The amount of knowledge and skills I have acquired this summer are innumerable. It is hard to believe that these 10 weeks have flown by so fast. I am very appreciative for our weekly one on one meeting. I enjoyed being able to hear feedback from you about my performance which has made me more aware as a person. I have learned the importance of presentation and proper documentation from you. I also must say your sense of professionalism has rubbed off on me. You are a great leader and you have fostered an environment where team members can communicate with you whenever they have questions or issues. I’m sure I could on and on about this experience but I will end it here. I simply want to say thank you for this opportunity. Thank you for allowing me to be a part of your team. Thank you for allowing me to contribute to the team’s success. Thank you for this opportunity to expand my knowledge. Thank you. Best regards, Emerging Technology Introduction: Vanguard has been in the financial investment industry since May 1, 1975 with its first location in Valley Forge, Pennsylvania. Since then Vanguard has made a presence in North Carolina, Arizona, and international locations such as the Netherlands, France, Canada, England, Switzerland and Australia...
Words: 1448 - Pages: 6
...Table of Contents 1 Frontal Materials…………………………………………………………………………i 1.1 List of Figures………………………………………………………………………..i 1.2 List of Tables………………………………………………………………………..ii 1.3 List of Symbols…………...………………………………………………………..iii 1.4 List of Definitions…………………………………………………………………..iv 2 Introductory Materials…….…………………………………………………………….1 2.1 Executive Summary…………………………………………………………………1 2.2 Acknowledgment……………………………………………………………………2 2.3 Problem Statement…………………………………………………………………..2 2.4 Operating Environment……………………………………………………………...2 2.5 Intended Users and Uses…………………………………………………………….2 2.6 Assumptions and Limitations……………………………………………………….3 2.7 Expected End Product and Other Deliverables………………………………….…..3 3 Approach & Results……………………………………………………………………..4 3.1 Functional...
Words: 9087 - Pages: 37
...clauses is important). There are two types of clauses: facts and rules, you will understand the difference soon. The program must be written in advance in some text processor like Emacs. Only some Prolog systems contain IDE (Integrated Development Environment). When the Prolog system is started, you will see a prompt, usually in the following form: ?- The system is waiting for your commands/questions. First, the program should be loaded to the Prolog database. You can load a program into the database by using the consult command in the following way (do not forget the dot at the end!): ?-consult('name_of_the_file_with_the_program'). The consult command adds the clauses and facts from the specified text file to the clauses and facts already stored in the Prolog database. Thus you can load more programs into the database but be careful whether the programs do not use the procedures with the same name. Otherwise, because of cumulating of clauses, these procedures could behave incorrectly. You can also use the reconsult command to load the program ?-reconsult('name_of_file_with_the_program'). that behaves like the consult command (it adds procedures into the database) but if there is a procedure in the database with the same name as any procedure in the reconsulted file, then the former procedure is replaced by the new definition. You will usually use the reconsult command to update the Prolog database after...
Words: 389 - Pages: 2
...TABLE OF CONTENT Introduction_________________________________________________________________________1 GROUP REPORT________________________________________________________________1 Visual Application Sketch___________________________________________________________1 Menu Form_____________________________________________________________________3 Menu Form Codes_____________________________________________________________3 LoginCreate Form_____________________________________________________________________4 Login TabPage 1___________________________________________________________4 Create A New Account TabPage 2_________________________________________________5 LoginCreate Form Codes_________________________________________________________5 Customer Form__________________________________________________________________7 Customer Form Codes___________________________________________________________8 Advertise Form_____________________________________________________________________9 Advertise Form Codes_______________________________________________________10 Payment From_____________________________________________________________________11 Payment Form Codes_______________________________________________________12 Staff_Login Form_____________________________________________________________________13 Staff_Login Form Codes_________________________________________________________14 Staff Form_____________________________________________________________________15 ...
Words: 7080 - Pages: 29
...fades. Lastly, click on the file for the transition you want to apply. When you've clicked on the desired transition file, just hold down your mouse button and drag the file down from the Browser to the point between your clips in the Timeline and release your mouse button. Step 4: You should see the transition appear as a little gray area between the two clips in your Timeline. Step 5: You should see a GREEN line appear just above the transition on the Timeline, which means the transition has been applied and you can view it now. (If there's a RED line above the transition instead of a green line, that means you'll need to render the transition before you can play and view it.) (You also can make changes in your transition by double clicking on the transition in the Timeline.) *You can change the duration of the cross fade.* Step 6: To do that, you should double click on the transition. In the box that appears in the Viewer area at the top of your screen, just type a new number into the time box, which usually is set at a 1 second duration by default. (You can set a transition either in number of seconds or in number of frames or a combination of both.) Step 7: If you don't like the transition you've created, you can click on it and press the DELETE key to remove it. Adding Credits: Step 1: Open Video Generators (this is under the Effects tab of the Browser), and then open Text and click "Scrolling Text." The Viewer will open a Scrolling Text screen. Select the "Controls"...
Words: 555 - Pages: 3
...information system, in this case a computer lab, it would benefit each youth as well as staff. By having a computer lab, youths would have access to the internet to complete their homework, get help for their homework as well as learn about how to be safe online. This opens more opportunities for staff to teach youths about computer systems, how to type, improve their typing skills, and what a network consists of, etc. * The computer lab equipment will be purchased. Each new computer lab will have 15 computers, 1 printer. This new computer lab network will be integrated with the existing center network. * What tools/software will you be using to create your website – HTML * What file/database/spreadsheet will you be using to collect user input from the website – Plain text...
Words: 255 - Pages: 2
...End of Chapter Review and Programming Exercises 10212010 LIST OF REVIEW AND PROGRAMMING EXERCISES PER CHAPTER CHAPTER 1: ASSIGNED REVIEW AND PROGRAMMING EXERCISES Please complete these end of chapter review and programming exercises. They were selected because they are relevant to the competencies you must develop to complete the performance assessment. Complete R1.6, R1.7, R1.11, R1.13, R1.14, R1.18. Complete P1.1, P1.8, P1.10 CHAPTER 2: ASSIGNED REVIEW AND PROGRAMMING EXERCISES Please complete these end of chapter review and programming exercises. They were selected because they are relevant to the competencies you must develop to complete the performance assessment. Complete R2.1, R2.3, R2.4, R2.9, R.2.14, R.2.15 Complete P2.1, P2.2, P2.4, P2.5, P2.8, P2.9, P2.12, P2.13, P2.14, P2.19 CHAPTER 3: ASSIGNED REVIEW AND PROGRAMMING EXERCISES Please complete the following end of chapter review and programming exercises. They were selected because they are relevant to the competencies you must develop to complete the performance assessment. Complete R3.2, R3.3, R3.4, R3.7, R3.8, R3.9, R3.10, R3.11, R3.13, R3.18, R.3.21 Complete P3.1, P3.2, P3.3, P3.4, P3.5, P3.6, P3.9, P3.10, P3.12, P3.14, P.3.17, P3.23, P3.25 End of Chapter Review and Programming Exercises 10212010 CHAPTER 4: ASSIGNED REVIEW AND PROGRAMMING EXERCISES Please complete the following end of chapter review and programming exercises. They were selected because they are relevant to the competencies...
Words: 1463 - Pages: 6
...In this paper we shall discuss what exactly VBscript text file reading and writing. We will go through what the name of the WSH object that VBScript uses to open a text file and other things that VBScript does when it comes to code line and such. VBScript is an important tool and can be very powerful to wield once you gain a good grasp of the knowledge it requires you to know. The name of the WSH object that VBScript uses to read text and or writing data is known as FileSystemObject, within a script FSO will create an object that the user can adjust. User should be warned though with files known as CreateFolder and DeleteFile, because if you were to make a mistake here it could set back a lot of your work while you were writing the code. Lastly if you want to get the text into file you can simply use WriteLine and write. There are multiple methods that are used within VBScript to read and write lines of code. I will go through a few then give an example of how they are used. A method that is used in order to read a line, or single code is called Create TextFile Method, and what this does is it will create a specified file name and returns a TextStream object that can be used to read from or write the filein order to read a single or multiple there is also Readline Method and ReadAll method. Another method that is used to write is called Write Method, it will write a specified string to a TextStream file. There is also WriteBlanksLines Method, and Writeline Method for a newline...
Words: 355 - Pages: 2
...you stare at a blank screen and flashing cursor and are unable to write. The best solution is to brainstorm and write down anything that pops into your head, and to keep on writing. Do not worry about typos or spelling errors because you can fix them later. Above all, resist the temptation to edit continually the few words you have written because over-editing will drain the life out of what you are writing. The important thing is to get your ideas on paper. Delete with caution. It’s all too easy to delete a paragraph, and then realize five minutes later that you need it back. Hence, instead of deleting a large block of text, move it to the end of a document or writing it to another file, so that you can restore the text if you change your mind. A related practice is to remain in the insert mode (as opposed to the replacement mode) to prevent inadvertent deletion of text as new ideas are added. Save often. A loss of power, whether it is your fault or the power company's, can destroy a creative masterpiece. The best insurance is to save your work constantly and, in addition, to save your work whenever you are interrupted by a phone call, the doorbell, etc. Keep...
Words: 576 - Pages: 3
...AC 552 HomeWork : Wk1 Plan A Pay $.10 per text Text per month 240 $ 24.00 780 $ 78.00 1250 $ 125.00 Show Calculations: 240 x $.10 = $24.00 780 x $.10= $78.00 1250 x $.10= $125.00 Plan B Pay $15/mo (500txt) plus $.08 for ea. txt over 500 Text per month Show Calculations: 240 $ 15.00 No Calculation; # of text is within plan 780 $ 37.40 1st 500 txt is within text plan; Overage is 280 x $.08= $22.40 1250 $ 75.00 $15 + 22.40= $37.40 1st 500 txt is within text plan; Overage is 750 x $.08= $60.00 $15 + $60= $75 Plan C Pay $25/mo (1000txt) plus $.05 for ea. txt over 1000 Text per month Show Calculations: 240 $ 25.00 No Calculation; # of text is within plan 780 $ 25.00 No Calculation; # of text is within plan 1250 $ 37.50 1st 1000 txt is within text plan; Overage is 250 x $.05= $12.50 $25 + $12.50= $37.50 A. Draw Chart Plan A: $.10/txt Plan B $15/mo(500 txt) + $.08 addt'l txt Plan C: $25/mo(1000txt) + $.05 addt'l txt $125.00 B. Which plan should you choose if you expect to make : i. 240 texts per month? Ans. I would choose plan B. ii. 780 texts per month? Ans. I would choose plan C. iii. 1,250 texts per month? Ans. I would choose plan C. $78.00 $37.40 $24.00 $15.00 $25.00 $25.00 $75.00 $37.50 240 780 1250...
Words: 262 - Pages: 2
...Daniel Watrous Management Information ... mba.danielwatrous.com/wp-content/uploads/2014/03/tufs.pdf In the case of TUFS, some of the anticipated benefits included ... before starting an IT project, some of which include investment during development and ... In IT projects, there is a risk of going to one of two extremes: analysis paralysis or. Investing In Tufs Discussion Questions Free Essays www.studymode.com/.../investing-in-tufs-discussion-questions-page1.ht... Case Summary Investing in TUFS The case refers to a company called Northern Insurance and their huge investment on TUFS (Technical Underwriting ... Investing In Tufs Mini Case - eBooks Club flipclub.net/investing-in-tufs-mini-case-free-download.html File Name: Investing In Tufs Mini Case File Size: 3.5MB His companies were ... eBooks tags: investing in tufs; investing in tufs case study; investing in tufs mini ... Pearson Education - IT Strategy: Issues and Practices PDF ... www.pearsoned.co.uk/bookshop/detail.asp?item=100000000581206 6. Building Better IT Leaders from the Bottom Up. Mini-cases: Delivering Business Value with IT at Hefty Hardware. Investing in TUFS IT Planning at ModMeters. Investing In Tufs Mini Case Zip - MIG33 BATURETNO COMMUNITY ... baturetnomig33.forumotion.com › ... › SCREEN SHOOT May 4, 2014 - Investing In Tufs Mini Case Zip > tinyurl.com/qjxj5dg. ... exploded_view_front_rotors_on_a_2004_ford_f350_truck.pdf ... practical case study Tufs - SlideShare www.slideshare.net/abhinaysachan/tufs ...
Words: 509 - Pages: 3
...Background This task is designed to let you demonstrate your programming abilities, and allow us to examine them more in a more rigorous fashion than would otherwise be possible. Expectations We expect you to produce original work. However, you are encouraged to make use of existing algorithms, data structures, and associated techniques in order to develop a solution most effectively. Task #1 Description: Write an OpenGL or DirectX program for the Windows platform that satisfies the following requirements: 1. Import a Wavefront OBJ file including textures and display it on screen. A Wavefront OBJ file is already provided in the zip file. Write your own loader. The .OBJ and .MTL files are just in plain text format. You may convert the jpg texture to another format such as BMP or TGA for easier loading. 2. Provide user input similar to first person shooter controls, see item 6 as guide. 3. Mouse movement is used to change where the camera “looks at” 4. Move, rotate and scale the object you have loaded. 5. The object can be rotated about 3 different points as the center of rotation. Define the center of rotation as (0,0,0), (10,0,0) and (-10,0,0). 6. Control the 3D scene through the keyboard. Use the following keys: W – move forward S – move backward A – move sideways to the left D – move sideways to the right 1 – Center of rotation...
Words: 701 - Pages: 3
...By considering the connections between the texts, we gain an insight into the way values have changed over time. To what extent is this true of the two texts you have studied? (Minimum any 2 scenes, 4 quotes and roughly 1200 words) It is the relationship between context, text and responder that helps the audience to create meaning from a text. Through Pacino recontextualising Shakespeare’s Richard III, the audience is able to develop a better understanding and newfound appreciation of Shakespeare’s text. By comparing the structure and language of both texts the responder is able to go on their own journey of understanding and interpretation. Pacino builds a bridge that enables us to cross over and understand Shakespeare’s context. Pacino develops our understanding of ‘Richard III’ and helps us to recognize how values can be encoded within a text. This can be seen through the different values, beliefs and attitudes towards women reflected in Richard III texts in Act 1 scene 2. The wooing of Lady Anne demonstrates the climax of Richard’s role as a villain. The stichomythic language engages the audience which allows us to be seduced by Richard, for example when Lady Anne say, ‘‘o wonderful, when devils tell the truth’ and Richard replies ‘More wonderful, when angels are so angry’. This short declarative verbal exchange creates momentum in the scene resulting in the audience being in a state of anticipation. It reveals the power of language to persuade and Richard is able to capture...
Words: 1097 - Pages: 5
...very relaxing. Music can be very useful in many ways. You can give a positive message in music and also get people to enjoy it by expressing on a rhythmic beat and words. Listening and creating music gives an outlet to express many different emotions, sad, mad, and happy. Creating music is fun from recording lyrics to mixing and creating the whole sound. Music is what I do in my free time, it’s my favorite hobby. Part2: A. I have to basic step that I think is going to be the most difficult for me is “Drafting”. The reason I chose drafting is because I never utilized that step unless it was required by the teacher, and counted as part of the assignment. I’m going to start utilizing all of the steps that where listed. When I write my text paper I’m going to sit down and plan my paper, Also planning and taking the proper steps actually make the paper easier to...
Words: 265 - Pages: 2