...COMP101 – Problem Solving with Computing Homework - WEEK 12 [30 points] This is further review of some of the material from Chapter 6, some simple steps in coding using JavaScript and the repl.it website, and lectures from class. No credit for answers that are copies or near verbatim transcripts – please use your own words[1] and document sources where appropriate. Chapter 7 Answer the following questions: 1. JavaScript Debugging Exercises [1 point each, 5 points total] The snippets of JavaScript below contain syntax errors and/or logic errors. Identify the errors and insert your corrected code. a. function main() { var num1 = getNumber(); var num2 = getNumber(); } function getNumber() { var input = Number(prompt("Enter a number")); } main(); b. function main() { var total = 0; for (var ctr = 0; ctr < 10; ctr++) { total = computeTotal(total); } } function computeTotal(total, ctr) { total = total + ctr; return total; } main(); c. function main() { var playerName1; var playerName2; playerName1, playerName2 = getPlayerNames(); } function getPlayerNames() { var name1 = prompt("Enter the name of player1"); return name1; var name2 = prompt("Enter the name of player2"); return name2; } main(); d. module main() ...
Words: 2288 - Pages: 10
...Google Library project Khaled Deyab Cal University DBA in Health Care Management and Leadership Introduction Google Library Project's transforms the text into a comprehensive word index to facilitate searching and data mining in new areas. The use does not supersede or replace reading of books; it adds something new to the original work by using words to facilitate searching. It aim to make it easier for people to find relevant books specifically, books they wouldn't find any other way such as those that are out of print. At the same time will carefully respecting authors' and publishers' copyrights. The goal is to create a comprehensive, searchable, virtual card catalog of all books in all languages that helps users discover new books and publishers discover new readers. Users simply search for a book or topic using keywords and Google lists books from its database containing the search terms. Users can then click a book title to view “snippets” of books containing the term(s) searched. We are going to talk about Google Library Project and a history for their straggle in court. We are also going to talk about is it good or bad that Google is a United State corporation bound by U.S. laws., what is the “fair use” doctrine and if we think that Google defines it correctly in this controversy. We are also going to explain why some libraries are backers of the project, while others vehemently oppose it. Discussion Google Library Project's aim to make it easier for...
Words: 1190 - Pages: 5
...The Developer Tools 5 Windows Phone 7 Architecture 5 Comparing the Programming Stack of Windows Phone 7 with Android 7 Summary 11 Related Resources 11 Chapter 2: User Interface Guidelines 12 Designing the Application Interface 13 Application User Interface Design 14 Comparing Windows Phone 7 and Android Navigation 18 Windows Phone 7 Frame and Page Structure 19 Application Templates 21 Summary 21 Related Resources 21 Chapter 3: The Developer and Designer Tools 23 A Comparison of Android and Windows Phone 7 Tools 23 Development Life Cycle and Windows Phone 7 Developer Tools 24 The UI Design Tools 26 Building Applications 33 Debugging 34 Summary 38 Chapter 4: C# programming 39 Managed Programming 40 A Comparison between C# Features and Java Classes 41 A Comparison of Important Class Libraries 51 The New features of C# 54 Comparing API Documentation Tools 58 NDoc 58 NDocs vs. Javadoc 61 Summary 61 Related Resources 62 Chapter 5: A Comparison of Application Life Cycles in Windows Phone 7 and Android 63 Multitasking in Android and Windows Phone 7 63 Tombstoning of Applications in Windows Phone 7 64 Life Cycle of a Windows Phone 7 Application 64 Role of Handlers in an Application’s Life Cycle 66 Comparing Life-cycle Methods 68 Tombstoning and Windows Phone 7 Life Cycle 69 Summary 74 Related Resources 74 Chapter 6: Storing Data and Preferences 75 Isolated Storage in Windows Phone 7 75 Use Cases 78 Managing...
Words: 19181 - Pages: 77
...There are ten tools at your disposal and you will often have to switch between them very rapidly. You will have to select the right tools for the job and use them in the correct order to keep your patient alive. You are ranked after each operation so make sure you follow the instructions correctly. It can feel a bit restrictive but then again a lot of medical procedures are performed according to strict guidelines. Don't mistake Trauma Center for a simulation game however. It is much more of an arcade game and will test your reflexes. Operations have to be performed within a strict time limit and you are only allowed a certain number of mistakes. It is definitely not a game that is easy to pick up and play if you have been away from it for a while as it is easy to forget important steps or procedures. Derek eventually discovers...
Words: 734 - Pages: 3
...How blogs work? http://www.ehow.com/how-does_4586053_a-blog-work.html#ixzz2l4F8HL96 Inner Workings * Bloggers begin their work by logging in to a Content Management System. This is the inner workings of the blog, where the writer can create new posts, edit old ones, manage user comments and set up the blog's look and feel. Blogging tools such as Wordpress and Blogger have slightly different systems, but their main functions are the same, allowing writers to manage their blog through an online interface. While Wordpress's software can be hosted on any website, both services provide web hosting for bloggers who need it. http://www.slideshare.net/MrsMoss/how-do-blogs-work-3234197 * Different blog programs have different features, but they all do essentially the same thing. They convert your text into an HTML web page (otherwise known as a blog post) at the click of a button. You simply type your blog post, add links or images as desired, and click a “publish” button, The blog application will then publish your post onto the web, making it part of your blog. http://socialnetworking.lovetoknow.com/everything-blogging/how-do-blogs-work Blogs consist of a series of posts made by one or more bloggers. The posts appear in reverse chronological order, with the most recent post at the top of the main page. All posts are archived, and are usually sorted into categories. Readers can browse these categories or page back through the blog to read older entries. Blogs can...
Words: 535 - Pages: 3
...express how upset they are about the rights women are receiving compared to men. They mention how you might be shocked by their language but instead of wanting to wash their mouth out you should want to change how men are treating women. “Potty Mouth Princesses” effectively expresses their anger by the audience it appeals to, the language, the tone, the outfits, the gender, and the age. The intended audience for this commercial would...
Words: 901 - Pages: 4
...Everyone in your office jump when you hear that tired old Nokia ringtone? Most modern cell phones support custom ringtones that can embarrass alert you when it's your phone that's got an incoming call. Google up "ringtones" and you'll get tons of sites that will charge you a few bucks per tone. Pshaw! With some free software and a few minutes, you can make as many custom ringtones as your heart desires out of any MP3 in your music collection without paying a dime. Here's how. What you'll need In order for your MP3 ringtone to work, you'll need: • A cell phone that plays MP3's and supports custom tones (most modern phones do these days) • A way to transfer the file to your phone (using a cord, Bluetooth or an email to your phone) • Free sound-editing software, Audacity Edit your MP3 You could simply transfer the entire MP3 to your phone, set it as your ringtone and be done with it. But most full-length songs are several minutes, and your phone only rings for about 20 seconds, which will mean a lot of wasted memory space for no good reason. Plus, you may want ONLY the Sweet Child o' Mine guitar solo halfway into the song to play as your tone, not the first twenty seconds of the track. Here's where Audacity comes in. Using the free, open source, cross-platform sound editor, we'll trim your MP3 down to the exact 20 seconds you want and add any effects as well. Download Audacity, install and fire it up. Audacity can't edit MP3's out of the box, it needs what's called...
Words: 904 - Pages: 4
...longer show up in results on Google.com or on any of Google's partner sites. Design and content guidelines Technical guidelines Quality guidelines When your site is ready: Submit it to Google at http://www.google.com/submityourcontent/. Submit a Sitemap using Google Webmaster Tools. Google uses your Sitemap to learn about the structure of your site and to increase our coverage of your webpages. Make sure all the sites that should know about your pages are aware your site is online. Design and content guidelines Make a site with a clear hierarchy and text links. Every page should be reachable from at least one static text link. Offer a site map to your users with links that point to the important parts of your site. If the site map has an extremely large number of links, you may want to break the site map into multiple pages. Keep the links on a given page to a reasonable number. Create a useful, information-rich site, and write pages that clearly and accurately describe your content. Think about the words users would type to find your pages, and make sure that your site actually includes those words within it. Try to use text instead of images to display important names, content, or links. The Google crawler doesn't recognize text contained in images. If you...
Words: 1143 - Pages: 5
...central problem is organizing this existing structured knowledge into a library and making it accessible throughout the firm. Managers may also need information that may exist somewhere inside the firm in the form of less-structured documents, such as e-mail, voice mail, chat room exchanges, videos, digital pictures, brochures, or bulletin boards. This is considered semi-structured knowledge or digital asset systems. Systems for structured and semi-structured knowledge are known as knowledge repositories. A knowledge repository is a collection of internal and external knowledge in a single location for more efficient management and utilization by the organization. Selecting and implementing the appropriate strategies, technologies, and tools for an enterprise-wide knowledge management system is a monumental undertaking. Older systems that no longer perform effectively and an organizational culture that runs counter to enterprise wide sharing of information can make the task even more difficult. There are multiple issues to address in designing a system to capture,...
Words: 1096 - Pages: 5
...From Wikipedia, the free encyclopedia Changes must be reviewed before being displayed on this page.show/hide details Google Search Logo Google 2013 Official.svg Screenshot [show] Web address www.google.com (US) Commercial? Yes Type of site Web search engine Registration Optional Available in 123 languages Written in Python, C, C++[1] Owner Google Launched September 15, 1997[2] Revenue From AdWords Alexa rank Steady 1 (April 2015)[3] Current status Active Google Search, commonly referred to as Google Web Search or just Google, is a web search engine owned by Google Inc. It is the most-used search engine on the World Wide Web,[4] handling more than three billion searches each day.[5][6] As of February 2015 it is the most used search engine in the US with 64.5% market share.[7] The order of search on Google's search-results pages is based, in part, on a priority rank called a "PageRank". Google Search provides many different options for customized search, using Boolean operators such as: exclusion ("-xx"), alternatives ("xx OR yy OR zz"), and wildcards ("Winston * Churchill" returns "Winston Churchill", "Winston Spencer Churchill", etc.)[8] The same and other options can be specified in a different way on an Advanced Search page. The main purpose of Google Search is to hunt for text in publicly accessible documents offered by web servers, as opposed to other data, such as images or data contained in databases. It was originally developed by Larry Page and...
Words: 3502 - Pages: 15
...TOPIC: MEDICAL STORE MANAGEMENT SYSTEM 1 |Page ACKNOWLEDGEMENT Completing a task is never a one man effort. It is often the result of valuable contribution of a number of individuals in a direct or indirect manner that helps in shaping and achieving an objective. It is very difficult for anyone to complete a project without the active cooperation and the benefit of the advice from the people who are experts in their field of specialization. The satisfaction and euphoria that accompanies the successful completion of any task would not be complete without the mention of the people who made it possible With due honor, We want to thank all the personalities who made us able to do this interesting work. First of all we would like to thank lovely professional university for giving us this opportunity to carry out this minor project at their esteemed institution. We are grateful to our honorable faculty who provided all the facility. 2 |Page INDEX 1. Project proposal 2. Software development cycle requirements 3. Software development cycle 4. Coding. 5. Testing and debugging. 6. Maintenance and redesigning. 7. References. 3 |Page PROJECT PROPOSAL A transfer is a lateral move to a position in the same classified pay range (classified position) or to a position with comparable duties and responsibilities (non-classified positions). Eligibility:All non-faculty employees are eligible for transfer after being employed in their present position for atleast three...
Words: 1202 - Pages: 5
...© Prentice Hall and Sun Microsystems. Personal use only; do not redistribute. JSP Scripting Chapter Elements Topics in This Chapter • The purpose of JSP • How JSP pages are invoked • Using JSP expressions to insert dynamic results directly into the output page • Using JSP scriptlets to insert Java code into the method that handles requests for the page • Using JSP declarations to add methods and field declarations to the servlet that corresponds to the JSP page • Predefined variables that can be used within expressions and scriptlets Online version of this first edition of Core Servlets and JavaServer Pages is free for personal use. For more information, please see: • • • Second edition of the book: http://www.coreservlets.com. Sequel: http://www.moreservlets.com. Servlet and JSP training courses from the author: http://courses.coreservlets.com. © Prentice Hall and Sun Microsystems. Personal use only; do not redistribute. Chapter avaServer Pages (JSP) technology enables you to mix regular, static HTML with dynamically generated content from servlets. You simply write the regular HTML in the normal manner, using familiar Web-page-building tools. You then enclose the code for the dynamic parts in special tags, most of which start with . For example, here is a section of a JSP page that results in “Thanks for ordering Core Web Programming” for a URL of http://host/OrderConfirmation.jsp?title=Core+Web+Programming: Thanks for ordering J Separating the...
Words: 1383 - Pages: 6
...Introduction: We use the word `idea` in lots of different contexts: `idea` may describe thoughts and suggestions (It would be an awesome idea to spend the winter holiday in Austria), new concepts (The idea of this website is to help people match their pets) or even opinions and beliefs (My idea is that public transportation remains the best way to travel across the city). However, this wide variety of uses creates a little bit of confusion: if the ideas are so ubiquitous, why, in many cases, it seems so difficult to make them happen? Cobb, the main character from Inception, has a possible answer. No idea is simple when you need to plant it in somebody else’s mind, he states. Indeed, ideas represent only a basic step (yet an important one, for sure) in the evolution: they act like a bridge between `imagining` and `doing`. What is really interesting to be followed here is the way ideas transform themselves when meeting the collective mind: either they are validated and accepted or they die. Ideas are important. At the same time, ideas surround us: they are in our heads, in the people around us, in places, buildings, animals, what someone is wearing, a snippet of conversation, something you hear, a smell. Basically, ideas are everywhere since they act as mental representations of the world. Thus, ideas begin in the mind: they are the object of thoughts (Adler: 1981, p. 14) . Moreover, ideas make the world, for they are the guide to future practice. Even the flimsiest...
Words: 857 - Pages: 4
...characterize a specific performance with a specific configuration or to evaluate the correctness of the behaviour of the DUT. The specific focus on this paper is on documenting our experiences in building an automation framework using Python: on the purposes, goals and the benefits, rather than on a tutorial of how to build such a framework. 1. Introduction I work in a growing IC design company that focuses on wireless solutions. The project described in this paper was developed when we were developing the fifth generation of our product. We were facing huge challenges for this project: our product's feature sets have grown so much that manual verification of the features require more than 2 months (and this would involve most of the engineering team doing manual tests). Recent economic situation prohibited any further investment, both for manpowers and tools. However, the project needs to be completed on time, or we would risked losing a significant potential business. We basically faces a risk of taping out our Application Specific Integrated Circuit (ASIC) with potential major defects due to untested features1. Understanding this risk, we did an evaluation on how much can we gain by automating a number of crucial test cases. It was obvious that the benefits were significant: we would have 16 more hours each working day2 and two extra days on weekends...
Words: 2970 - Pages: 12
...Should it be embraced or rejected? The World Wide Web offers an abundance of information and has changed the way society gathers information, interacts with each other, and possibly the way society thinks. In analyzing Nicholas Carr’s “Is Google making Us Stoopid?” and Tyler Cowen’s “Three Tweets for the Web” the impression that readers were likely to be left with is very calculated. Both take positions on the issue of how the World Wide Web will affect the thought processes of the people who frequently use it; however, they are in complete opposition of each other in their viewpoints. When comparing “Is Google making Us Stoopid?” to the components of an argument, in Chapter 5 of Dialogues: An Argument Rhetoric and Reader by Gary Goshgarian and Kathleen Krueger, the essay is properly structured. The introduction is in place, although it does not clearly state the thesis or position of the essay. If the target audience is not familiar with “A Space Odyssey by Stanley Kubrick” the desired effect will likely be lost resulting in confusion from the very beginning. Mr. Carr’s position on the implications and effects on the human brain is stated in the title and again in the second paragraph and is in clear contempt of the alleged outcome. He proffers that the media, which most of society divulge in, not only supplies the train of thought but may actually sculpt the train of thought. The sources that he refers to are a mix between being verifiable while others are identified...
Words: 1320 - Pages: 6