top of page

Search Results

737 results found with an empty search

  • Airport Management System Using Java | Java Project Assignment Help

    Airports are managed by a myriad of different information systems. In this assignment, we focus on one such system. You are required to complete a Java program that implements a basic Airport Gate Management System (GMS). The system is described in Section 2. It allows you to build a network of terminals and gates that incoming planes are assigned to. We do not concern ourselves directly with the departure process. Although superficially object-oriented, it does not sufficiently encapsulate the state of an airport. The main learning outcome of this assignment is to improve and justify your version of the GMS. We suggest you implement the initial version described in Section 3 and then refactor it. However, you are not obliged to do this. You are expected to submit a document containing a brief introduction stating what you have achieved, a critique of the initial GMS, and an annotated design of the improved version. Include code fragments and sample runs if you feel that they supplement your narrative. Your main document should not exceed ten pages. You should attach two appendices to your document, both using a small font. The first should contain your GMS and the second should contain your manual testing to highlight that your system performs correctly on both good and bad inputs. The use case given in this brief does not explore the boundary conditions so you will have to add more incoming flights to reveal the problematic scenarios. We are looking for your ability to apply object-oriented concepts through the Java language and your understanding of the pros and cons of various design decisions. Requirements Statement The GMS allows a client (a user or another software system) to create an airport with runways, terminals, and flights. Its main task is to manage runway selection and gate assignments. An airport has a number of runways, with potentially differing lengths. Large planes need long runways, midsize planes can land on either medium-sized runways or longer. Small planes can land on short runways or longer ones too. An airport has a number of terminals, each terminal has a number of gates. Every day there will be a list of planes that will be landing at the airport. You will need to schedule the runways and gates for each plane. The system consists of a GateManager that provides a single point of access to the functions provided (i.e., GateManager is a fa¸cade for the program – more information can be found by searching for the fa¸cade design pattern on the web). In this assignment, you will be required to implement the following functionality: Create an airport and give it a name. Create a number of distinct runways. Each can be either short, medium or long. Create a number of different airlines, each will have their own name. Create an arrival flight given an airline name, a numeric id, an arrival time, minimum size of runway needed, and a departure time. Develop a schedule that maps flights to runways and subsequently gates. Display the schedule. Required Classes for the Initial Version of the GMS 3.1 GateManager This class provides the interface (fa¸cade) to the system. That is, clients interact with the system by calling operations in the GateManager. The GateManager is linked to all the airport objects in the system. When it is created, the GateManager has no terminal, runway or airline objects linked to it. To create such entities, the createTerminal(), createRunway() and createAirline() operations defined in this class must be invoked. The class also contains operations to generate a schedule mapping incoming flights to runways and gates. createAirport(String n): Creates an airport object and links it to the GateManager. No two airports can have the same name. createTerminal(String n, int number): Creates a gate object and links it to the GateManager. A gate has a name and a number of gates. No two gates can have the same name. createAirline(String n): Creates an airline object with name n and links it to the GateManager. No two airlines can have the same name. createFlight(String anm, int id, String atm, Runway r, String dtm): Creates a flight landing request for an airline named anm, with a unique id number, and an arrival time atm given in 24 hour format, the size of runway r required, and a departure time dtm also given in 24 hour format. calculateFlightSchedule(): Attempts to match incoming flights with runways and terminals. It will report an error if not able to do so. displayFlightSchedule(): Displays flight landing details; including runway and gate allocation. 3.2 Terminal This class maintains information about terminals. When created a terminal will have a name and one or more terminals associated with it. 3.3 Runway This class maintains information about runways. When created a runway will have a name and a runway length; either short, medium or long. No two runways can have the same name. 3.4 Airline This class maintains information about airlines. An airline can have 0 or more flights associated with it. When created an airline is not associated with any flights. 3.5 Flight This class maintains information about incoming flights. All flights for a given airline must have unique flight identity numbers. They will have an expected arrival time and stipulate the minimum sized runway required in order to be able to land and take off. Flights will also know their departure time, small airplanes can be turned around in thirty minutes, medium-sized one’s require an hour. Large planes require ninety minutes to ensure passengers can disembark, the plane cleaned and the next set of passengers to be seated. Flights must have left their gate before they can be expected to return to the airport. Example Client Class The following is a sample class with a main() program that calls operations in the GateManager. public class ClientProg { public static void main(String args[]){ GateManager gm = new GateManager("Oxford Airport"); //Create terminals with number of gates gm.createTerminal ("T1", 4); gm.createTerminal ("T2", 8); //Create runways, with differing lengths gm.createRunway ("North",Runway.long); gm.createRunway ("South",Runway.medium); //Create airlines gm.createAirline("OXAIR"); gm.createAirline("BRITISH"); gm.createAirline("FLYCAM"); gm.createAirline("AIRFRANCE"); gm.createAirline("AERLINGUS"); //Create flights gm.createFlight("OXAIR", 1, "10:00", Runway.short, "11:00"); gm.createFlight("RYANAIR", 666, "10:05", Runway.medium, "10:30"); // invalid, undefined airline gm.createFlight("AERLINGUS", 45, "10:10", Runway.medium, "16:10"); gm.createFlight("OXAIR", 1, "10:30", Runway.short, "11:30"); // invalid, plane will have already arrived gm.createFlight("FLYCAM", 1, "11:00", Runway.short, "12:20"); gm.createFlight("BRITISH", 45, "11:30", Runway.long, "12:00"); // invalid, a large plane needs more time to turnaround gm.createFlight("AIRFRANCE", 909, "12:00", Runway.long, "19:00"); gm.createFlight("OXAIR", 2, "14:00", Runway.short, "15:00"); gm.createFlight("FLYCAM", 6, "15:00", Runway.short, "16:20"); gm.createSchedule(); gm.displaySchedule(); } } Object Flight based GMS The manner in which gate bookings are modelled in the Basic GMS is rather imperative. A more sensible object-based approach should be developed. Task 1: Critique the current implementation from a Software Engineering perspective. Design a more Object Oriented version, justifying your decisions, and implement it. Optional: Responding to High Demand In the current implementation, we can only book a runway and gate if there is availability. In practice, flights can circulate for up to half an hour before needing to land. Similarly flights can wait to be docked at a gate if there isn’t one available. Optional Task 2: We want to provide the facility to join a holding pattern so that same arrival time planes can circulate if need be. This can be modelled quite simply by extending the arrival time. A gap of five minutes is required between landings. Flights can wait on the tarmac for up to fifteen minutes to access a gate. Contact us for this Java assignment Solutions by Codersarts Specialist who can help you mentor and guide for such machine learning assignments. If you have project or assignment files, You can send at contact@codersarts.com directly

  • How To Start Online Z-Editor | Z-Notation Mathematics Assignment Help

    If you are looking z-notation project assignment help which is related below practice exercise then you can contact us so we can help you. How to start z-editor Click below link to start z-editor: z-editor.github.io/ Practice Exercise Question 1 A tautology is a statement that is true for every valuation of the propositional variables it contains; a contradiction is a statement that is false for every valuation of the variables; and a contingency is a statement that is neither a tautology nor a contradiction. Which of the following are tautologies, which are contradictions, and which are contingencies? (a) (p ^ ¬ p) ) (p _ ¬ p) (b) (p ) ¬ q) _ p (c) ((p ^ q) ) r ) , (¬ r ) ¬ (p ^ q)) In each case, you should present a truth table to justify your answer. Question 2 Using the algebra of propositional logic, rewrite the propositions of Question 1 in their simplest equivalent forms. (By simplest, we mean the form that has the fewest logical connectives.) In each case you should justify the rewriting through a chain of equivalences of the form (p ^ ¬ p) ) (p _ ¬ p) , ... Question 3 By constructing proof trees, show that the tautologies of Question 1 (if there are any) are theorems of the propositional calculus. In doing so, you may make use of any theorems proved during the course. Question 4 You have been asked to design (via a formal model) a prototype for a new online music platform called Streamify. (Note: all of the remaining questions will leverage the definitions of this question.) Three basic types are of initial interest: PlaylistId , SongId and UserId. [PlaylistId , SongId, UserId] A playlist consists of an injective, non-empty sequence of songs: Playlist == iseq1 SongId The initial specification of the system is as follows. songs : F SongId users : F UserId playlists : PlaylistId !7 Playlist playlist owner : PlaylistId !7 UserId playlist subscribers : PlaylistId !7 F1 UserId ... Complete the definition by capturing the following constraints. (a) Only songs that appear in songs can appear in playlists. (b) Only playlists that appear in playlists can appear in playlist owner. (c) Only users that appear in users can appear in playlist owner. (d) Only playlists that appear in playlists can appear in playlist subscribers. (e) Only users that appear in users can appear in playlist subscribers. (f) Every playlist’s owner is, by default, a subscriber to that playlist. Question 5 Users can love or hate songs. This information is captured via the following. hated : UserId !7 F SongId loved : UserId !7 F SongId ... Complete the definition by capturing the following constraints. (a) Only users that appear in users can appear in hated. (b) Only songs that appear in songs can appear in hated. (c) Only users that appear in users can appear in loved. (d) Only songs that appear in songs can appear in loved. (e) No user can both hate and love the same song. Question 6 Show how the following — all of which rely on the definitions of the previous two questions — can be represented via the mathematical language of Z. (a) The users who have subscribed to no playlists. (b) The playlists with at least 100 subscribers. (c) The user who loves the most songs. (You should feel free to assume that there is a unique such user.) (d) The song that is loved by the most users. (Again, you should feel free to assume that there is a unique such song.) Question 7 Let’s now consider two further functions. The first, length, maps a given song (identifier) to its length (in seconds). The second, popularity, assigns a popularity score to each song (identifier). length : SongId !7 N popularity : SongId !7 N ... (a) Complete the above definition, so that: songs appearing in length and popularity must appear in songs; and the popularity of a score is determined by the difference between the number of people who love it and the number of people who hate it — with a non-positive score capped at 0 — multiplied by the number of playlists in which it appears. So, for example, if a song is liked by 6 people, hated by 3 and appears in 10 playlists, then its popularity score will be 30. If, on the other hand, a second song is liked by 3 people, hated by 6 people and also appears in 10 playlists, then its popularity score will be 0. (b) Define, via an axiomatic definition, the most popular song in that appears in songs. If there is not a unique such element, the function should return the null song, which is an element of SongId. (c) Define, via a set comprehension, the set of playlists that feature the most popular song that appears in songs. You should assume that the null song appears in no playlists.

  • Oracle Database Assignment Help | Learn Oracle Database Query Using ER Diagram

    How to Create, Run, and Print Statements and Output for an SQL File Download and install Oracle Express Edition 11g from the following link: https://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/xe-prior-releases-5172097.html Note: You will be required to create an account. Open Notepad and type the following at the top of the file: spool path\project2_abc.txt' -- Include the full path. This will start logging to the specified file. set echo on -- This will ensure that all input and output is logged to the file. Type all statements into a Notepad file (it is recommended that you do this a few statements at a time, testing as you go along). Please indicate the different sections of the project using comment lines, which can be created using two hyphens at the beginning of the comment text; e.g., “--Part I” or “--Part II” (without the quotations). Name the file using your initials as a suffix with an sql extension (e.g., project2_abc.sql). Type the following at the very end of the file: set echo off -- This will turn off logging. spool off -- This will close the file. Start your database using the "Start Database" option in the Oracle Database program group (from the Windows "Start button"). Open the SQL command line from the "Run SQL Command Line" option in the Oracle Database program group (from the Windows "Start button"). When the window opens, you will see an SQL prompt. Type the following command to connect to your database: connect system/password. where, password is the password you entered during the installation process. Once connected, you may run your SQL file by typing the start command at the SQL prompt (include the full path). For example: start C:\Users\sarra\Desktop\Project2_kls.sql You will see all of the statements and output scroll by. When it is finished, the SQL prompt will appear again. To disconnect from the database and close your session, type the following: exit Ensure that all your statements and related output appear correctly in the spooled text file. If you have mistakes, you can make the necessary corrections to the SQL statements in your notepad file. Note: If your SQL file contains Create Table statements, you will need to drop the previously-created tables before running the SQL file again. You can do this at the SQL prompt, or you can add the Drop Table statements to the beginning of the SQL file before you run it (the latter is the better option). This project must be completed using an Oracle database with all statements manually typed into an SQL file and run as a batch in Oracle. The output must be written to a text (.txt) file. Statements and results (feedback from Oracle) must be included in the output file for submission. Directions for downloading the software and for creating and running the SQL file will be posted in Canvas. Project 2 Relational Schema I. A) Based on the 3NF relational schema from Project 1 (shown above), analyze the tables, their relationships, and the sample data you were given in Project 1. Create the tables shown, using the best data types based on your analysis. Follow each table name with an underscore and your first, middle, and last initials (if you do not have a middle initial, use X). For example, if your name is Alice B Chandler, you would name the Customer table Customer_abc. Also, keep in mind that foreign key relationships require the same data types on both sides (e.g., if you declare PatientID as NUMBER(5) in the Patient table, it must be declared as NUMBER(5) in the Rental table, too). All CREATE table statements and their resulting output (e.g., “Table created”) must be included in your output file. B) Execute a DESCRIBE statement for each of the tables. All DESCRIBE statements and their resulting output (i.e., the table structure) must be included in your output file). II. A) Insert the sample data from Project 1 into each table. Execute a COMMIT statement to permanently save your changes. All INSERT statements and COMMIT statements, along with their resulting output (e.g., “Row inserted”) must be included in your output file. B) Execute a SELECT statement on each table to list all contents (all columns and all rows). All SELECT statements and their resulting output (i.e., the table and its data) must be included in your output file. III. Execute the transactions below to modify/add to the data entered in the previous step. Execute a COMMIT statement to permanently save your changes. All INSERT, UPDATE, and COMMIT statements, along with their resulting output (e.g., “Row inserted”) must be included in your output file. Patient table Change the phone number of Patient 101 to ‘2145551234’ Add Patient 120 (Amanda Green, no phone number) ApptStatus table Add a new status: ApptStatus ApptStatusDesc X Cancelled Appt table Change the appointment time for Appt 110 to 11:30. Change the appointment status for Appt 108 to Cancelled ApptDetail table Add the following: ApptID ApptReasonCode BlockCode 108 NP L1 IV. Execute a SELECT statement on each table to list all contents (all columns and all rows), sorted in ascending order by its primary key (in the ApptDetail table, sort by PatientID first, then by ApptReasonCode). All SELECT statements and their resulting output (i.e., the table and its data) must be included in your output file. Contact us for this machine learning assignment Solutions by Codersarts Specialist who can help you mentor and guide for such machine learning assignments. If you have project or assignment files, You can send at contact@codersarts.com directly

  • Programming assignments

    Programming assignments require you to write and run a computer program to solve a problem. Some programming assignments count toward your final course grade, while others are just for practice. We are helping to students who are looking for programming assignment help for improving grade or learning new skills. Sections of a programming assignment Programming assignments include both assignment instructions and assignment parts. Assignment instructions: Explain the assignment. May include a link to a downloadable starter package that includes starter code, detailed guidelines, and other resources. Assignment parts: Are similar to individual questions within a quiz. Are each a single coding task. Are each worth a certain number of points toward the overall assignment score. Can be completed and submitted all at once, or one at a time. Programming assignment grades Programming assignments are graded automatically. Some are graded using a built-in grading algorithm that compares your program's output to a value specified by your instructor. Others are graded using a custom grading algorithm created by your instructor. If a programming assignment uses built-in grading: Your code will run locally on your computer, and the output will be sent to specified servers. Your grade will be based on comparison against numeric or regular expression grading logic. You'll get your grade a few seconds after submitting. If a programming assignment uses custom grading: Your code will be run on specified servers. Your grade will be based on custom logic provided by your instructor. You'll get your grade within an hour of submitting. You'll need to refresh the page to see your grade. Submit a programming assignment To submit a programming assignment: Open the assignment page for the assignment you want to submit. Read the assignment instructions and download any starter files. Finish the coding tasks in your local coding environment. Check the starter files and instructions when you need to. If the assignment uses script submission, submit your assignment by running the submission script in your local coding environment and entering the submission token. If the assignment uses web submission, upload your files using the instructions on your screen. Test a programming assignment Some programming assignments let you test them before you submit them to get feedback on whether they run. You won't get grades or feedback from the instructor until you submit the assignment. Edit or resubmit a programming assignment You can resubmit a programming assignment if you don't pass on the first attempt or want to improve your score. You might have to wait a certain amount of time between attempts. To resubmit a programming assignment, follow the same steps for submitting one. If your assignment uses script submission, you'll need to select the Generate new token option on the assignment page and use the new submission token. Hire a Assignment expert for Your Project From small assignment tasks to big projects that fits your requirement and budget, And help you deliver better results. please send your assignment requirement at contact@codersarts.com References: https://learner.coursera.help/hc/en-us/articles/209818753-Programming-assignments

  • Python Assignments

    1) DESCRIPTION 80% of people who purchase car insurance are men. If the owners of 9 car insurance are randomly selected, then find the probability using binomial distribution that exactly X out of them are men Read a number X from a line of input Print the output rounded till 4 decimal point Example: Sample Input: 6 Sample Output: 0.1762 2) DESCRIPTION If the probability of a profit or loss in an investment is equal, find the probability using geometric distribution that an investor’s k investment is his first profit Take input from the user k Print the ouput and round up the output till three decimal points Example: Sample Input: 4 Sample Output: 0.062 3) DESCRIPTION Conditional Probability The probability of an event which is conditioned or dependent on another event is a Conditional Probability Conditional Probability = P(A|B) = P(A and B)/P(B) P(A|B) is the probability of event A occurring, given that event B occurs You have the Member dataset, which is an input data file Members.csv present at the location /data/training/blackfriday.csv This dataset contains information about information related to the people . Here’s a brief description of the columns in the sample dataset Dataset Description: The dataset contains data of 8 rows and 4 different columns. The columns are: Gender: whether the particular person is male of female Height: Height of the person Weight: Weight of the person Foot-size: Foot-size of the person This is a preview of the data under consideration: Question: Calculate the probability of members height being more than 5 inches, given that member is female Input Format: The file to be read will be Members.csv, which contains the data as mentioned above. This file is in .csv format. Example: Sample Input: https://media-doselect.com/Members.csv Sample Output: 0.52

  • Principles of Microservices In Java

    Principles of Microservices There are the following principles of Microservices: Single Responsibility principle Modelled around business domain Isolate Failure Infrastructure automation Deploy independently Advantages of Microservices Microservices are self-contained, independent deployment module. The cost of scaling is comparatively less than the monolithic architecture. Microservices are independently manageable services. It can enable more and more services as the need arises. It minimizes the impact on existing service. It is possible to change or upgrade each service individually rather than upgrading in the entire application. Microservices allows us to develop an application which is organic (an application which latterly upgrades by adding more functions or modules) in nature. It enables event streaming technology to enable easy integration in comparison to heavyweight interposes communication. Microservices follows the single responsibility principle. The demanding service can be deployed on multiple servers to enhance performance. Less dependency and easy to test. Dynamic scaling. Faster release cycle. Disadvantages of Microservices Microservices has all the associated complexities of the distributed system. There is a higher chance of failure during communication between different services. Difficult to manage a large number of services. The developer needs to solve the problem, such as network latency and load balancing. Complex testing over a distributed environment. Challenges of Microservices Architecture Microservice architecture is more complex than the legacy system. The microservice environment becomes more complicated because the team has to manage and support many moving parts. Here are some of the top challenges that an organization face in their microservices journey: Bounded Context Dynamic Scale up and Scale Down Monitoring Fault Tolerance Cyclic dependencies DevOps Culture Creating a Simple Microservice Step 1: Create a Maven project using Spring Initializr https://start.spring.io/ Step 2: Choose the Spring Boot version 2.2.0 M6 or higher version. Do not choose the snapshot version. Step 3: Provide the Group name. In our case om.javatpoint Step 4: Provide the Artifact id. We have provided limits-service. Step 5: Add the following dependencies: Spring Web, Spring Boot DevTools, Spring Boot Actuator, Config Client. Step 6: Click on Generate the project button. A zip file will download, extract it into the hard disk. Step 7: Now, open the eclipse. Import the created maven project. It takes some time to download the required files. Step 8: Once the project is downloaded, go to src/main/java. Open the LimitsServiceApplication. Step 9: Now run the LimitsServiceApplication.java as Java Application. It started the Tomcat on port(s) 8080 (http). For Example : @RestController 1. public class LimitsConfigurationController 2. { 3. @GetMapping("/limits") 4. public LimitConfiguration retriveLimitsFromConfigurations() 5. { 6. return new LimitConfiguration(1000, 1); 7. } 8. } 1. public class LimitConfiguration 2. { 3. private int maximum; 4. private int minimum; 5. //no-argument constructor 6. protected LimitConfiguration() 7. { 8. } 9. //generating getters 10.public int getMaximum() 11.{ 12. return maximum; 13.} 14.public int getMinimum() 15.{ 16. return minimum; 17.} 18. //genetrating constructor using fields 19.public LimitConfiguration(int maximum, int minimum) 20.{ 21.super(); 22. this.maximum = maximum; 23. this.minimum = minimum; 24.} 25.} Output: { maximum: 1000, minimum: 1 } Need a quote for Homework in Java microservices ? Post your java microservice homework questions and get answers from qualified tutors. Are you looking for Java Microservices assignment help? We offer Java microservice homework help, Java microservice assignment, Java microservice projects. If you have project or assignment files, You can send at contact@codersarts.com directly What other items do customers search after viewing microservices? Java homework Help Java homework Java homework assignments Java homework examples Java homework solutions Java homework question Java Homework Answers Java Homework solver Java homework projects Java Project help Java project to help learn Java project help wanted Java help online

  • Microservices with Spring

    Introduction of Micro-services Spring boot Microservices allow large systems to be built up from a number of collaborating components. It does at the process level what Spring has always done at the component level: loosely coupled processes instead of loosely coupled components. For example imagine an online shop with separate microservices for user-accounts, product-catalog order-processing and shopping carts. Challenges With Microservice Architecture While developing a number of smaller microservices might look easy, there is a number of inherent complexities that are associated with microservices architectures. Let's look at some of the challenges: Automating the Components: It becomes difficult to automate everything because there are a number of smaller components instead of a monolith, i.e. builds, deployment, monitoring, etc. Perceptibility: There is a number of small components to deploy and maintain which sometimes becomes difficult to monitor and identify problems. It requires great perceptibility around all the components. Configuration Management: There is a great need to maintain the configurations for the components across the various environments. Debugging: It becomes difficult to probe each and every service for an error. Centralized Logging and Dashboards are essential to make it easy to debug problems. Consistency: You cannot have a wide range of tools solving the same problem. While it is important to foster innovation, it is also important to have some decentralized governance around the languages, platforms, technology and tools used for implementing/deploying/monitoring microservices. Reference Links https://dzone.com/articles/spring-boot-microservices-building-microservices-a https://spring.io/blog/2015/07/14/microservices-with-spring

  • System Programming And Automation Assignment Help

    Weeks 4 - System Programming And Automation Assignment For this assignment, you are going to write a basic file management script to the following specifications: Your file manager needs to take command-line arguments. One of the arguments (m) will be the mode the script needs to run in - basic, elevated, and admin. This argument is required; without it, the program should terminate.The other argument your program should take (-d) is optional and should be a directory path where you wish to browse files. If provided, your script will open that directory by default. If not, your script should open the default folder where it runs scripts. Your command-line arguments should be able to be accepted in any order. You need to ensure that no bad -m values get put in and that provided directory paths do not contain dot-dot folders. When your script loads, offer the user a menu of different things they can do. 1) In basic mode, your script should allow the users to change the current directory to one of their choosing (you will need to prompt for this) and list items in the current directory only. When you list items, please include file size and distinguish between directories and files. 2) In elevated mode, your script should allow users to do all of the above, plus be able to copy files and directories from one place to another (you will again need to prompt the user for details on how to accomplish this). 3) In admin mode, your script should allow users to do all of the above, plus be able to move and delete files and directories (again, prompt the user for any details needed in order to make these operations work properly). Your script must log all commands to a file off the root of your working hard drive to a file called "system_log.txt" that's stored in a folder called "Python_Log". So, if you are working in Windows, your file would be stored at C:\Python_Log\system_log.txt You do not need to get overly granular here. If you are copying a file, just say " was copied to ". If a directory was copied, just say " was copied to ". In the case where a directory is copied, you don't need to list the individual files that were copied...just the name of the folder. For any delete operation, you need to first copy whatever you're deleting to a folder off the root of your working hard drive to a folder called "backups". Then, once you've copied everything over, rename each file\directory so that the names are prefixed by "deleted_". Thus a file named "file.txt" would be renamed to "deleted_file.txt". Details on the above instructions are as follows: Your program must include appropriate error checking to make sure the source and destination folders do/don't exist as appropriate, as well as handle any other potential errors. If the destination folder doesn't exist when performing an operation, your program must block the operation and ask the user to try again. Your script must be designed to work equally well on Windows, Mac, and Linux platforms. The rest of your implementation details are up to your discretion, applying the things you have learned about Python so far. Please note, however, that you must organize any classes\functions you create into modules and produce documentation (using Pydoc) for your work using the principles discussed earlier in the class. You do not need to create test cases. Be sure to put comments in your code that clearly mark how you are performing your program logic. In the submission comments of this assignment, please place the repository URL of your file submission. Are you looking for Python Programming Assignment Help? Codersarts python developer experts offer the best quality Python programming, coding or Python programming Tutors. Get Python Assignment Help at an affordable price from the best professional tutors Assignment Help. Order now at get 15% off.

  • MongoDB Query Help

    Database and Schema db.instructor.insertMany( [ { "name": "Zhang", "dept_name": "CS", "salary": 68000, "teaches": [ { course_id: "CS-101", year: 2018 }, { course_id: "CS-347", year: 2018 } ] }, { "name": "Levy", "dept_name": "CS", "salary": 80000, "teaches": [ { course_id: "CS-128", year: 2016 }, { course_id: "CS-201", year: 2017 } ] }, { "name": "Brandt", "dept_name": "Finance", "salary": 90000, "teaches": [ { course_id: "FIN-201", year: 2016 }, { course_id: "FIN-301", year: 2017 }, { course_id: "FIN-320", year: 2017 } ] }, { "name": "Davis", "dept_name": "Finance", "salary": 78000, "teaches": [ { course_id: "FIN-102", year: 2017 }, { course_id: "FIN-200", year: 2018 } ] }, { "name": "Crick", "dept_name": "Biology", "salary": 92000, "teaches": [ { course_id: "BIO-101", year: 2017 }, { course_id: "BIO-301", year: 2018 }, { course_id: "BIO-301", year: 2018 } ] }, { "name": "Williams", "dept_name": "Biology", "salary": 72000, "teaches": [ { course_id: "BIO-101", year: 2016 }, { course_id: "BIO-201", year: 2017 }, { course_id: "BIO-101", year: 2018 } ] } ] ); Queries Give the MongoDB commands for the following queries and attach the result screenshot of each. a. Find the name, department name, and the salary of each instructor whose salary is at least 80,000 and has taught three courses. If an instructor has taught the same course N times, it is counted as N courses. b. Find the name and department name of each instructor who taught in both 2017 and 2018 and sort the results alphabetically by name. c. Find the total salary of each department and sort the result in the ascending order of the total salary. The result should only display department name and the total salary Contact us for MongoDB Assignment help, MongoDB Homework Help, MongoDB Query help Want to know your assignment price quote please send your assignment file at contact@codersarts.com and our sales team will contact you as soon as assignment received.

  • Node.js Packaging

    What is Node.js Packaging ? JXcore, which is an open source project, introduces a unique feature for packaging and encryption of source files and other assets into JX packages. Consider you have a large project consisting of many files. JXcore can pack them all into a single file to simplify the distribution. This chapter provides a quick overview of the whole process starting from installing JXcore. JXcore Installation Installing JXcore is quite simple. Here we have provided step-by-step instructions on how to install JXcore on your system. Follow the steps given below: Step 1: Download the JXcore package from https://github.com/jxcore/jxcore, as per your operating system and machine architecture. We downloaded a package for Cenots running on 64-bit machine. $ wget https://s3.amazonaws.com/nodejx/jx_rh64.zip Step 2: Unpack the downloaded file jx_rh64.zipand copy the jx binary into /usr/bin or may be in any other directory based on your system setup. $ unzip jx_rh64.zip $ cp jx_rh64/jx /usr/bin Step 3: Set your PATH variable appropriately to run jx from anywhere you like. $ export PATH=$PATH:/usr/bin Step 4: You can verify your installation by issuing a simple command as shown below. You should find it working and printing its version number as follows: $ jx --version v0.10.32 Packaging the Code Consider you have a project with the following directories where you kept all your files including Node.js, main file, index.js, and all the modules installed locally. drwxr-xr-x 2 root root 4096 Nov 13 12:42 images -rwxr-xr-x 1 root root 30457 Mar 6 12:19 index.html -rwxr-xr-x 1 root root 30452 Mar 1 12:54 index.js drwxr-xr-x 23 root root 4096 Jan 15 03:48 node_modules drwxr-xr-x 2 root root 4096 Mar 21 06:10 js drwxr-xr-x 2 root root 4096 Feb 15 11:56 css To package the above project, you simply need to go inside this directory and issue the following jx command. Assuming index.js is the entry file for your Node.js project: $ jx package index.js index Here you could have used any other package name instead of index. We have used index because we wanted to keep our main file name as index.jx. However, the above command will pack everything and will create the following two files − index.jxp This is an intermediate file which contains the complete project detail needed to compile the project. index.jx This is the binary file having the complete package that is ready to be shipped to your client or to your production environment. Launching JX File Consider your original Node.js project was running as follows: $ node index.js command_line_arguments After compiling your package using JXcore, it can be started as follows: $ jx index.jx command_line_arguments If you have any queries regarding this blog or need any help you can contact us on: contact@codersarts.com Node.js Coders, Node.js Experts, Node.js Tutors, Node.js Specialists, Node.js Programmers, Node.js Coding Help, Node.js Programming Help, Node.js Assignment Help, Node.js Engineers, Node.js Consultants, Node.js Development Company, Node.js Buffer

  • Node.js Scaling Application

    Why do we Scale Application ? The workload is the most popular reason we scale our applications, but it’s not the only reason. We also scale our applications to increase their availability and tolerance to failure. There are mainly three different things we can do to scale an application: 1) Cloning: The easiest thing to do to scale a big application is to clone it multiple times and have each cloned instance handle part of the workload. This does not cost a lot in term of development time and it’s highly effective. 2) Decomposing: We can also scale an application by decomposing it based on functionalities and services. This means having multiple, different applications with different code bases and sometimes with their own dedicated databases and User Interfaces. 3) Splitting: We can also split the application into multiple instances where each instance is responsible for only a part of the application’s data. This strategy is often named horizontal partitioning, or shading, in databases. Successfully scaling a big application should eventually implement all three strategies. Node.js makes it easy to do so. We are also going to explore the built-in tools available in Node.js to implement it. What is Node.js Scaling Application ? Node.js runs in a single-thread mode, but it uses an event-driven paradigm to handle concurrency. It also facilitates creation of child processes to leverage parallel processing on multi-core CPU based systems. Child processes always have three streams child.stdin, child.stdout, and child.stderr which may be shared with the stdio streams of the parent process. Node provides child_process module which has the following three major ways to create a child process. exec: child_process.exec method runs a command in a shell/console and buffers the output. spawn: child_process.spawn launches a new process with a given command. fork: The child_process.fork method is a special case of the spawn() to create child processes. The exec() method child_process.exec method runs a command in a shell and buffers the output. It has the following signature: child_process.exec(command[, options], callback) Parameters Here is the description of the parameters used: 1. command (String) The command to run, with space-separated arguments 2. options (Object) may comprise one or more of the following options: cwd (String) Current working directory of the child process env (Object) Environment key-value pairs encoding (String) (Default: 'utf8') shell (String) Shell to execute the command with (Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should understand the -c switch on UNIX or /s /c on Windows. On Windows, command line parsing should be compatible with cmd.exe.) timeout (Number) (Default: 0) maxBuffer (Number) (Default: 200*1024) 3. callback The function gets three arguments error, stdout, and stderr which are called with the output when the process terminates. The exec() method returns a buffer with a max size and waits for the process to end and tries to return all the buffered data at once. Example: Let us create two js files named sub.js and main.js: File: sub.js console.log("Child Process " + process.argv[2] + " executed." ); File: main.js const fs = require('fs'); const child_process = require('child_process'); for(var i=0; i<3; i++) {    var workerProcess = child_process.exec('node sub.js '+i,function       (error, stdout, stderr) {       if (error) { console.log(error.stack); console.log('Error code: '+error.code); console.log('Signal received: '+error.signal);       } console.log('stdout: ' + stdout); console.log('stderr: ' + stderr);    });    workerProcess.on('exit', function (code) { console.log('Child process exited with exit code '+code);    }); } Now run the main.js to see the result: $ node main.js Output Child process exited with exit code 0 stdout: Child Process 1 executed. stderr: Child process exited with exit code 0 stdout: Child Process 0 executed. stderr: Child process exited with exit code 0 stdout: Child Process 2 executed. The spawn() Method child_process.spawn method launches a new process with a given command. It has the following signature: child_process.spawn(command[, args][, options]) Parameters Here is the description of the parameters used: 1. command (String) The command to run 2. args (Array) List of string arguments 3. options (Object) may comprise one or more of the following options: cwd (String) Current working directory of the child process. env (Object) Environment key-value pairs. stdio (Array) String Child's stdio configuration. customFds (Array) Deprecated File descriptors for the child to use for stdio. detached (Boolean) The child will be a process group leader. uid (Number) Sets the user identity of the process. gid (Number) Sets the group identity of the process. The spawn() method returns streams (stdout &stderr) and it should be used when the process returns a volume amount of data. spawn() starts receiving the response as soon as the process starts executing. Example Create two js files named sub.js and main.js: File: sub.js console.log("Child Process " + process.argv[2] + " executed." ); File: main.js const fs = require('fs'); const child_process = require('child_process'); for(var i = 0; i<3; i++) {    var workerProcess = child_process.spawn('node', ['sub.js', i]); workerProcess.stdout.on('data', function (data) { console.log('stdout: ' + data);    }); workerProcess.stderr.on('data', function (data) { console.log('stderr: ' + data);    }); workerProcess.on('close', function (code) { console.log('child process exited with code ' + code);    }); } Now run the main.js to see the result: $ node main.js Output stdout: Child Process 0 executed. child process exited with code 0 stdout: Child Process 1 executed. stdout: Child Process 2 executed. child process exited with code 0 child process exited with code 0 The fork() Method child_process.fork method is a special case of spawn() to create Node processes. It has the following signature: child_process.fork(modulePath[, args][, options]) Parameters Here is the description of the parameters used: 1. modulePath (String) The module to run in the child. 2. args (Array) List of string arguments 3. options (Object) may comprise one or more of the following options: cwd (String) Current working directory of the child process. env (Object) Environment key-value pairs. execPath (String) Executable used to create the child process. execArgv (Array) List of string arguments passed to the executable (Default: process.execArgv). silent (Boolean) If true, stdin, stdout, and stderr of the child will be piped to the parent, otherwise they will be inherited from the parent, see the "pipe" and "inherit" options for spawn()'s stdio for more details (default is false). The fork method returns an object with a built-in communication channel in addition to having all the methods in a normal ChildProcess instance. Example: Create two js files named sub.js and main.js: File: sub.js console.log("Child Process " + process.argv[2] + " executed." ); File: main.js const fs = require('fs'); const child_process = require('child_process'); for(var i=0; i<3; i++) {    var worker_process = child_process.fork("sub.js", [i]);   worker_process.on('close', function (code) { console.log('child process exited with code ' + code);    }); } Now run the main.js to see the result: $ node main.js Output Child Process 0 executed. Child Process 1 executed. Child Process 2 executed. child process exited with code 0 child process exited with code 0 child process exited with code 0 If you have any queries regarding this blog or need any help you can contact us on: contact@codersarts.com Node.js Coders, Node.js Experts, Node.js Tutors, Node.js Specialists, Node.js Programmers, Node.js Coding Help, Node.js Programming Help, Node.js Assignment Help, Node.js Engineers, Node.js Consultants, Node.js Development Company, Node.js Scaling Application

  • Creating A Multiple-Screen Mobile Application | Android Project Assignment Help

    Introduction: As a competent mobile application developer, your understanding of mobile application structure and design will help you to develop applications to meet customer requirements. The following project to develop a student scheduler/student progress tracking application will help you to apply these skills in a familiar, real-world scenario. This task will allow you to demonstrate your ability to apply the skills learned in the course. You will develop a multiple-screen mobile application for WGU students to track their terms, courses associated with each term, and assessment(s) associated with each course. The application will allow students to enter, edit, and delete terms, courses, and assessment data. It should provide a summary and detailed views of courses for each term and provide alerts for upcoming performance and objective assessments. This application will use an SQLite database. Input Each of the following needs to be input into the application: terms, including the following: the term title (e.g., Term 1, Term 2) the start date the end date courses, including the following: the course title the start date the anticipated end date the status (e.g., in progress, completed, dropped, plan to take) the course mentor name(s), phone number(s), and email address(es) objective and performance assessments associated with each course the ability to add optional notes for each course the ability to set alerts or notifications for the start and end date of each course the ability to set alerts for goal dates for each objective and performance assessment Output Each of the following needs to be displayed by the application on a separate screen: the navigation panel a list of terms A detailed view of each term, including the following: the title (e.g., Term 1, Term 2) the start date the end date a list of courses for each term a detailed view of each course, including the following: the course title the start date the anticipated end date assessments a list of performance and objective assessments for a selected course a detailed view of each objective and performance assessment, including the following: the due date for a selected course notes for the selected course sharing features (e.g., email, SMS) Requirements: Note: Submit your performance assessment by including all Android project files, APK, and signed apk files in one zipped.zip file. Note: For your convenience, an optional checklist is attached to help guide you through this performance assessment. A. Create an Android (version 4.0 or higher) mobile application with the following functional requirements: 1. Include the following information for each term: the term title (e.g., Term 1, Term 2) the start date the end date 2. Include features that allow the user to add as many terms as needed. 3. Implement validation so that a term cannot be deleted if courses are assigned to it. 4. Include features that allow the user to do the following for each term: a. add as many courses as needed b. display a list of courses associated with each term c. display a detailed view of each term, which includes the following information: the term title (e.g., Term 1, Term 2) the start date the end date 5. Include the following details for each course: the course title the start date the anticipated end date the status (e.g., in progress, completed, dropped, plan to take) the course mentor name(s), phone number(s), and e-mail address(es) 6. Include features that allow the user to do the following for each course: a. add as many assessments as needed b. add optional notes c. enter, edit, and delete course information d. display optional notes e. display a detailed view of the course, including the due date f. set alerts for the start and end date g. Share notes via a sharing feature (e.g., e-mail, SMS) 7. Include features that allow the user to do the following for each assessment: a. add performance and/or objective assessments for each course, including the titles and due dates of the assessments b. enter, edit, and delete assessment information c. set alerts for goal dates Codersarts is a top-rated website for students which is looking for online Programming Assignment Help, Homework Help, Coursework Help in C, C++, Java, Python, Database, Data structure, Algorithms, Final year project, Android, Web, C sharp, ASP NET to students at all levels whether it is school, college and university level Coursework Help or Real-time project. If you have project or assignment files, You can send at contact@codersarts.com directly

bottom of page