Calculate TCP and UDP efficiency while sending data of size 200 bytes? Justify the difference between two.
In: Computer Science
(Fraction calculator c++) | Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, in which _a_ and _b_ are integers and b ≠ 0. Your program must be menu driven, allowing the user to select the operation (+, –, *, or /) and input the numerator and denominator of each fraction. Furthermore, your program must consist of at least the following functions: Function menu: This function informs the user about the program’s purpose, explains how to enter data, and allows the user to select the operation. Function addFractions: This function takes as input four integers representing the numerators and denominators of two fractions, adds the fractions, and returns the numerator and denominator of the result. (Notice that this function has a total of six parameters.) Function subtractFractions: This function takes as input four integers representing the numerators and denominators of two fractions, subtracts the fractions, and returns the numerator and denominator of the result. (Notice that this function has a total of six parameters.) Function multiplyFractions: This function takes as input four integers representing the numerators and denominators of two fractions, multiplies the fractions, and returns the numerators and denominators of the result. (Notice that this function has a total of six parameters.) Function divideFractions: This function takes as input four integers representing the numerators and denominators of two fractions, divides the fractions, and returns the numerator and denominator of the result. (Notice that this function has a total of six parameters.) Some sample outputs are: 3 / 4 + 2 / 5 = 23 / 20 2 / 3 * 3 / 5 = 6 / 15 Your answer need not be in the lowest terms.
In: Computer Science
Define and implement class Course. This class should contain the following fields: course name, course description, department, time the course starts, weekday the course is held on (for simplicity, let us assume the course only meets once a week). This class should contain getters and setters for all its attributes. This class also needs at least one constructor. Save this class and its definition into a file named Course.java.
Define and implement class Student. This class should contain the following fields: first name, last name, age, gpa, major, department, courses. Age should be an integer value. GPA should be a floating point value. Courses should be a linked list of Course variables. Class Student should contain getters and setters for all its attributes. This class also needs at least one constructor. In class Student implement the following methods: addCourse() to add a new course, removeCourse() to remove a course from this student, sortCourses() to print out a sorted list of courses. Method sortCourses() should accept parameters to specify whether the sorting should be ascending or descending and also based on which course attribute to sort the courses. The output should be printed to command line standard output. Save this class and its definition into a file named Student.java.
In: Computer Science
Configuring Mail services in Linux
In this lab we will examine how to configure mail server (Sendmail, Dovecot and Spamassassin) services under Linux.
PART 1: Configuring the sendmail Mail Transport Agent (MTA) to provide Mail server services
Boot your system into the Fedora Linux server VM used in lab 3 to configure DNS and follow the procedure outlined below to configure your system as a Mail server using the sendmail MTA.
dnf install sendmail sendmail-cf to install the latest versions of these packages.
cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.bak. Also, back up the sendmail.cf file using a similar command.
NOTE: Usually, the sendmail service is configured to start automatically at boot, so you only have to restart the service when making changes to the configuration files.
NOTE: If you would like sendmail to accept connections from the local subnet only, you need to change the address in the Addr= option to the IP address of the ens8 interface (i.e. Addr=192.168.100.10). DO NOT MAKE THIS CHANGE!
As configured by default, sendmail accepts e-mail from domains that it cannot resolve (and that may not exist). To turn this feature off and cut down the amount of spam you receive, add dnl to the beginning of the following line:
FEATURE(`accept_unresolvable_domains’)dnl
When this feature is off, sendmail uses DNS to look up the domains of all e-mails it receives. If it cannot resolve the domain, it rejects the e-mail.
NOTE: Please refer to page 743 – 752 in Sobell and chapter 10 of the Fedora 22 system administrator guide for more details.
Connect:192.168.100. RELAY
at the end of the file. This line will allow the server to relay outbound e-mail for all hosts on the local virtual subnet.
and then type less /var/spool/mail/student and scroll to the bottom of the file to see if the new message has been appended to the student mail spool file.
WHAT TO SUBMIT: Capture of system-config-bind GUI on Linux server showing MX record added. Capture of Linux server terminal window showing output of echo command above.
2 captures total.
In: Computer Science
Apply a “stepwise refi nement approach” to develop three different levels of procedural abstractions for one or more of the following programs: (1) Develop a check writer that, given a numeric dollar amount, will print the amount in words normally required on a check. (2) Iteratively solve for the roots of a transcendental equation.
(3) Develop a simple task-scheduling algorithm for an operating system.
i need 3rd part solution because 1st 2 parts are already answerd.
In: Computer Science
* what are pseudocode and flowcharts and what are they used for?
* how to interpret branching and looping logic?
* What is the difference between the two types of identifiers?
* What is the difference between two types of containers?
* what are functions and methods and what are they used for?
* what objects are?
In: Computer Science
JAVA PROGRAM
Question : Design and implement two classes called InfixToPostfix and PostFixCalculator. The InfixToPrefix class converts an infix expression to a postfix expression. The PostFixCalculator class evaluates a postfix expression. This means that the expressions will have already been converted into correct postfix form. Write a main method that prompts the user to enter an expression in the infix form, converts it into postfix, displays the postfix expression as well as it's evaluation. For simplicity, use only these operators, + , - , * , / and %.
I need help answering the programming question, not sure how this really functions. If you can please explain how it works with comments. Thank you I greatly appreciate the help.
In: Computer Science
1. In a few sentences, describe how the functionality of vApps would be useful in a multi-tier application.
In: Computer Science
In this lab, you will learn to read data from a
sequential-access text file. To read data from a file, you need one
FileStream object and one StreamReader object. The StreamReader
object accepts the FileStream object as its argument.
To read data from a sequential-access text file, here's what you
need to do:
using System.IO;
In: Computer Science
IN MIPS ASSEMBLY LANGUAGE
Write an assembly program to read three 32-bit signed integers from the user. Determine the smallest of these three numbers and display this result. Don’t use loops. Prompt the user for each entered integer.
Your output should look something like the following example.
Enter an integer: 7556
Enter an integer: -22984
Enter an integer: 8875
-22984
In: Computer Science
Question 1: As you know that “the base address or the starting address of any array is its name”. Keeping this information, answer
a. Why the first index of any array always starts from zero. Although it points to the first location of an array.
b. The reason why the last index is always one less than array length is “the first index starts from zero”. Does it seems to be a correct reason justify.
c. What is the offset address of any array NAMED AS ARR1 who starting address is A011234h.
d Can you find the offset address of the 6th element of array given in 3? If its data type is INT.
e. What is the offset address of last element of an array stated in 3? If the length of array is 5 and data type is char.
Kindly solve the complete Questions with all parts......
In: Computer Science
who to write a program c++ that reads in an integer between 0 and 1000 and adds all the digits in the integer?
In: Computer Science
Write a program in python that counts the number of words in President Abraham Lincoln’s Gettysburg Address from the file provided. Replace all instances of "nation" with country, and all instances of "we" with "Americans". Write the revised address to a new file
its for a txt file
In: Computer Science
javascritp
Gallery On the gallery page, include a JavaScript driven photo gallery with at least five (5) images of original work (web pages screen shots, photographs, illustrations, etc) that you have created. The photo gallery must have previous and next buttons to change the image being displayed. Images must wrap to the first image when the next button is clicked while the last image is being displayed. Similarly, images must wrap to the last image when the previous button is clicked while the first image is being displayed. The next image must be displayed after five (5) seconds if the user has not clicked the next button. Use gallery.html as the filename for the Gallery page.
In: Computer Science
Please no plagiarism and must be in your own 800 words.
Discuss the company, its approach to big data analytics with business intelligence, what they are doing right, what they are doing wrong, and how they can improve to be more successful in the implementation and maintenance of big data analytics with business intelligence
In: Computer Science