GLSL TASK: Create a shader which fills the screen with blue color. For the space occupied by right half of screen, introduce a vertical green bar located in the middle of it, with its width being equal to one-third of it. This should result in right half of screen being divided into three equal parts […]
Connecting MySQL to NetBeans When learning any programming language, at some point it may be necessary to extend your skills and knowledge by learning databases and connecting one to the IDE. In this tutorial we are going to discuss how to connect a MySQL database to NetBeans IDE to work with it using Java. First […]
Microsoft Word 2016 is more than just a word processing tool. Think of a specific document type that you might create, such as a resume, and describe what you think are the most important tools to use in Word to make your document stand out.
A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650. Youve been supplied with a list of the items sold by each salesperson. The values of these items are as follows:Item Value1 239.99 2 129.75 3 99.95 4 350.89Develop a C# application that inputs one salespersons items sold for the last week, then calculates and displays that salespersons total sales. Theres no limit to the number of items that can be sold by a salesperson. You do not have to implement this with classes and objects.Please see attachment for further guidance. There are more requirements for the assignment.
Use the Problem-Solving Strategy discussed in section 6.5 (pages 374 to 382) in the Prelude to Programming book to address solving the problem that has been given. Use the section 6.5 (pages 374 to 382) as a guide to what your documentation should include. This portion should be completed in a Word Document not exceeding 3 pages. Discuss your approach to securing your code from invalid data. Create and document test data to ensure it is error-free.
Given the text file citytpr.txt containing temperature readings for various cities, develop a Raptor algorithm to sort the temperatures in decreasing values. The sorted temperatures shall be written to a file called sortedcitytpr.txt. The content of the files citytpr.txt and sortedcitytpr.txt must be stored in the formats shown below. For each city, the citytpr.txt includes the city name and the temperature respectively. The solution must work for any arbitrarily large file ( i.e. the number of city-temperature records must not be hardcoded in the algorithm).The submission must be the Raptor file of your flowchart solution. Any other forms of submissions will be marked as zero. Content of citytpr.txtttawa10Hamilton4Victoria2Halifax14Regina11 Content of sortedcitytpr.txt Halifax: 14Regina: 11Ottawa: 10Hamilton: 4Victoria: 2Hint: it is a sorting problem, the solution must resemble something like the main chart for the insert, selection or the bubble sorting algorithm anyone of these will do. The only differences may be : (1) the sorting order (increasing or decreasing), (2) the swap. For the homework the swap must be applied to both temperatures and city names at the same time. For file reading check the example of Figure 7.9 (module 7).Store the city names and corresponding temperatures in two separate arrays. Make sure that for any city, its name and temperature are placed at the same index position of their corresponding arrays. The problem at hand can then be solved by sorting the temperature array (using any one of the sorting algorithms) while at the same time moving the positions of the names in the city array so that they match the positions of their corresponding city temperatures being sorted.
Sale-Receipt: Write a java program that specifies four parallel one-dimensional arrays to store the product name, quantity and cost-plus ItemTotal. Each array should be capable of holding a number of elements provided by user input. Using a for loop input values for length and width arrays. The entries in the area arrays should be the corresponding values for the product, which is to be used to calculate the costs as follows (thus, itemTotat[i] = quantity[i]* cost [i]) after data has been entered display the following receipt as output: Product Quantity Cost Total Banana 4 2.65 10.60 coke 1 9.18 9.18 Sub-Total 19.78 VAT(15%) 2.97 TOTAL N$ 22.75 ample Run1 Enter the number of products: 2 Enter product 1 name, Qty and Cost: Banana 4 2.65 Enter product 1 name, Qty and Cost: Coke 1 9.18 Output1: Product Quantity Cost Total Banana 4 2.65 10.60 coke 1 9.18 9.18 Sub-Total 19.78 VAT(15%) 2.97 TOTAL N$ 22.75
Janet Lopez is establishing an investment portfolio that will include stock and bond funds. She has $720,000 to invest and she does not want the portfolio to include more than 65% stocks. The average annual return for the stock fund she plans to invest in is 18% whereas the average annual return for the bond fund is 6%. She further estimates that the most she could lose in a year in the stock fund is 22% whereas the most she could lose in the bond fund is 5%. To reduce her risk, she wants to limit her potential maximum losses to $100,000
Implement a GUI app to load stock information from StockData.csv, allow user to Search specific companys stock history information, and display the search result in a DataGrid, and the result should be sorted according to the date. Clean the data by removing those rows that the price contains negative value while the data is loading. Add Progress bar to the status bar to indicate the progress of file loading.Using Asynchronous and Parallel programming.