Make a program that input position number and day of work and compute the total salary earn... Sample run: Enter Position: 2 Enter Number of days: 10 The salary is 3500
Q: Provide a minimal Linux shell command which will run a program called exam.py, located in your prese...
A: According to our guidelines we solve first three: ================================== Answer 1.to run...
Q: What happens if a process calls wait before it has called fork, i.e., it has no children?
A: If a process calls wait before it has called fork then wait() function will return immediately
Q: What is the difference between a complete outer join, a full outer join, and a left outer join?
A: the main difference between a complete outer join, a full outer join, and a left outer join are :- ...
Q: You have port scanned an Internet-facing web server. The following ports are open. 23, 8O, 443, 8080...
A: given ports are: 23, 80, 443, 8080 and 63524
Q: GIS Cartography Question: Briefly describe a hill shade. Find an example of a hill shade map online,...
A:
Q: The problem is from Introduction to Programming and Data Structures with C++, 4th edition (Count po...
A: #include <iostream> using namespace std; int main() { int num, pos = 0, neg = 0,counter = ...
Q: What is the name of a user interface control that is linked to a data source?
A: Introduction: The user interface control is linked to the data source. Data-bound controls are those...
Q: draw and explain generic block diagram of an IoT device. explain in what circumstances you will pref...
A: Internet of things: An Internet of Things describes the network of physical object that are embedded...
Q: Let's finish working on our booking system. The last part for our booking system will be to manage...
A: Given :- Let's finish working on our booking system. The last part for our booking system will be t...
Q: List the components that are automatically created when you place a DataGridView \scontrol on a form...
A: In the given question seen that the DataGridView- The DataGridView control provides the powerful and...
Q: What is multifactor authentication, and how does it work? What role does it play in password securit...
A: What is multifactor authentication, and how does it work? What role does it play in password securit...
Q: >>> def count_iterations(val): count=0 while val > 1: = val val count = count + 1 2 %3D %3D print(co...
A: 15 is a answer
Q: What is the significance of the Log Output line?
A: Find the answer given as below :
Q: Language: C++ A shell sort algorithm is a variation of insertion sort. Your task is to sort the arra...
A: Start Take the array of elements Sort them Print array of elements Print Stop
Q: Make any program with control structure...
A: given - Java Program Make any program with control structure... Explain every line...
Q: Is there a way to rewrite this Java code differently? package application; public class Empl...
A: Answer: In this question, we are given a code and have to write in different possible if exist.
Q: A message transportation in the network follows network protocol. Are messages sent as a whole from ...
A: No, messages are not sent as whole , rather messages are sent into form of chunks or segments which ...
Q: How do you make a form in an application that just shows the columns of a single row of a database?
A: Given: How do you make a form in an application that just shows the columns of a single row of a dat...
Q: Are variables well-suited to the processing of data lists? Why do you think that is the case?
A: A list of programming codes including abstract data structure to calculate specified variables in a ...
Q: What is the definition of a system model?
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any ...
Q: Do the following without using a cal- culator or a computer, but check your answers with a calculato...
A: Given :- Do the following without using a calculator or a computer, but check youranswers with a cal...
Q: Assume that a class named Window has been defined. The Window class has a member function named clon...
A: we have to write a copy constructor. Basically a copy constructor is a member function that initiali...
Q: a manuscript page generally has about 500 words on it. if you read a manuscript in 1 minute and 24 s...
A: Manuscript can be defined as it is a documents or books that contains a number of pages or it is wri...
Q: What's the distinction between stack and heap memory?
A: Introduction What's the distinction between stack and heap memory?
Q: Which of the following statements is true or false? If the answer is no, explain why. "In a function...
A: Introduction: Which of the following statements is true or false? If the answer is no, explain why. ...
Q: In the integer multiplier block, the multiplicand after proper shifting is added to the running part...
A: Answer : correct option is A
Q: Explain the term BCNF?
A: Introduction: the question is about BCNF Boyce-Codd Normal Form and here is the solution in the next...
Q: C++ Please explain the code below. It doesn't have to be long, as long as you explain what the impo...
A: Please refer below for your reference: I have added comments in every line so you can understand: La...
Q: Create an activity diagram with these characteristics (assume that you will go throu these sequentia...
A: activity diagram is given below
Q: ertain application apps may employ two transport-layer protocols (UDP or TCP). How does a computer k...
A: Introduction: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are the two most ...
Q: With a statement, create an instance of the Transcript class.
A: Introduction: Creation of objects: A class is a collection of user-defined data structures that inc...
Q: A frame size 10 million bytes is being sent on a link with with bandwidth of 8 Mbps. The total trans...
A: Hi Dear!! Please give positive feedback!! Frame of size = 10 million bits = 10 × bytes = 10000000 ...
Q: 3. In the C++ language, write a function that takes a vector as the parameter and reverses the vecto...
A: In the C++ language, write a function that takes a vector as the parameter and reverses the vector. ...
Q: Assume we have a cache memory consisting of eight one-word blocks and the following sequence of bloc...
A: I'm providing the answer of above question. I hope this will be helpful for you....
Q: Produce the PDA that decides the following language. You do not need to show the full 6-tuple, but y...
A: The idea here is this: read every a and push a symbol onto the stack for each one. Then, when you st...
Q: What types of data are shown in the Data Sources window? How is it presented?
A: The Data Sources panel helps you to manage current data sources by viewing, editing, and deleting th...
Q: 1. Order the following functions by asymptotic order of growth (lowest to highest) | 2n | 3log n |2"...
A: 1) Following are the asymptotic order of growth Constant Function < Logirithmic Function < ...
Q: TASK 2.2: Open Terminal. Type in the following commands and show outcomes: To identify the availa...
A: The output of given command ,varies computer to computer.Below are examples ,to check yours do write...
Q: Bookm. Suppose the HTML file for your web page project includes a div element with the id value "cup...
A: what should be placed in the blank to complete the function
Q: What is the difference between ASCII and Unicode? What are some of the difference between string and...
A: Introduction: What is the difference between ASCII and Unicode? What are some of the difference betw...
Q: python" Write a function named add_value that has a single parameter. This parameter will be a list/...
A: start define a function that takes list as a parameter append 21 in list stop
Q: What is the value saved after executing the following code? .data var1 WORD 1000h var2 WORD 2000h...
A: answer in next step -
Q: How can I open the file txt on my computer?
A: Introduction: the question is about How can I open the file txt on my computer and here is the solut...
Q: If you mistakenly delete a file and want to recover it, you must do the actions outlined below.
A: Introduction: When you delete a file, the file itself is not deleted; instead, the reference to the ...
Q: Create a list for CSI 3680. The list must include the following information: The course number. ...
A: Find the answer below.
Q: 2. ABC Company needs a weekly payroll report for its sales people. Input to the program is the weekl...
A:
Q: Creating Artificial Intelligence Systems for Medical Applications Explain the concept of human natur...
A: Artificial intelligence is defined as the ability of computer or robot to perform operation like hum...
Q: Give an explanation for each of the following terms: database
A: Introduction: Give an explanation for each of the following terms: database
Q: In MongoDB, what precisely is a Document?
A: Introduction: In MongoDB, a document is a basic unit or building piece of data.
Q: Describe the advantages and disadvantages of connectionless protocols in compared to connection-base...
A: Introduction: The same route is used by all packets between the source and the destination. It is no...
Java Langauge. Please
Step by step
Solved in 3 steps with 2 images
- This should be written in Coral. I've been attempting to solve this for three days now and I'm at my wit's end. Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. Ex: If the input is -15 30, the output is: -15 -5 5 15 25 Ex: If the second integer is less than the first as in 20 5, the output is: Second integer can't be less than the first.Write a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the output is either heads or tails. Assume the input is a value greater than 0. Ex: If the input is: 3 the output is: heads tails heads For reproducibility needed for auto-grading, seed the program with a value of 2. In a real program, you would seed with the current time. In that case, every program's output would be different, which is what is desired but can't be auto-graded. Note: A common student mistake is to call srand() before each call to rand(). But seeding should only be done once, at the start of the program, after which rand() can be called any number of times. Your program must define and call the following function that returns "heads" or "tails".string HeadsOrTails() #include <iostream>#include <cstdlib>using namespace std; /* Define your function here */ int main() {// Add more variables as neededsrand(2); // Unique seed /* Type your code here…Write a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the output is either heads or tails. Assume the input is a value greater than 0. Ex: If the input is: 3 the output is: heads heads tails For reproducibility needed for auto-grading, seed the program with a value of 1. In a real program, you would seed with the current time. In that case, every program's output would be different, which is what is desired but can't be auto-graded. Note: A common student mistake is to seed before each call to random.randint(). But seeding should only be done once, at the start of the program, after which random.randint() can be called any number of times. Your program must define and call the heads_or_tails() function that randomly picks 0 or 1 and returns "heads" or "tails". Assume the value 0 represents "heads" and 1 represents "tails". this is what i have import random def heads_or_tails(n): i=0 while i<n: num = random.randint(0,1)…
- Write a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the output is either heads or tails. Assume the input is a value greater than 0. Ex: If the input is: 3 the output is: heads heads tails For reproducibility needed for auto-grading, seed the program with a value of 1. In a real program, you would seed with the current time. In that case, every program's output would be different, which is what is desired but can't be auto-graded. Note: A common student mistake is to seed before each call to random.randint(). But seeding should only be done once, at the start of the program, after which random.randint() can be called any number of times. Your program must define and call the heads_or_tails() function that randomly picks 0 or 1 and returns "heads" or "tails". Assume the value 0 represents "heads" and 1 represents "tails". python import random def heads_or_tails(): # Type your code here. if __name__ == '__main__':…Write a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the output is either heads or tails. Assume the input is a value greater than 0. Ex: If the input is: 3 the output is: heads heads tails For reproducibility needed for auto-grading, seed the program with a value of 1. In a real program, you would seed with the current time. In that case, every program's output would be different, which is what is desired but can't be auto-graded. Note: A common student mistake is to seed before each call to random.randint(). But seeding should only be done once, at the start of the program, after which random.randint() can be called any number of times. Your program must define and call the heads_or_tails() function that randomly picks 0 or 1 and returns "heads" or "tails". Assume the value 0 represents "heads" and 1 represents "tails". python please explain so i understand import random def heads_or_tails(): # Type your code here. if…Suppose we have a nice young couple who borrow $700000 from the bank, at an annual interest rate of3.124%. The mortgage is a 30 year loan, so they need to pay it off within 360 months total. Our happycouple decide to set their monthly mortgage payment at $2000 per month. Will they pay off the loan intime or not?Note that the monthly balance will be calculated asbalance = (im × previous balance) - monthly paymentwhere the convert annual interest to a monthly multiplier im is calculated as im = (1 +i)1/12 and i = annualinterest rate.Write a loop for track the total payment in 360 months so that we can evaluate if the couple can pay off theloan. Write in R Please and thank you.
- Write a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the output is either heads or tails. Assume the input is a value greater than 0. Ex: If the input is: 3 the output is: headstailsheads For reproducibility needed for auto-grading, seed the program with a value of 2. In a real program, you would seed with the current time. In that case, every program's output would be different, which is what is desired but can't be auto-graded. Note: A common student mistake is to call srand() before each call to rand(). But seeding should only be done once, at the start of the program, after which rand() can be called any number of times. Your program must define and call the following function that randomly picks 0 or 1 and returns "heads" or "tails". Assume the value 0 represents "heads" and 1 represents "tails".string HeadsOrTails() #include <iostream>#include <cstdlib>using namespace std; /* Define your function here */…Finish the function below that takes in the length of the two parallel sides of a trapezoid a and b, which are separated by a distance h, and returns its area. In [ ]: defarea_of_trapezoid(a,b,h):# YOUR CODE HEREraiseNotImplementedError() In [ ]: """Check that area_of_triangle returns the correct output for several inputs""" assert abs(area_of_trapezoid(3,3, 5) - 15) <=.1 assert abs(area_of_trapezoid(3,4, 5) - 17.5)Write a program that does temperature converter :\n", "- The user will enter if he wants the result in Celsius or in Fahrenheit. Use the input function to read this option. \n", "- Ask the user the value of the temperature he wants to convert. Use the input function to read this value and convert accordingly.\n", "- If the user wants the temperature in Fahrenheit compute: $ Fahrenheit = Celsius*5/9+32$.\n", "- If the user wants the Celsius compute as follows: $ C = (F-32)*5/9 $.\n"
- in this problem, three missionaries and three cannibals must cross a river using a boat which can carry at most two people, under the constraint that, for both banks, that the missionaries present on the bank cannot be outnumbered by cannibals. The boat cannot cross the river by itself with no people on board. Write a java code to calculate the moves required to move three missionaries and three cannibals. Print the number of moves also. Sample output: 1M , 1C ..... .... number of moves: 5Please answer it in Python Offer a program that knows how to find the solution of the jackpot price game in a way effective. it's up to you to choose a number at random, and it's up to your program. to guess it. You must write him 'g' if the number he guessed is too large, 'p' if the number is too small and 'b' if he guessed the right number. The number of trials is not limited. The program should always be able to guess the right number fast enough Example 1: Think of a number and I'll try to guess! Ready? Press Enter... Hmm.. Is it 15? p Hmm.. Is it 35? g Hmm.. Is it 31? g Hmm.. Is it 24? g Hmm.. Is it 20? g Hmm.. Is it 19? g Hmm.. Is it 17? p Hmm.. Is it 18? b I won! Example 2: Think of a number and I'll try to guess! Ready? Press Enter... Hmm.. Is it 4? p Hmm.. Is it 69? g Hmm.. Is it 49? g Hmm.. Is it 7? p Hmm.. Is it 19? p Hmm.. Is it 38? g Hmm.. Is it 25? g Hmm.. Is it 20? b I won! Example 3: Think of a number and I'll try to guess! Ready? Press Enter... Hmm.. Is it 46? g Hmm..…Java code Ever wondered how change is disbursed to customers in certain stores? In country X the following notes exists 200,100,50,20,10 and following coins: 5, 1, 50c, 10c, 5c. For the sake of this exercises let us only consider change below 50 see below example: Sample run 1: Enter item name: Apples Enter QTY of Apples: 2 Enter price per item N$: 3.25 Amount tendered N$: 50 Your change is: N$ 43.50 Disbursed as follows: 2 x N$20; 0 x N$10; 0 x N$5; 3 x N$1; 1 x 50c; 0 x 10c; 0 x 5c [Hint: make use of % and / operators to determine the values needed]