ACTIVITY no2. Complete the function definition to return the hours given minutes. Sample output with input: 210.0 3.5. code
Q: The following meanings apply to the word "interruptions": Detail the sorts of them and the reasons…
A: We need to find the meaning of the word "interruptions", and discuss the reason why hardware…
Q: Find out how wireless networks affect underdeveloped countries. Why aren't local area networks…
A: Introduction: A form of computer network known as a wireless network links network nodes by use of…
Q: ed as Important.
A: Algorithm: Start. Check if x and y are greater than 7 or less then zero, print invalid codes. Else,…
Q: What distinguishes a Key Derivation Function from other researched families of secure hash functions…
A: 1KEY DERIVATION FUNCTION:A kind of cryptography that goes by the name KEY DERIVATION FUNCTION (kef)…
Q: What are the main drawbacks of the two-tier system? What about a client-server approach with several…
A: Two tier system is a software architecture in which the interface runs on a client and the data…
Q: When moving from on-premises servers to an IaaS architecture, what governance concerns should you be…
A: IaaS Architecture: With the IaaS model, cloud providers host servers, storage, networking, and…
Q: Please discuss the limits of a mobile device's main memory in your own terms before comparing it to…
A: According to the information given:- We have to describe the limits of a mobile device's main memory…
Q: Before one can recognise multiprocessor systems, one has to understand interprocessor communication.
A: Answer: I agree that understanding interprocessor communication is necessary for recognizing…
Q: Is there a hardware or software issue if you power on the computer for the first time but don't hear…
A: It is often a more serious issue when the fault is with the hardware. If the computer will not boot…
Q: flat-curved screen's form on an LCD-based computer mon
A: Explaining the flat design of the LCD monitor screen used in computers These monitors are extremely…
Q: Thanks to recent technical developments, practically all household appliances may now communicate…
A: A computer network is referred to as a wireless network if Radio Frequency (RF) links are used to…
Q: Figure 3 shows a LAN topology Assume that no port security implemented on both switches. The…
A: According to the information given:- We have to elaborate the mentioned LAN Topology scenario in…
Q: Block quotation formatting must be used if _______ or more words in a row are taken directly from a…
A: Block quotation formatting must be used if 40 or more words in a row are taken directly from a…
Q: The various speeds of a computer system's many storage devices should be specified, going from the…
A: Computer System: A group of interconnected devices that can take in data, produce data, process…
Q: Compiler and interpreter comparisona
A: Compiler : Compilers are software tools that convert high-level programming language code into…
Q: How does virtualization operate when used with cloud computing
A: How does virtualization operate when used with cloud computing? What precisely is it?
Q: Give an explanation of a cassette drive and how it varies from a typical tape recorder for storing…
A: A common cassette recorder is what is meant when people talk about a "cassette drive" in the context…
Q: To distinguish between scalar and superscale CPUs, utilise examples. The length of time required to…
A: A scalar processor is a CPU that can execute only one instruction at a time. This type of CPU is the…
Q: Which firewall construction style has emerged as the de facto norm for companies operating in the…
A: Introduction: Below is a list of 15 various business functions, whether they are a company's or a…
Q: Understanding the inner workings of multiprocessor systems is necessary in order to spot them.
A: If you want to be able to optimize code for multiprocessor systems, or design such systems, it is…
Q: The data tablet uses far less computer time than a light pen and offers resolutions similar to that…
A: The Answer is:- According to the information given:-We have to define the device uses much less…
Q: The following overview lists the top functions that an operating system performs:
A: Given: The essential duties of an operating system include the following:
Q: OSI model
A: Given :- In the above given question, the statement is mention in the above given question Need to…
Q: You had previously prepared a file that you intended to use in a dictionary attack against a target…
A: There are a few key distinctions between the process of creating operating systems for personal…
Q: Q2: Complete the main programs and writing its functions, classes and find the Area for each shape:…
A: The following steps need to be taken for the given program: Create a Triangle class with a…
Q: How can I unplug a 250 GB solid state drive from a computer in the safest way feasible without…
A: Introduction: Let's first have a quick discussion on SSDs before learning how to securely remove the…
Q: Implement function WriteRectangle to display a (filled) rectangle on the screen, with the width and…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: Has the transition from on-premise servers to an IaaS architecture raised any governance concerns?
A: IaaS Architecture IaaS architecture a refers to the structural design of the a computer network that…
Q: If true, how do time-sharing operating systems differ from distributed operating systems?
A: Operating system An OS goes about as a delegate between the client of a PC and PC hardware. The…
Q: What planning risks are there during software testing? Justify
A: The response to the question is: How do you handle risks? The act of detecting, assessing, and…
Q: Congrats! You work for Zillow now. Your first task is to write an algorithm that recommends…
A: Algorithm: 1. Input Apartment size 2. Input number of pets 3. Input rent 4. Display output
Q: Have you ever seen someone being harassed or tormented online? When you first learnt about the…
A: On Facebook, I saw one of my friends being harassed by other users. Every time he uploads…
Q: Does a hash table exist that can accommodate linked lists of size m? What objectives should be met…
A: To distinguish the single item from a collection of related things, hashing is utilized. Hash tables…
Q: quickly describe the variations between active and passive transformations?
A: Answer : Active transformations , it is describe as when any transformation change the position of…
Q: Which of the following, in the Internet of Things, converts an electrical signal into a physical…
A: The answer is given below step.
Q: Which methods are the most effective for managing your firewall? Explain.
A: Given: What are some of the best techniques for managing firewalls? Explain.
Q: The relative speeds of the various storage devices on a computer system should be listed, going from…
A: System for Computing: A "complete" computer is one that contains all the required hardware, software…
Q: What is an interruption, exactly, and how are they used? Sort predicted hardware failures from…
A: A signal known as an interrupt can be sent by a computer program or a linked device. The operating…
Q: What precisely does the central processing unit accomplish, in addition to the other things it does?…
A: Introduction: The instructions included in a computer programme are carried out by an electrical…
Q: How safe is Lamport's OLP given the relevance of the hash function's properties
A: Here is the answer below: Lamport's one-time positive identification formula : Louis Iacona…
Q: the operating system's capabilities on a desktop computer?
A: A computer's operating system serves as a link between users and the hardware. It helps the…
Q: What are the operating system differences between time-sharing and distributed systems? What is the…
A: Operating systems that are distributed: When a group of communicative, autonomous, and numerous…
Q: ning risks are there during software testi
A: Introduction: The process of identifying, prioritising, and managing risk is known as risk…
Q: What many technological approaches are used in the process of identifying network intrusions?
A: Introduction: Any illegal or unauthorised activity on a computer is considered an intrusion.
Q: Smoothie constructor should accept a list of ingredients. • Should not be empty => throw…
A: The completed code is given below: using System.Collections.Generic;using System;using…
Q: ating system similarities and differences between a time-sharing and a distributed approach? How…
A: Explanation: Below are the operating system similarities and differences between a time-sharing and…
Q: Q4:-Complete the following program by writing its functions and class: C++ Main() { Stack A(10),…
A: We need to write a C++ program to implement the stack operations along with the implementation of…
Q: Question 1: Which of the following standard algorithms is not Dynamic Programming based. 01 02 03 04…
A: The solution for the above-given question is given below:
Q: What are the primary duties of a firewall? Currently, I'm developing software to filter packets.…
A: firewall developing software: Computer firewalls aid in the protection of our computer systems from…
Q: Review these A reference is another name given to a variable in memory of the same data type A…
A: Below I have provided a c++ program for the given question. Also, I have attached a screenshot of…
ACTIVITY no2.
Sample output with input: 210.0
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- #include <iostream> #include <bits/stdc++.h> #include <chrono> #include <stdlib.h> #include <cstdlib> #ifdef _WIN32 #include <Windows.h> #else #include <unistd.h> #endif using namespace std; void shuffle(string cardTyperr[], int n) { unsigned seed = chrono::system_clock::now().time_since_epoch().count(); shuffle(cardTyperr, cardTyperr + n, default_random_engine(seed)); for (int i = 0; i < n; ++i) cout << cardTyperr[i] << " "; cout << endl; cout << flush; system ("CLS"); } void playerScore(string playerName[]) { int player1 = 0; int player2 = 0; cout << "Score for PLAYER 1: " << player1 << endl; cout << "Score for PLAYER 2: " << player2 << endl; } int main() { string playerName[2] = {"PLAYER 1", "PLAYER 2"}; int cardOrder[8] = {0, 1, 2, 3, 4, 5, 6, 7}; for (int i = 0; i < 8; i++) { cout << cardOrder[i] << " "; } cout << endl; string cardType[8] =…given ASCIIOFSET .FILL x0030 NegASCIIOFSET .FILL xFFD0 ASCIINewline .FILL x000d ; Newline ascii code ASCIISpace .FILL x0020 ; Space ascii code ASCIIComma .FILL x002C ; Comma ascii code Use LC-3 I/O device to print number, commas, and spaces in printCommaSpace subroutine, also check code to see if it follows instructions and modify accordingly1、Counting Primitive Operations void STRAITMAXMIN(A,n,max,min) //Set the maximum value in A to max and the minimum value to min { int i,n max=min=A[1] for i=2 to n { if A[i]> max max=A[i]; if A[i]< min min=A[i]; } }
- c++ programing Sample Testcase 0: Input: (-2) Output: Negative input Sample Testcase 1: Input: 0 Output: Zero size matrix Sample Testcase 2: Input 3 2 Output: Wrong entry Sample Testcase 3: Input 3 0 1 2 3 4 5 6 7 8 9 Output: 11 Sample Testcase 4: Input 3 1 1 2 3 4 5 6 7 8 9 Output: 19 #include <iostream> #include <cmath> using namespace std; int main() { int s, region; cin>>s>>region; int MAT[s][s]; //Start your code Here return 0; } 09.coded in it When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This adjustment can be done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by dividing all values by the largest value. The input begins with an integer indicating the number of floating-point values that follow. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print(f'{your_value:.2f}') Ex: If the input is: 5 30.0 50.0 10.0 100.0 65.0 the output is: 0.30 0.50 0.10 1.00 0.65..GENERATE THE CODE BELOW FROM THE UNIX ENVIRONMENT #include <stdio.h>#include <stdlib.h>#include <time.h> // Function to display the game boardvoid displayBoard(char board[3][3]) { printf("\n"); printf(" %c | %c | %c \n", board[0][0], board[0][1], board[0][2]); printf(" ---|---|---\n"); printf(" %c | %c | %c \n", board[1][0], board[1][1], board[1][2]); printf(" ---|---|---\n"); printf(" %c | %c | %c \n", board[2][0], board[2][1], board[2][2]); printf("\n");} // Function to check if the game is over (i.e., if someone has won or if there are no more moves)int isGameOver(char board[3][3]) { // Check rows for a win for (int i = 0; i < 3; i++) { if (board[i][0] != ' ' && board[i][0] == board[i][1] && board[i][1] == board[i][2]) { return 1; } } // Check columns for a win for (int i = 0; i < 3; i++) { if (board[0][i] != ' ' && board[0][i] == board[1][i] && board[1][i]…
- please code in pythonFix the errors in the code below so that it returns the average PM 2.5 value for the passed state (using the two letter abbreviation). It should print 11.33333333333333.def avg_PM25(state) inFile = open("uspoll.txt","r") lines = inFile.readlines() inFile.close() # calculate the average total = 0 count = 0 for line in lines: values = line.split(":") curr25 = float(values[2]) cityState = values[1] values = cityState.split(",") curr_state = values[0] if curr_state.find(state) >= 0: total = total + curr25 count = count + 1 return total / count print(avg_PM25('OH'))Q1 :- Fill in the missing blank for the given code. 1:- Sample.cpp #include<iostream> using namespace std; class Sample{ public: int number; friend ostream &operator<<(_____(1)_____ &os, const Sample & s ) { os << s.number; return os; } friend istream &operator>>(_____(2)_____ &is, Sample &s ) { is >> s.number; return is; } }; 2:- Main.cpp #include "Sample.cpp" #include<iostream> using namespace std; int main(){ Sample s1; _____(3)_____; _____(4)_____; return 0; } --------------------------------------------------------------------------------- Q2 :- Fill in the missing blank for the given code. 1:- SAMPLE.CPP #include<iostream> using namespace std; class Sample{ public: int number; Sample _____(1)_____(Sample& a) { Sample b; b.number = this->number+a.number; return b; } }; 2:-…Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as input, and outputs the average and max. Ex: If the input is: 15 20 0 5 the output is: 10 20 My Code: data = input("")data = data.split(" ")count = 0total = 0max = -99999 for val in data:total += int(val)count += 1 if int(val) > max:max = valavg = total/count print(int(avg), max) This code doesnt produce the correct MAX needed the out oupt for this code is. 10 5 should be 10 20
- Arrays a1, a2… are populated as shown; display a[i] for each calls to arr; if a[i] less than or equal to 0 display a message indicating those conditions public static void arr(int[] a) { //Add the missing loop a[i] = a[i + 1] + a[i - 1]; // display a[i] } } Note:- Please type and execute this java program and also need an output for this java program.[Python (py3)] Please modify my code below such that Matrix A and Matrix B can be added if the dimension of Matrix A is equal to the dimension of Matrix B. When the dimension of Matrix A is not equal to the dimension of Matrix B, print "Matrix addition cannot be performed; dimensions are unequal." The input will come from file1.txt, and the output should only be printed to output.txt Format of the input from file1.txt:First Line: type of operation (add)Second Line: matrix A dimension (example: if 3 rows and 2 columns, type 3 2)Third Line: matrix A elementsFourth Line: matrix B dimension Fifth Line: matrix B elements Sample input 1:add2 353 -4 17 31 22 3 67 2 2-34 6 3 Sample output 1:120 -2 3-27 37 5 Sample input 2:add2 2 53 -47 312 367 2 1-34 6 2 Sample Output 2:Matrix addition cannot be performed; dimensions are unequal. ---------------------------------------------------------------------- import numpy as npimport sys f1 = open("file1.txt","r")lines = f1.readlines()dim =…public static void main(String[] args) throws IOException{ BufferedReader b=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Input instructor Salary: "); double salary=Double.parseDouble(b.readLine()); System.out.print("Input Academic Rank: "); String rank=b.readLine(); double tax=0; if(rank.equalsIgnoreCase("Assistant")) tax=salary*9/100; else if(rank.equalsIgnoreCase("Associate")) tax=salary*12/100; else if(rank.equalsIgnoreCase("Lecturer")) tax=salary*7/100; double net_salary=salary-tax; System.out.println("\nThe amount of Tax is BD "+tax); System.out.println("The Net Salary is BD "+net_salary); } }