Homework Answers

Math 50414
Physics 44332
Chemistry 40988
Economics 30643
Programming & Computer Science 26876
Biology 8109
Engineering 6056

Questions answered by Experts: 207 418

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Assuming a message “Exams!” is to be transmitted over a network. If the message is made up of strings with the given probability: e = 0.4, x = 0.1, a = 0.2, m = 0.1, s = 0.1, and ! = 0.1, derive:

a. The codeword using Arithmetic coding procedures

b. The original message by decoding the codeword in (a).


Consider a mx n matrix inmatrix of string elements containing alphanumeric values, where m>1, n >=1. Identify and print outarr based on the logic below:





• Traverse the inmatrix in clockwise spiral way starting from the element at (0,0) •





traversal until one of the two conditions is met • The element or the concatenated string is a palindrome with length greater





than 1 There are no more elements left for traversal





. Add the concatenated string to outarr





. If there is any element which has not yet been visited in the traversal, repeat the two steps, forming a new concatenated string that starts with the next element present after the last element previously traversed





Note: Perform case-sensitive comparison





Input format:





First line will contain number of rows m of inmatrix





The next m lines will contain the elements of inmatrix. Each line will have n string





elements separated by (comma)

Create a program that reads trom the console two integer numbers (int) and prints now many numbers between them exists, such that remainder of their division by 5 is O. E

Opportunity cost is all about making choices and how you adequately and effectively manage it. What do you understand by the concepts of intra and inter temporal choice models in Managerial Economics, further as a fresh graduate of MSc in Managerial Economics, clearly demonstrate how intra and inter temporal choice models can make society incur an opportunity cost if not managed adequately and effectively ?



write a JS program to

  • filter the candidates who have scored more than 75 points in every even


input

  • the input will be single line containing an array of objects candidatesList

output

  • the output should be single line containing an array with names of the selected candidates.


input1

[{'name': 'Blake Hodges', 'points':[76, 98, 88, 84]}

output1

['Blake Hodges]


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const candidatesList = JSON.parse(readLine().replace(/'/g, '"'));



  

 // Write your code here

}



 A new stockbroker (XYZ) claims that his brokerage fees are lower than that of your current stock broker's (ABC). Data available from an independent research firm indicates that the mean and std-dev of all ABC broker clients are $18 and $6, respectively. A sample of 100 clients of ABC is taken and brokerage charges are calculated with the new rates of XYZ broker. If the mean of the sample is $18.75 and std-dev is the same ($6), can any inference be made about the difference in the average brokerage bill between ABC and XYZ broker?





tax criteria

salary tax percentage

>= 50000 5

>= 1000000 10


quick tip

tax = salary * taxPercentage/100


input 1

stuart

developer

840000


output 1

42000


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const name = readLine();

 const role = readLine();

 const salary = JSON.parse(readLine());


 function Employee(name, role, salary) {



  // Write your code here


 }


 const employee1 = // Write your code here


/* Please do not modify anything below this line */


 console.log(employee1.getTaxAmount());

}

















Garlic is very common in our kitchen and taste when we eat food. It makes the food delicious and give an aroma that excite you to eat. Allicin is the compound responsible for its smell. The molecular formula of a allicin is C6 H10 OS2


a. What is the molar mass of allicin?

b. How many moles of allicin are present in 8.00 mg of this substance?

c. How many molecules of allicin are in 4.00 mg of this substance

d. How many S atoms are present in 2.00 mg of allicin?


The volume of a gas increases from 3Litres to 9Litres at a constant pressure of 4atm. Next,heat is added to increase the pressure to 10atm at constant finally heat is removed to decrease the pressure and volume back to the original values in a straight line path.

(a) Draw a PV-diagram

(b) Calculate the total workdone in this process.

Leave your answer in joules


Develop a swing application for login validation of a system as shown in the figure. The




application shows two options: one Sign up and another Sign in. When Sign up is selected, a




new screen will appear for asking name, username, password. If the entered username and




password do not exist in the database, it will show a successful message [Name] has




successfully registered and store corresponding username, password in the database,




otherwise the message [Name] already exists in the system will be displayed. On the other




hand, when Sign In option is selected, the user will be prompted to enter username,




password as shown in the figure. Eventually, the application checks whether username and




password both match with some entry in the database. If such entry found in the database,




then a welcome message Welcome [Name] will appear, otherwise an unsuccessful login




message Wrong username/password will be displayed. For message display, the swing dialogs can be used.




LATEST TUTORIALS
APPROVED BY CLIENTS