In: Computer Science
Explain Trap-and-Emulate and Binary Translation Virtualization Implementation with neat diagrams? Also describe types of Virtual Machines and their Implementations?
In: Computer Science
I have few questions to be ask for search in computer:
1) Draw a min heap with at least 8 nodes.
2) What are two real life examples of a Priority Queue?
3) Draw a min heap with at least 8 nodes.
r
In: Computer Science
Add a 1- to 2-page section to your Playbook/Runbook. Create a prescriptive section of your playbook providing guidelines to secure each of these areas: Network connections Mobile devices Cloud services
In: Computer Science
In: Computer Science
***C++ Coding***
Write a program for sorting a list of integers in ascending order using the bubble sort algorithm. Please include comments to understand code.
Requirements
Implement the following functions:
Here is the content of the file data.txt.
9
8
4
7
2
9
5
6
1
3
In: Computer Science
Sentential Logic Translation:
C ) More jobs (J) will be created and the economy (E) will improve only if government spending (G) is increased and taxes (T) are not raised; however, the deficit (D) will be reduced only if taxes are raised and government spending is not increased, and the economy will improve if and only if the deficit is reduced
In: Computer Science
. Write a C program that asks the user a multiple-choice
question and shows four possible answers, (a) through (d). Prompt
the user to input a response as a character. If the user enters the
correct response, print a message stating that the answer is
correct. If the user enters an incorrect response, print a message
stating that the answer is wrong. If the user enters anything other
than the letters a, b, c, or d, print a message stating that the
input is incorrect.
The below example shows three runs of the program, one for each
type of response (correct, incorrect, invalid input). You are
welcome to change the quiz question and answers, but there must be
a single correct answer to your quiz question.
Tip: use "\t" in your printf statements to print a tab and get
indented output like the quiz answers in the output below.
Welcome to the Quizzer! Here's your question...
What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c)
Munster (d) Crookshanks
Your answer: c Correct!
Welcome to the Quizzer! Here's your question...
What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c)
Munster (d) Crookshanks
Your answer: b Wrong!
Welcome to the Quizzer! Here's your question...
What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c)
Munster (d) Crookshanks
Your answer: x Invalid input.
In: Computer Science
How would you show two linked lists are equal? (Java for Data Structures and Algorithms)
In: Computer Science
What is a three-tiered client-server architecture? (operating system)
In: Computer Science
In: Computer Science
Write a program that prompts the user to enter a 3 x 3 matrix of double values and tests whether it is a positive Markov matrix. There will be two methods which will be called from the main method: public static double [] [] createArray() 1. Creates a 3 by 3 two dimensional array of doubles 2. Prompts the user for values as shown in the sample run 3. Stores the numbers in the array in the order entered 4. Returns the array to the main method public boolean isMarkovMatrix(double [][] matrix) 1. Returns false if any value in the array is negative 2. Prints the sum of each column in the array 3. Returns false if any the sum of any of the columns is not equal to 1.0 4. Otherwise, it returns true. Sample Program running: Enter a 3 x 3 matrix by row 0.15 0.875 0.375 0.55 0.005 0.225 0.30 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is a Markov matrix Enter a 3 x 3 matrix by row -0.2 0.875 0.375 0.75 0.005 0.225 0.45 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is not a Markov matrix The program must display the sum of EACH INDIVIDUAL column A response in Eclipse Java would be much appreciated. Thank you in advance
In: Computer Science
Must make a "Calculator" using C. The calculator must subtract, add, divide, and multiply inputs, and tell whether a number is prime or not. The user chooses how many inputs go into the calculator.
For example, the code will ask the user what function they want. If the user chooses to subtract, the the code will then ask the user how many numbers they want to subtract. After, the code will ask the user to input as many numbers as they chose in the last step. Lastly, the code must subtract the first input - the second input - the third input and so on, and must print the answer.
In: Computer Science
in c code
For example, a sample execution of your code would be as follows:
Cookie Corner! (name it whatever you want)
Please enter your first name.
Jane
Jane, what type of cookie would you like to order?
1
You selected a SUGAR cookie. How many cookies would you like?
4
Jane, your total cost is $1.00
Would you like to order another type of cookie?
No
Thanks for ordering!
In: Computer Science
In Chapter 4 of your book, you created an interactive application named MarshallsRevenue that prompts a user for the number of interior and exterior murals scheduled to be painted during a month and computes the expected revenue for each type of mural. The program also prompts the user for the month number and modifies the pricing based on requirements listed in Chapter 4.
Now, modify the program so that the user must enter a month value from 1 through 12. If the user enters an incorrect number, the program prompts for a valid value. Also, the user must enter a number between 0 and 30 inclusive for the number of murals of each type; otherwise, the program prompts the user again.
Below is the source code
using System;
class MainClass
{
public static void Main (string[] args) //main function
{
//variable declaration
int month,intmu,extmu,total;
total=0;
string[] arr = new string[] {"January", "February", "March", "April", "May",
"June", "July", "August", "September", "October", "November", "December"};
do
{
//accepting the month value from user
Console.WriteLine ("Enter a month number");
month = Convert.ToInt32(Console.ReadLine());
if(month<1 || month >12)
Console.WriteLine ("Enter a valid value between 1 to 12");
}while(month<1 || month >12);
do
{
//accepting interior mural number from user
Console.WriteLine ("Enter number of interior murals");
intmu = Convert.ToInt32(Console.ReadLine());
if(intmu < 0 || intmu >30)
Console.WriteLine ("Enter a valid value between 0 to 30");
}while(intmu < 0 || intmu >30);
do
{
//accepting exterior mural number from user
Console.WriteLine ("Enter number of exterior murals");
extmu = Convert.ToInt32(Console.ReadLine());
if(extmu < 0 || extmu >30)
Console.WriteLine ("Enter a valid value between 0 to 30");
}while(extmu < 0 || extmu >30);
//displaying the data
Console.WriteLine ("Revenue for the month of "+arr[month-1]);
Console.WriteLine("Number of interior murals : "+intmu);
Console.WriteLine("Number of exterior murals : "+extmu);
//calcultaing the total revenue
total=(100*intmu)+(200*extmu);
Console.WriteLine("Total Revenue : Rs "+total);
}
}
Please provide source code and display response.
In: Computer Science