top of page

Search Results

737 results found with an empty search

  • HTML Web Application

    For the final project, you are required to create three HTML pages (a Home page, a Products page, and a Contact Us page) and one CSS file that will be applied to all three HTML pages. In this folder, I have provided additional files you need for this assignment (the images needed for the different pages, the main body of text for the home page, and images of each of the finished pages). You should have a minimal amount of formatting instructions in your HTML files; most formatting should be done using CSS. While I understand that your final project may not be identical to mine (e.g., the padding, margins, or width you specify for an element may be slightly different from mine), I do expect it to be fairly close. Furthermore, your solution should not be identical to that of one of your classmates. There are multiple ways you can go about achieving the end result and it would be very rare if two people developed an identical solution. I don’t mind if you share ideas about how to structure the HTML or which CSS properties to use to achieve a certain result; however, this assignment is to be an individual effort. Here are some tips for completing this assignment. Colors • Background colors: • Body: #a79e90; • Header and Main: #bdb4a5 • Set the background color of the textbox, textarea, and checkbox controls on the Contact Us page to #f3f1eb. • Text, links, and borders: #143963 Fonts • The text in the header needs to be: Papyrus, 50px, bold. • The links on the left-hand side are: Papyrus, bold, 24px • The text with the business address in the footer is Papyrus, 16px, bold, #143963 • All other text is Papyrus 18px, bold, #143963 Links • When a user hovers over a link, the text (not the background) should turn to the following color: #f3f1eb • You must use the image of the starfish provided in the images folder as a marker for the links on the left-hand side of the page (see tips section below for more details). • The Products link on your Home and Contact Us pages should link to the Products page. • The Contact Us link on your Home and Products pages should link to the Contact Us page. The Home link on the Products and Contact Us pages should link to the Home page Images • You will need to set the size of the image in the header to: width=”110” and height=”110” • You will need to set the size of the beach bag, towel, umbrella, and beach cart images to: width=”80” and height=”80” Validation • When a user clicks the Submit button on the form in the Contact Us page, I want you to use JavaScript (inside the head element of the Contact page) to verify that the First Name, Last Name, Email, and Phone text boxes are not blank (hint: the condition should check to see if they are < 1). If any of them are blank, please use an alert box to notify the user that they need to include whatever information is missing. Additional Tips • Create a template that can be used for each of the HTML pages, as the header, main, footer, and navigation sections stay the same on every page. The only content that changes is the center part in main. • Use a table to hold the images and prices of the various products on the Products page. • Use a table to organize the labels and form controls on the Contact page • Rather than use display:block to change the natural display of the links from inline elements to block-level elements, use display:list-item instead and then use the list-style-image property to change the marker (the bullet) next to the links to the starfish image (see Module 8 slides for details). Please create a folder with all of your files (including the images), zip the folder, and upload the folder to Blackboard under the ‘Final Project” assignment. Supported Images: Product: Contact Us: Home: Head Logo: Beach-Umbrella: Are you looking for HTML, CSS, JavaScript Web Programming experts to solve your assignment, homework, coursework, coding, and projects? Codersarts web developer experts offer the best quality web programming, coding or web programming experts. Get Web Assignment Help at an affordable price from the best professional experts Assignment Help. Order now at get 15% off.

  • Spanish Vocabulary Helper Translator Using Java - Sample Assignment

    For this assignment, we are going to work with adding and removing data from arrays, linear search, and File I/O. 1. In addition, you will learn to work with parallel arrays. This program will assist an English-speaking user to build their vocabulary in Spanish This program will read a file containing a list of words in English and another containing the translation of those words in Spanish. The words and corresponding translations should to be stored in two separate but parallel arrays. 1. In other words, the indices of the English words array will match the indices of the Spanish words array. 2. Thus the word in English at index 0 in the first array, will match the translation at index 0, in the second array, and so on. You may assume that the user will not store more than 1000 words and translations. 3. Therefore, your arrays should be declared of length 1000. Create two new text files inside of your project folder in Eclipse: Name these text files english.txt and spanish.txt Copy and paste the following alphabetized list of English words into the english.txt file: bear black blue cat cow dog fall gray green purple red spring summer to be to be able to go to love winter white yellow Copy and paste the following list of Spanish translations of the above words into the spanish.txt file: oso negro azul gato vaca perro otono gris verde morado rojo primavera verano ser poder ir amar invierno blanco amarillo Read in the words from each file into two separate arrays, one array called arrayEnglish and one array called arraySpanish. Hint: you can use a variable to count how many values are in each file as you are reading in the data, and use this information to save the number of values currently stored in each array? Next, you will need to write a menu-driven program to allow the user to complete 3 tasks: Add a new word and its translation (choice 1) Remove a word and its translation (choice 2) Display the Spanish translation of an English word (choice 3) Quit (choice 4) For the add menu option, the program should do the following: Prompt the user for a word in English and its transation in Spanish, and a position in the arrays at which to insert these new words. Call the insert method twice to insert each word in the correct array Hint: don't forget to update the count of words For the remove menu option, the program should do the following: Prompt the user for the word to remove in English. Search for the position of this word inside arrayEnglish If the word is not in the array, it should provide an error message to the user (see sample output below) Otherwise, remove the word and its translation in Spanish Hint: don't forget to update the count For the search for a translation menu option, the program should do the following: Prompt the user for the a word to search in English. Search for the position of this word inside arrayEnglish If the word is not in the array, it should provide an error message to the user (see sample output below) Otherwise, display the word and its corresponding translation in Spanish For the exit menu option, the program should do the following: Prompt the user to enter the name of a file in which to print the words End the program Note: that you should also provide an error message if the user types an incorrect menu option (see sample output below) or if the array is full and no new values can be added (hint: you can make a check in your menu option 1 for this case) To begin, copy and paste the starter code into a file called Translator.java Make sure that you implement and call all of the methods whose signatures are specified below Note that you made add any additional methods that you like to complete the program When your program is working *identically* (including spacing and wording!) to the sample output, please upload Translator.java to Canvas. Code Script: /** * @author * @author * CIS 36B */ import java.util.Scanner; import java.io.File; import java.io.IOException; import java.io.PrintWriter; public class Translator { public static void main(String[] args) throws IOException { System.out.println("Welcome to the Spanish Vocabulary Builder!"); String choice = "", word1 = "", word2 = ""; int pos = -1; int countValues = 0; boolean flag = true; File englishFile = new File("./english.txt"); File spanishFile = new File("./spanish.txt"); String arrayEnglish[] = new String[100]; String arraySpanish[] = new String[100]; Scanner english = new Scanner(englishFile); Scanner spanish = new Scanner(spanishFile); while(english.hasNextLine()) { arrayEnglish[countValues] = english.nextLine(); arraySpanish[countValues] = spanish.nextLine(); countValues++; } Scanner input = new Scanner(System.in); do { System.out.println("\nBelow are the words in English: "); printArrayConsole(arrayEnglish, countValues); System.out.println("Please select a menu option below (1-4):"); System.out.println("\n1. Add a new word\n" + "2. Remove a word\n" + "3. View a word's translation\n" + "4. Quit"); System.out.print("Enter your choice: "); choice = input.next(); if(choice.equals( "1")) { System.out.print("Enter the word to add in English: "); word1 = input.nextLine(); System.out.print("Enter book's Spanish translation: "); word2 = input.nextLine(); System.out.print("Enter the alphabetical position in the list for book(0- " + countValues + "): "); pos = input.nextInt(); insert(arrayEnglish, countValues, pos, word1); insert(arraySpanish, countValues, pos, word2); countValues++; } else if (choice.equals("2")) { System.out.print("Enter the word to remove: "); word1 = input.nextLine(); pos = linearSearch(arrayEnglish, word1, countValues); if (pos == -1) { System.out.println("Sorry! That word does not exist in this dictionary."); } else { pos = linearSearch(arrayEnglish, word1, countValues); remove(arrayEnglish, countValues, pos); remove(arraySpanish, countValues, pos); countValues--; } } else if (choice.equals("3")) { System.out.print("Enter the word in English: "); word1 = input.nextLine(); pos = linearSearch(arrayEnglish, word1, countValues); if (pos == -1) { System.out.println("Sorry! That word does not exist in this dictionary."); } else { System.out.println(arrayEnglish[pos]+" = "+arraySpanish[pos]); } } else if (choice.equals("4")) { System.out.print("Enter the name of the output file: "); File outFile = new File(input.next()); printArraysFile(arrayEnglish, arraySpanish, countValues, outFile); System.out.println("You may now open " + outFile + " to view the translations."); System.out.println("Goodbye!"); } else { System.out.println("That menu option is invalid. Please try again."); input.nextLine(); } } while(!choice.equals("4"));} /** * Inserts a String element into an array at a specified index * @param array the list of String values * @param numElements the current number of elements stored * @indexToInsert the location in the array to insert the new element * @param newValue the new String value to insert in the array */ public static void insert(String array[], int numElements, int indexToInsert, String newValue) { if (array.length == numElements) { System.out.println("Array is full. No room to insert."); return; } for (int i = numElements; i > indexToInsert; i--) { array[i] = array[i-1]; } array[indexToInsert] = newValue; } /** * Removes a String element from an array at a specified index * @param array the list of String values * @param numElements the current number of elements stored * @param indexToRemove where in the array to remove the element */ public static void remove(String array[], int numElements, int indexToRemove) { for (int i = indexToRemove; i < numElements - 1; i++) { array[i] = array[i + 1]; } return; } /** * Prints an arrays of Strings to the console * in the format #. word * @param words the list of words in English * @param numElements the current number of elements stored */ public static void printArrayConsole(String[] words, int numElements) { for (int i = 0; i < numElements; i++) { System.out.println(i + ". " + words[i]); } } /** * Prints two arrays of Strings to a file * in the format #. english word: spanish word * @param english the list of words in English * @param spanish the list of corresponding translations in Spanish * @param numElements the current number of elements stored * @param file the file name */ public static void printArraysFile(String[] english, String[] spanish, int numElements, File fileName) throws IOException { PrintWriter output = new PrintWriter(fileName); for (int i = 0; i < numElements; i++) { output.println(i+". "+english[i]+": "+spanish[i]); } } /** * Searches for a specified String in a list * @param array the array of Strings * @param value the String to search for * @param numElements the number of elements in the list * @return the index where value is located in the array */ public static int linearSearch(String array[], String value, int numElements) { for (int i = 0; i < numElements; i++) { if (array[i].equalsIgnoreCase(value)) { return i; } } return -1; } } Are you looking for Java Web and console-based Programming experts to solve your assignment, homework, coursework, coding, and projects? Codersarts web developer experts and programmers offer the best quality Java web and console-based Programming programming, coding or web programming experts. Get Web Assignment Help at an affordable price from the best professional experts Assignment Help. Order now at get 15% off. CONTACT NOW

  • Java Console Application For Recovering COVID-19

    Assignment task Write a java console application for calculating the chance of recovering from COVID-19 based on age and past statistics about COVID-19 recoveries and deaths. The example data statistics such as age range, age group, number of patients, number of recovered patients, and number of deaths are shown below in Table 1. The application should ask the user to enter the age for each patient and calculate the chance of recovering in percentage and age group for each patient. The application should run for N times (N is number of patients). N should be declared as a constant and it should be equal to the largest digit of your student ID number (e.g. if your ID number is S334517 then N should be equal to 7 and you can declare it as final int N=7). The application should display the chance to recover (e.g. (recovered patients/patients) * 100) and age group for each patient as shown in the example below. At the end of the Nth patient, the details such as age of youngest patient, age of oldest patient and average age of all patients should be displayed. Output Formate: Example for N=6 Enter the age for patient 1: 29 The chance to recover for patient 1 is 99.98% The age group for patient 1 is 1 Enter the age for patient 2: 61 The chance to recover for patient 2 is 98.83% The age group for patient 2 is 3 Enter the age for patient 3: 55 The chance to recover for patient 3 is 99.84% The age group for patient 3 is 2 Enter the age for patient 4: 86 The chance to recover for patient 4 is 80.52% The age group for patient 4 is 5 Enter the age for patient 5: 73 The chance to recover for patient 5 is 95.57% The age group for patient 5 is 4 Enter the age for patient 6: 94 The chance to recover for patient 6 is 16.00% The age group for patient 6 is 6 Code Script: Patient.java package com.myfirstprogramme; //import java.util.Scanner; public class Patient { // instance variable/constant declarations private int patientAge; private int ageGroup=0; private int patients=0; private int recoveredPatients =0; private int youngestPatientAge; private int oldestPatientAge; private int avgAge=0; public Patient(int patientAge,int youngestPatientAge, int oldestPatientAge,int avgAge) { // constructor to initialize the values of private variables this.patientAge= patientAge; this.youngestPatientAge= youngestPatientAge; this.oldestPatientAge=oldestPatientAge; this.avgAge = avgAge; } // under the patientGroup method comapre agegroup public void patientGroup() { if (0 < patientAge && patientAge<=49) { ageGroup=1; patients=5200; recoveredPatients=5199; }else if (50<=patientAge && patientAge<=59) { ageGroup=2; patients=1300; recoveredPatients=1298; }else if (60<=patientAge && patientAge<=69) { ageGroup=3; patients=1200; recoveredPatients=1186; }else if (70<=patientAge && patientAge<=79) { ageGroup=4; patients=1700; recoveredPatients=669; }else if (80<=patientAge && patientAge<=89) { ageGroup=5; patients=190; recoveredPatients=153; }else if (patientAge>=90) { ageGroup=6; patients=25; recoveredPatients=4; } } //Method patientChanceToRecover public double patientChanceToRecover() { // code to calculate chance to recover using following formula // chance to recover (%) = (recovered patients/patients for that age group in Table 1) * 100 patientGroup(); prepareReport(); double chanceToRecover= ((double)recoveredPatients/(double)patients)*100; return chanceToRecover; } //under prepareReport method comparing youngest age and oldest age public void prepareReport(){ if (youngestPatientAge>patientAge) { youngestPatientAge=patientAge; } if (oldestPatientAge<patientAge) { oldestPatientAge=patientAge; } avgAge = avgAge+patientAge; } //getters to get the values of private vriables public int getRecoveredPatients() { return recoveredPatients; } public int getYoungestPatientAge() { return youngestPatientAge; } public int getOldestPatientAge() { return oldestPatientAge; } public int getAvgAge() { return avgAge; } public int getPatientAge() { return patientAge; } public int getAgeGroup() { return ageGroup; } public int getPatients() { return patients; } } PatientTest.java package com.myfirstprogramme; import java.util.Scanner; public class PatientTest { public static void main(String[] args) { //Variables used in the application final int noOfPatients; int patientAge=0; Patient patient=null; int youngestPatientAge =99999; int oldestPatientAge =0; int avgAge=0; System.out.println("Welcome To COVID-19 Patient Data"); Scanner sc = new Scanner(System.in); System.out.print("Please enter the number of patients "); noOfPatients=sc.nextInt(); System.out.println(); for (int i = 1; i <=noOfPatients; i++) { System.out.print("Please Enter the age of Patient "+ i +" "); patientAge = sc.nextInt(); patient =new Patient(patientAge,youngestPatientAge,oldestPatientAge,avgAge); System.out.println("The chance to recover for patient "+ i +" is "+ patient.patientChanceToRecover()); System.out.println("The age group for patient "+ i +" is " + patient.getAgeGroup()); System.out.println(); youngestPatientAge = patient.getYoungestPatientAge(); oldestPatientAge= patient.getOldestPatientAge(); avgAge= patient.getAvgAge(); } System.out.println("--------------------------------------------------Report----------------------------------------------------------"); System.out.println("Age of youngest patient: "+ patient.getYoungestPatientAge()); System.out.println("Age of oldest patient: "+ patient.getOldestPatientAge()); System.out.println("Average age of all patients: "+ (double)patient.getAvgAge()/noOfPatients); System.out.println("-------------------------------------------------------------------------------------------------------------------"); System.out.println("Exiting the application"); //closing resources sc.close(); } } Are you looking for Java Web and console-based Programming experts to solve your assignment, homework, coursework, coding, and projects? Codersarts web developer experts and programmers offer the best quality Java web and console-based Programming programming, coding or web programming experts. Get Web Assignment Help at an affordable price from the best professional experts Assignment Help. Order now at get 15% off. CONTACT US NOW

  • Data Visualization With Python | Sample Assignment.

    Consider the kaggle dataset derived from the IMDB database available at https://www.kaggle.com/stefanoleone992/imdb-extensive-dataset We can interpret this dataset as a network of movie actors, where the actors are connected by the number of movies in which they appear together. A similar network of book characters is depicted in the course materials by an adjacency chart and a force directed graph. However, there are too many actors in the IMDB dataset to depict the entire network in this fashion. Design and implement a visualization that will allow the user to explore the relationships in the network. Apply any data reduction or other techniques you can justify to produce an effective visualization. There is a file called movies.csv dataset thats what I need to include in my graph which is either an adjacency chart or force-directed graph whichever is more suitable. I need only one of them. I need to connect the actors that appeared together in a movie. However, the dataset is massive so I would need to do data reduction in order to make it visible and professional. Please include description and how you did it. Deadline is on Wednesday. Please let me know how much and when it can be completed. If you need a complete solution of this using python machine learning then CONTACT US and get instant help at an affordable price.

  • Programming Languages to Making Innovative Android App

    Take a minute to think about how many times you use an app in a day? Multiple times, isn’t it? In fact, there is probably an application waiting to be discovered in your app store for every possible human need. Therefore, it is no surprise that the demand for mobile applications has been on a steady rise ever since the smartphone was invented. Kotlin Said to be the advanced version of Java – Kotlin is a statistically typed programming language used for developing modern Android applications. Kotlin is a really best language for apps. Kotlin has the potential to influence other programming languages such as JAVA to make high-performing and robust apps. Some popular apps built-in Kotlin are Trello, Evernote, Coursera, and many more. Clean, concise, and perceptive syntax increases team efficiency. Interoperable and versatile and can easily overrule the shortcomings of JAVA. Has full support from Google and IDE’s installation packages including Android and SDK toolkit. Generates compact, simple, and cleaner code as compared to JAVA. Java : Java is an official Android development – object-oriented programming language. With in-built open-source libraries readily available for users to choose from, JAVA is easy to handle and offers the best documentation and community support. With JAVA’s vibrant spectrum of features, you can develop the best cross-platform apps, Android apps, games, server apps, embedded space, websites, and more. Popular for code reusability and portability JAVA codes can run in multiple environments, virtual machines, browsers, and different platforms Safeguards developers against issues inherent in native code, memory leaks, etc. Flexible, versatile, portable, and platform-independent programming language Explicit interface, simplified, and machine-independent language Hire an android developer to get quick help for all your android app development needs. with the hands-on android assignment help and android project help by Codersarts android expert. You can contact the android programming help expert any time; we will help you overcome all the issues and find the right solution. Want to get help right now? Or Want to know price quote

  • Inventory Management System Using JavaFX

    Guidelines – Please read carefully: I. This assignment/module is used to assess your object-oriented design and programming skills. Hence, any use of databases and query languages (e.g. SQL) is strictly prohibited and would result in a fail grade. Brief: Design, implement and test an inventory management system for a real estate agent in Northampton using object-oriented principles in Java FX. The design should include class diagrams. Testing should include both the white box (JUnit tests) and the black box (test logs). Consider the following requirements: The agent sells/rents houses (detached, semi-detached, terraced), flats, and bungalows in different areas of Northampton such as Abington, Far Cotton, Duston, Wootton, and so on. Each accommodation has a minimum of 1 bedroom and a maximum of 5 bedrooms. Here are the specific requirements: Basic System Requirements: The system must allow the agent to: 1. Record details of a new customer (name, phone number, current address, etc.) 2. Display houses for sale (details of each house – detached, bedrooms, bathrooms, garden, etc.) 3. Sell houses to customers (i.e. record details of sales transaction) 4. Generate a sales invoice including details of agent fees of 1.5%. 5. Record payment for each customer. 6. Permanent storage and retrieval of all records (object serialization or text/CSV files). Enhancements (in order of importance – high to low): Additional features that you may include are as follows: 7. Search for a house by property type (e.g. detached house, flat, bungalow), area, price range, number of bedrooms, bathrooms, status (sold/unsold/on offer). 8. Display houses for rent (including rental price) and generate several invoices (initial invoice including deposit, agent fees, and one month’s rent; monthly rental invoices; final invoice at the end of contract including any deduction for damage). Assume the deposit to be three times the monthly rent and agent fees to be £300.00. 9. Ability to automatically generate and send emails containing monthly rental invoices (as attachments) to all customers. 8. Input/update inventory information (i.e. add/modify stock, prices) 10. Send an email containing the invoice as an attachment (pdf file) to the customer 11. Record a customer waiting list when accommodation is unavailable and notify them when it becomes available 12. Role based access (e.g. separate accounts for sales person, stock manager and administrator) 13. Login feature for the system These additional features are only suggestions and are not exhaustive. You may include any other useful features relevant to this application. You may make assumptions regarding any other specifications not detailed in this brief. Deliverables: All requirements (A, B and C below) MUST be delivered to achieve a passing grade for this assignment. A) Technical Report The report should consist of the following sections (in the same order): 1. Username and password for all relevant accounts (if implemented) 2. UML Class Diagrams showing relationships between the main classes in the model 3. A list of all the features implemented in a tabular format. For example: 4. Explanation of the main sections/fragments of the code. Provide information that would be useful for another developer (not an end user!) who may want to extend/maintain your system. You may want to refer to the class diagrams to explain code. 5. Screenshots of the system showing all key features 6. Evidence of Testing: a. Blackbox Testing: Test logs providing information of all the tests carried out (including any failed tests for functionality not implemented) b. Whitebox Testing: Code Listing of the JUnit test case for at least two methods. c. List of any bugs and/or weaknesses in your system (if you do not think there are any, then say so). Bugs that are declared in this list will lose you fewer marks than ones that you do not declare. 6. References If you have borrowed some code from elsewhere (e.g. from a book or some resource on the web you must indicate clearly what they are and include references). B) Source Code The source code must be well documented with necessary comments. Consistent and clear indentation of the code is also important. Source code needs to be submitted in two forms: (i) As a single ZIP archive (.zip file consisting of all “.java” files, unit tests, data files, executable jar). Note: It is important to submit an executable jar. You will be penalized for not submitting it. (ii) A commented full listing in a separate Word document named “Full Source Code Listing”. C) Video Demonstration In addition to the report, you must submit a video demo (URL) of your assignment. The demo should be about 10 minutes long (maximum:15 minutes) and should cover all of your work in a logical way. You should explain the main phases of design and implementation covering the main fragments of code. Your voice needs to be clear for the marker to hear. It should also include a walkthrough of using the software and must demonstrate the key features. The module tutor reserves the right to invite you for an online viva-voce. Poor demo/viva could negatively influence other sections in the marking criteria. Submission Procedure: TWO separate WORD documents. [Document 1 = Report & Document 2 = FullSourceCodeListing] Contact us for this JavaFx assignment Solutions by Codersarts Specialist who can help you mentor and guide for such JavaFX assignments.

  • Food Menu App Using Rest

    In This App User can see the list of food, Recipe link related to that food, image of food into the app, If user click any food into the list user is able see the recipe of that food, & into the top of the app user can see the search icon to search which he and likes. There is a navigation view into the navigation user can see logout button , list of recipe and setting button. Concepts Use Menu Navigation SearchView Models ArrayAdapter ListView Fragment Rest Api OnclickListener Tools and Technologies Android Studio As the official integrated development environment for all Android applications, Android Studio always seems to top the list of preferred tools for developers. Android Studio provides code editing, debugging, and testing tools all within an easy-to-use drag-and-drop interface. It is free to download and is supported not only by Google, but also by a large and actively engaged community of Android developers. ADB (Android Debug Bridge) Android Studio includes the Android Debug Bridge, which is a command-line tool or “bridge” of communication between Android devices and other computers that can be used during development and the overall debugging and QA process. By connecting an Android device to the development PC and entering a series of terminal commands, a developer is able to make modifications as needed to both devices. AVD Manager As we mentioned above, there was Eclipse before there was Android Studio. For a long time, Eclipse was the officially preferred IDE for all Android application development. Even though Google no longer offers support for Eclipse, many developers still use it to create Android and other cross-platform apps, as it works very well with many different programming languages. Java The mobile edition of Java is called Java ME. Java ME is based on Java SE and is supported by most smartphones and tablets. The Java Platform Micro Edition (Java ME) provides a flexible, secure environment for building and executing applications that are targeted at embedded and mobile devices.\ Hire an android developer to get quick help for all your android app development needs. with the hands-on android assignment help and android project help by Codersarts android expert. You can contact the android programming help expert any time; we will help you overcome all the issues and find the right solution. Want to get help right now? Or Want to know price quote GitHub : https://github.com/rishabh1422/music

  • Introduction To Java and object-Oriented Programming

    Introduction This is coursework assignment 1 (of two coursework assignments in total) for 2020–2021. The assignment asks that you demonstrate an understanding of variables, random numbers, user input with the Scanner class, the “if – else” statement, loops and static methods with their return types. In addition, this assignment considers how to write code that is readable. Electronic file you should have: StringMangler.java What you should hand in: very important You are asked to submit one Java file so there is no reason to compress your submission, or to submit it in a directory. There is one mark allocated for handing in an uncompressed file – that is, students who hand in a zipped or .tar file or any other form of compressed file can only score 99/100 marks. There is one mark allocated for handing in just the file asked for without putting it in a directory; hence, students who upload their file in a directory can only achieve 99/100 marks. There is one mark for naming the Java file that you have been asked to submit exactly as asked. This means that your Java file should be named StringManglerTwo.java and should contain a public class called StringManglerTwo. Please note that since Java is case sensitive Stringmanglertwo.java is not the same file name as StringManglerTwo.java; please be exact. Sometimes students add identifying information to their Java files, meaning that the class name and the file name differ, and the file will not compile. For example: JSmith_StringManglerTwo.java cwk1-StringManglerTwo.java JSmith-CO1109-assignment1-StringManglerTwo.java StringManglerTwo .java (note space before full stop) Files that do not compile because of a clash between the file name and the class name will be marked. Furthermore, submissions that do not compile for any other reason will not receive any marks. The examiners will compile and run your Java program; students who hand in files containing their Java class that cannot be compiled (e.g. PDFs) will not be given any marks for the assignment. The examiners wish to read your Java code, so class files will not be marked. Any student giving in only a class file will not receive any marks for the coursework assignment, so please be careful about what you upload as you could fail if you submit incorrectly. Please put your name and student number as a comment at the top of your Java file. Java Version Please use Java 11 or later versions of Java for this coursework assignment. The StringMangler class You have been given the StringMangler class. The class offers the user various options, all of which take a String as input and return the input String altered in some way. Compile and run the program. You should see a menu, as follows: Welcome to the String Mangler Available commands: VOWELCASE swap the cases of all vowels in ASCII show the ASCII character codes for every letter in SWAP swap the first and last characters of RANDOM swap a random character in with a randomly generated character INGIFY if a word in the ends with "ing", have it end with as many 'ing's as the word is long DEMATHS remove any potential mathematical symbols from DEDUPE remove all repeated letters in DIGRAPHS capitalise the most common digraphs in English that are found in MIDREPEAT repeat the middle of words in the 3 times if the word is of an even length, 5 times if it's of an odd length PAIRSWAP swap around every 2 letters in ZIP split in half and interleave the 2 halves together INSERT add # or ~ to after every 3 characters, depending on if the string length is even or odd REPEATSWAP swap the most common repeated letters in the English language (SS <-> FF & TT <-> EE) QUIT exit the String Mangler Enter command: The user can choose any item from the menu. For example, the user chooses DEMATHS, followed by SWAP: Enter command: demaths hello what is the square root of -1? Warning! Your text contained mathematics. Decontaminated text follows: hello what is the square root of ? Enter command: swap hello! !elloh Enter command: You should test each of the menu options and make sure you understand what they do. Reason for using Java 11 (or later versions) The StringMangler class uses String methods extensively. One of these methods, String.join() was introduced in Java 8, and another, String.repeat() in Java 11. If you use a version of Java that is earlier than 11, the repeat() method will give a compilation error, and if the version of Java you use is also earlier than 8, the join() method will give another compilation error. You can read the documentation on these methods in the Java 11 String API: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html Class variables Note that variables have a scope, generally the set of brackets inside which they are declared. When a variable is in scope it means that it can be accessed and used. Variables are generally only in scope where they are declared. For example: for (int i = 0; i < word.length-1; i += 2) {i++;} the variable i is only in scope inside the for loop, as it is declared in the for loop. Once the loop ends i is out of scope and cannot be accessed. Variables can be local to methods, that is, variables declared inside a method are in scope only inside the method. Variables declared in a loop would be local to the loop. In general, if a block of code is delineated by brackets, then any variable declared immediately inside those brackets is only in scope within the brackets, and effectively does not exist outside of them. The StringMangler class has two class variables. Class variables are static variables that are declared inside the class, but outside of all the class's methods. Class variables can be accessed by methods within the class without needing to be included in the method’s parameter list since they are in scope anywhere in the class. The StringMangler class has two class variables, a Scanner object called userInput, and a variable of Random type called random. Writing your own methods You are asked to alter the structure of the StringMangler class by reorganising the class into methods in order to make the class both more readable and more reflective of the objectoriented programming paradigm (in the object-oriented programming paradigm, methods should have one task to do). Try to keep your methods short, since, in general, the shorter a method is, the easier it is to read. Note that a method may have an overarching task, which the method’s name should describe, but it may be that the task undertaken by some methods could be broken down into further sub-tasks, and some or all of these sub-tasks could be performed by methods. Suppose that the main task of a method was to take a String and return a new String with the case of all vowels in the String changed. For example, the input String “Vowels are A, E, I, O and U” would return “VOwEls ArE a, e, i, o And u”. The method’s task can be broken down into sub-tasks such as breaking the input String into characters, finding the vowels in those characters and changing their case. The developer may choose to outsource one or other of these tasks to another method. For example, the method may invoke another method that takes a char and will return the char unchanged if it is not a vowel, and in a different case if it is a vowel. Hence, the String method to change the case of all vowels in a String might be more readable if it invokes a char method called ChangeCaseOfCharIfVowel or ChangeCaseOfVowels or similar. When making decisions about whether the methods you write should in turn invoke other methods, please always bear readability in mind (see the Appendices for details). That is, invoking sub-methods can make your methods more readable, but too much of methods invoking methods will make your class less readable. What methods to write, and if and how to break methods into sub-tasks with their own methods, is a matter for your judgement. Changing logic or syntax To complete this coursework assignment, you will need to write some additional Java code to that already in the StringMangler class. You may wish to change some of the code given to you but remember the StringMangler class works as it is. Your challenge is not to change the behaviour of the class, but to redesign the class using methods. Mark deduction for recursive methods When putting code into methods, you may wish to keep the logic and syntax of the statements being put into a method. You are free to rewrite existing code, provided that your revised StringMangler class does everything that the original class did. If you do rewrite existing code that is in a loop, please do not use recursion for iteration (or for any other reason). Make sure that any loops are for, while or do/while loops. If you use recursion (where methods call themselves) for iteration you will lose marks, so please make sure that none of your methods are recursive. Note that in general, care must be taken when using recursion for iteration, as recursive methods can be very heavy on the memory, potentially leading to applications ending with a StackOverflowError. Recursion can be a good solution for certain problems, but care must always be taken to make sure that recursive methods are not using so much memory that they compromise overall performance Coursework assignment 1 Please complete the following five Tasks: Task 1 Note that the work of the StringMangler class is carried out entirely in the main method. Under the object-oriented programming paradigm, tasks performed in a class should be done by methods, and each method should perform only one task. Save the StringMangler class into a new class, called StringManglerTwo. In this class rewrite the StringMangler class such that all code is within a method, except for the statements: private static Scanner userInput; private static Random random; which are declaring class variables and should not be put into methods. Your StringManglerTwo class, when run by a user, should have exactly the same behaviour as the StringMangler class. You are not expected to write a constructor for the StringManglerTwo class, and instance methods are also not necessary. All of your new methods can be static methods Task 2 In your StringManglerTwo class, ensure the main method only contains method invocations. Task 3 The methods invoked by the main method of your StringManglerTwo class may vary, depending on how you have re-designed the StringMangler class, but one method all submissions should have is a method to run the user interaction loop. Your user interaction loop method should: ask the user for input parse the input into a command and a String take appropriate action. The method should repeat these steps until the user enters ‘quit’ and the run of the class ends. Hence your user interaction loop method should be the final method invoked by the main method. Your user interaction loop method should be doing its work with the help of other methods that it in turn, invokes. Task 4 Make sure to follow the advice given about readability in Appendix 1, sections 1.2–1.6. In particular: Give your methods, and any new variables you introduce, names that describe their purpose. Good names are partly subjective, so the examiners will accept any reasonable attempt, but clearly method names such as method1() and method2() will lose readability marks since they tell the reader nothing about the purpose and intent of the methods. Format your work in a way that is both consistent and readable. The StringMangler class that you have been given is formatted in a readable way, including indenting loops and if/else statements to show the control structure and make it easy to pick out the start and end of loops and if/else blocks. Any student submitting a StringMangler class with poorly formatted code will lose some marks for this Task Note that poorly formatted code is considered to be code that is formatted in such a way that the control structure is unclear. For example: //Good formatting private static String getShopLocationFromUser() { System.out.println("SHOP LOCATIONS:"); for (int i = 0; i < LOCATIONS.length; i++) { System.out.println((i+1) + ") " + LOCATIONS[i]); } int choice = getIntFromUser("Your shop’s number"); return LOCATIONS[choice-1]; } //Poor formatting private static String getShopLocationFromUser() { System.out.println("SHOP LOCATIONS:"); for (int i = 0; i < LOCATIONS.length; i++) { System.out.println((i+1) + ") " + LOCATIONS[i]); } int choice = getIntFromUser("The number that corresponds to your shop"); return LOCATIONS[choice-1]; } Task 5 Before you start work you should run the StringMangler class and make sure that you understand what it is doing. Once you have written your new version of StringMangler, test it. Correct any mistakes you find. If you find mistakes that you cannot correct then you must document them with a brief comment at the top of your class. If your testing reveals that the class works as you expect, please write a short comment to document this (a sentence will be enough). Make sure to test all the methods in your class. Failure to write a comment about testing will result in a loss of all marks for testing, even if your class works as it should. You should write no more than 100 words per issue found, for example if your testing discovers two issues, then you should write no more than 100 words to describe each issue, hence your total word count should be no more than 200. The examiners will run and test your submission. Provided that any issues with the class are documented in your comment, you will receive all available marks for this Task. You will lose all marks for this Task if the examiners find issues with the class that you have not documented with your comment, or if you do not write a comment about testing. Contact us for this Java assignment Solutions by Codersarts Specialist who can help you mentor and guide for such Java assignments.

  • FashionMNIST - PyTorch | Sample Assignment | Assignment Help

    Guidelines 1. You are allowed to work in pairs. 2. You are allowed to use numpy and scipy packages and PyTorch framework. 3. Technical questions about this exercise should be asked at the course’ piazza or during the TIRGUL. 4. Personal issues regarding the deadline should be directed to Yael Segal. 5. In order to submit your solution please submit the following files: (a) details.txt - A text file with your full name (in the first line) and ID (in the second line). (b) ex 4.py - A python 3.6+ file that contains your main function (attach ANY additional files needed for your code to run). (c) ex 4 report.pdf - A pdf file in which you describe your model and parameters. (d) test y - your model’s predictions on the given test set (see instructions below). Ex4 In this exercise you will implement, train and evaluate your neural network using PyTorch package. Installation First, you will need to install PyTorch package. Installation instructions were uploaded to the Piazza. Please follow them and discuss issues there. Data - FashionMNIST The same one from exercise 3. Each image is 28 pixels in height and 28 pixels in width, for a total of 784 pixels in total. Each pixel has a single pixel-value associated with it, indicating the lightness or darkness of that pixel. This pixel-value is an integer between 0 and 255. Labels. The possible labels are: T-shirt/top Trouser Pullover Dress Coat Sandal Shirt Sneaker Bag Ankle boot Instructions In this exercise you will implement fully connected neural networks via PyTorch. You will need to implement several settings and report the effect of each setting in terms of loss and accuracy. You should explore the following: 1. Model A - Neural Network with two hidden layers, the first layer should have a size of 100 and the second layer should have a size of 50, both should be followed by ReLU activation function. Train this model with SGD optimizer. 2. Model B - Neural Network with two hidden layers, the first layer should have a size of 100 and the second layer should have a size of 50, both should be followed by ReLU activation functionm, train this model with ADAM optimizer. 3. Model C - Dropout – add dropout layers to model A. You should place the dropout on the output of the hidden layers. 4. Model D - Batch Normalization - add Batch Normalization layers to model A. You should place the Batch Normalization before the activation functions 5. Model E - Neural Network with five hidden layers:[128,64,10,10,10] using ReLU . 6. Model F - Neural Network with five hidden layers:[128,64,10,10,10] using Sigmoid. In all these experiments you should use log softmax as the output of the network and nll loss function (see code example in recitation 8 slides). Training You should train your models using FashionMNIST dataset (the same one from ex. 3). You should train your models for 10 epochs each. You can use the code example we provide you in recitation 8 or in the PyTorch examples repository on GitHub. You should split the training set to train and validation (80:20). Note: you should load the train file for FashionMNIST manually (train files from ex3). Finally, you should use your best model to generate predictions for the examples in test x and write them into a file named test y, similarly to the previous exercise. Your predictions file should contain 5000 rows exactly. Note: Do not shuffle the test file Evaluation - Report Your report file, ex 4 report.pdf, should include the following for EACH model: 1. Plot the average loss per epoch for the validation and training set in a single image. 2. Plot the average accuracy per epoch for the validation and training set in a single image. 3. Test set accuracy (original FashionMNIST test set ). 4. Hyper parameters. Contact us for this machine learning assignment Solutions by Codersarts Specialist who can help you mentor and guide for such machine learning assignments.

  • Introduction of flutter and its widgets

    Why Flutter? One code base for both iOS and Android. Flutter is the only mobile SDK that provides reactive views without requiring JavaScript bridge. Flutter apps look and feel great. Make a change in the app and see them in the blink of an eye. All thanks to Hot-Reload. What’s up with “Dart”! Dart is a reactive language that talks similar to python in terms of ease of coding while keeping the power of native java under the hood. Widgets Flutter widgets are built using a modern framework that takes inspiration from React. The central idea is that you build your UI out of widgets. Widgets describe what their view should look like given their current configuration and state. There are broadly two types of widgets in Flutter. State-full Widgets and Stateless Widgets. The names are self-explanatory. State-full Widgets are sensitive to what happens within its boundaries and gets rebuilt when a state change is detected. Conversely, Stateless widgets are not state sensitive and remain static throughout its life cycle. import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(title: 'Calculator'), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: new Container( child: new Column(children: [ new Text("0"), // new Expanded(child: null), new MaterialButton(child: new Text("1"), onPressed: ()=> {}, color: Colors.blueGrey, textColor: Colors.white, ) ],), ) ); } } Hire an Flutter developer to get quick help for all your android |Ios app development needs. with the hands-on android assignment help and android project help by Codersarts android expert. You can contact the android programming help expert any time; we will help you overcome all the issues and find the right solution. Want to get help right now? Or Want to know price quote

  • Run Flutter App

    Flutter is an open-source UI software development kit created by Google. It is used to develop applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. The first version of Flutter was known as codename "Sky" and ran on the Android operating system Running flutter app first install vs Code and Dart extension in your visual studio code cmd for create flutter project Dart Code : for running emulator Run App : Hire an android developer | IOS to get quick help for all your android app development needs. with the hands-on android assignment help and android project help by Codersarts android expert. You can contact the android | ios programming help expert any time; we will help you overcome all the issues and find the right solution. Want to get help right now? Or Want to know price quote Please send your requirement files at contact@codersarts.com. and you'll get instant reply as soon as requirement receives

  • MySQL Assignment Help

    With the database in file organization.sql (attribute postal_address added) : / For each following question, give the SQL query which computes what is asked. Fill the database with data that allows you to verify that the query is working. Some data must satisfy the request and some not. Justify in the comments the relevance of the test data set. the last name and the first name of members born in 1999 ; the name and the phone number of members who live in Créteil ; for each role, the role description and the number of members with this role ; for each role, the role description and the date of birth of the youngest members ; / the name and the email address of members whose role is moniteur and who are the oldest ; the activity name and the numbers of members who practise the activity for activities with at least 10 members registered ; the name, the date of birth and the email of the youngest members who practise judo ; the names and the referrer names when the tutor is older than the member. B. Enrich the database by adding attributes or tables. Explain the choices. Fill in the new fields with data. Write 6 SQL queries using the new structure and comment in natural language on the role of the queries. Put in a zip archive the SQL file which contains the database and its contents as well as the SQL file with the queries for question A and the SQL file with the queries for question B and upload the zip file. Do not forget to put the names of the students in each file. Contact us for this MySQL assignment Solutions by Codersarts Specialist who can help you mentor and guide for such MySQL assignments. If you have project or assignment files, You can send at contact@codersarts.com directly

bottom of page