Q2. A. write a code to find the number of students who pass CS course, when their marks>=40 . As the list has 85 students. B. wite a code to print this shape: * * * * * * * * * * C. Write a code to find the area and parameter of a Tringle; Area =1/2 * High * Base Parameter= S1+S2+ Base
Q: In terms of IT security, what are the differences between on-premises solutions and cloud solutions?
A: Introduction: Systems are local data centers connected to a local network. Cloud-based systems are…
Q: 2.6 Exercises 1. Convert 12310 to binary. Hint • Answer 2. Convert the following unsigned decimal…
A:
Q: What's the difference between distance vector and link state routeing?
A: Solution:-
Q: Who in an organisation should decide where the information security function should be positioned in…
A: Introduction: The first category of persons we'll look at is those involved in the design,…
Q: While installing a second hard drive, you realise that the hard drive is not connected to the…
A: Introduction: The computer will be unable to see the drive if either cable is loose or damaged.…
Q: What is the difference between status information and event information?
A: Introduction: Changes in the environment are collected as events, alerts are notices that particular…
Q: Error SQL query: Copy create table login ( userid int AUTO_INCREMENT PRIMARY KEY,Username varchar…
A: Below is the answer to above query. I hope this will be helpful for you...
Q: What is the definition of a LIFO (last in, first out) memory?
A: Introduction: What is a LIFO memory (last in, first out)? "Last In, First Out" is the acronym for…
Q: Describe what vulnerabilities 'WannaCry' (ransomware) exploits to infect its target systems
A: WannaCry Ransomware WannaCry is a ransomware that is made up of numerous components. It takes the…
Q: a. Python does not directly enforce public and private member access and so will not generate an…
A: a. Python does not directly enforce public and private member access and so will not generate an…
Q: Write a pseudocode to find the average value in a list has 10 integer values. Write a pseudocode to…
A: a) The average of 10 numbers is defined as sum of 10 elements divided by 10. So the algorithm is…
Q: A technician is responsible to recover the hidden or deleted information c suspect computer. Which…
A: A technician is responsible to recover the hidden or deleted information on a suspect computer.…
Q: When an SSH client connects to an SSH server, what information does the SSH server transmit to the…
A: Introduction SSH stands for secured Shell. Secured shell transfer protocol is a protocol that helps…
Q: 3. Please provide professionally crafted solutions to the following: 1. For the following tree A B D…
A: What Is a TREE? A tree is an abstract data type in computer science that depicts a hierarchical tree…
Q: 3. Please provide professionally crafted solutions to the following: 1. For the following tree A в D…
A: According to the Bartleby guideline we are suppose to answer only 3 sub part of the question at a…
Q: Explain the differences between procedural and object-oriented programming languages in detail.
A: Procedure-oriented programs are based on subprograms also known as functions. These are accessed by…
Q: 2.A. Is it possible to pass variable y as parameter to the functions? 2.B. Supply the missing code…
A: The answers are answered below. As per Bartleby rules, we will answer the first 3 questions.
Q: Why do we need PSP for each member of an efficient team? In which areas will PSP contribute in the…
A: PSP Management plays a very vital role in every path of life. Team management is one of them.…
Q: What is the fundamental reason why servlets outperform programmes written in C or C++, despite the…
A: Servlets: It is a server-side component that provides web-based applications for the server.…
Q: What does the kernel technique do in the instance of an SVM classifier? Is it possible to use this…
A: Problem Analysis : Kernal Trick : This is a concept that is used in the SVM classifier that enables…
Q: What's the difference between distance vector and link state routeing?
A: Distance vector routing is performed using Bellman-Ford algorithm whereas link state routing is…
Q: ntroduction: This assignment is to provide practice in using the Java I/O techniques discussed in…
A: Answer
Q: Explain how the search change its direction in the gradient descent algorithm.
A: 1.Gradient Descent is an algorithm that is used to solve the optimization problems using…
Q: What are some of the similarities and differences between Google Spreadsheets and Microsoft Excel?
A: Introduction: They are the computer software that let the user to manipulate data in a tabular…
Q: If you're a software tester, you've come to the right place. You use a calculator for testing. Which…
A: Introduction: As a software tester, you're a valuable addition to any organization that employs you.…
Q: Given the following codes: decode the sequence 11110
A: The question is to decode the sequence 11110.
Q: Pushdown Automata (PDA) Upon converting the given PDA into an equivalent CFG, where: The PDA…
A:
Q: What type of malware is 'WannaCry' ? Describe what distinguishes this malware type from others.
A: INTRODUCTION: Crypto ransomware, such as WannaCry, is a form of harmful software (malware) used by…
Q: Define a system and identify five (5) characteristics of it.
A: Introduction System: A system is an orderly grouping of interdependent components linked together…
Q: The system enables the specialist and guardian to treat and follow up on autism disorder cases. The…
A: Here the state diagram is given below:
Q: describe what vulnerabilities 'WannaCry' malware exploited to infect its target systems.
A: Intro WannaCry Ransomware The WannaCry ransomware is made up of several parts. It comes in the…
Q: Discuss the concept of a candidate key being an attribute that is part of a composite primary key.
A: Justification: A candidate key is a single or a collection of keys that uniquely identify rows in a…
Q: Write a function and name it add_four_nums that takes in 4 parameters as integers (no strings),…
A: JavaScript and HTML code to add the sum of three number and complete Onclick function in input tag.
Q: What are the three generations of wireless security advancements that have occurred? What is the…
A: Introduction: Here we are required to explain what are the three generations of wireless security…
Q: Identify three basic problems that a computer may develop and indicate any troubleshooting skills…
A: The three basic problems that a computer may develop are: 1)Application runs slowly. 2)Computer is…
Q: What is the difference between screened host and screened subnet designs in terms of firewalls? As a…
A: Introduction Screened host architectures for firewalls A firewall uses a firewall router and a…
Q: Explain how https works in a few words.
A: How HTTP work HTTPS encrypts data as it travels through your browser and the website's server,…
Q: What form of 3-D graphics software is created for architects and engineers who utilize computers to…
A: Computer-Aided Design Computer-aided design software is a form of program that allows you to…
Q: What do we mean by bit time when computing Ethernet (CSMA/CD) backoff time?
A: Computing Ethernet: The Carrier Sense Access Multiple with Collision Detection (CSMA/CD) is a…
Q: What exactly are phases in multimedia? Explain each one.
A: Introduction: The following are the fundamental steps of multimedia production:
Q: When using classes in programming the concept of public and private members of a class (the data and…
A: Public and private member of the class
Q: If the image contains 800 x 600 pixels, with RGB coloring system, how many megabytes are required to…
A: image contains 800 x 600 pixels , with RGB coloring system.
Q: Create 1 Java Class for each shape below without main method with the specifications given below.…
A: As per the requirement program is completed. Note: All the three classes Circle.java, Rectangle.java…
Q: Make a note of the directory structure of the UNIX operating system and its significance.
A: Introduction UNIX is a command-based operating system in which the users are interacting with the…
Q: Why is the time slice value chosen so important to the performance of a time-sharing operating…
A: Introduction: Time slicing: In time-sharing systems, time slicing is a scheduling technique or…
Q: What do the terms "static data member" and "static member function" mean to you?
A: Static data member: Static data members are class members that are announced with the help of the…
Q: Suppose we have a collection of vectors x1, . . . , xN . Suppose we wish to cluster these points…
A: One of the most extensively used unsupervised clustering approaches is K-means. The K-means method…
Q: add the route information for contact Us,Feedback, and API-read components.We will setup how to…
A: Here i write code to for contact us , feedback and api components in html:…
Q: 2. (Sentinel.java) Write a program that reads several numbers, determines how many positive and…
A: As per guidelines we are supposed to answer only one question. Kindly repost the other questions as…
Q: There is debate over whether operating systems should contain apps such as notepad, paint, and so…
A: There is debate over whether operating systems should contain apps such as notepad, paint, and so…
for first question, you need create a list, so it tells how mnay students have passed and failed. progamming langauge php
![Q2.
A. write a code to find the number of students who pass CS course, when their marks>=40 . As the
list has 85 students.
B. wite a code to print this shape:
*
* *
* *
*
*
* * *
C. Write a code to find the area and parameter of a Tringle;
High * Base
Parameter= S1+S2+ Base
Area =1/2
*](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7688d1ea-9ec2-4d46-be3d-a16a19976cc3%2F778354b3-f036-4c7b-ab78-93019ec10365%2Feny9s5f_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- def fun_a(cards): """ cards is a list of int numbers ranging between 0 to 12 inclusive. We use the number to represent the card's rank in a deck of card. 0 is '2', 1 is '3', ...,9 is 'J', 10 is 'Q', 11 is 'K' and 12 is 'A' This function is to check if there is four of a kind in the cards (4 cards of the same rank) and a fifth card as a kicker to form a four of a kind hands with 5 cards total. The 5 cards look like this: x x x x y (x might be the same as y). If there is more than one way to form such a hand with given cards, choose x that has the highest ranking (that has 4 cards of rank x), and choose y that has the highest ranking in the remaining cards after removing 4 x's. return (x, y) if such a hand exists. otherwise return None. """(Numerical) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters to 0, and then generate a large number of pseudorandom integers between 0 and 9. Each time a 0 occurs, increment the variable you have designated as the zero counter; when a 1 occurs, increment the counter variable that’s keeping count of the 1s that occur; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of the time they occurred.Common Time Zones Function Name: commonTimeZones() Parameters: code1( str ) , code2( str ) Returns: list of common time zones ( list ) Description: You and your friend live in different countries, but you figure there's a chance that both of you might be in the same time zone. Thus, you want to find out the list of possible time zones that you and your friend could both be in. Given two country codes, write a function that returns a list of the time zones the two countries have in common. Be sure not to include any duplicate time zones. If the two country codes do not have any common time zones, return the string 'No Common Time Zones' instead. Note: You can assume that the codes will always be valid. example test cases: >>> commonTimeZones('can', 'usa') ['UTC-08:00', 'UTC-07:00', 'UTC-06:00', 'UTC-05:00', 'UTC-04:00'] >>> commonTimeZones('rus', 'chn') ['UTC+08:00'] For this assignment, use the REST countries API…
- Common Time Zones Function Name: commonTimeZones() Parameters: code1( str ), code2( str) Returns: list of common time zones ( list ) Description: You and your friend live in different countries, but you figure there's a chance that both of you might be in the same time zone. Thus, you want to find out the list of possible time zones that you and your friend could both be in. Given two country codes, write a function that returns a list of the time zones the two countries have in common. Be sure not to include any duplicate time zones. If the two country codes do not have any common time zones, return the string 'No Common Time Zones' instead. Note: You can assume that the codes will always be valid. example test cases: >>> commonTimeZones('can', 'usa') [UTC-08:00', 'UTC-07:00', 'UTC-06:00', 'UTC-05:00', 'UTC-04:00] >>> commonTimeZones('rus', 'chn') [UTC+08:00] For this assignment, use the REST countries API (https://restcountries.com/#api-endpoints-v2). For all of your requests, make…Please type thank you!Q3: Interplanetary Spaceflight Milan Tusk is the richest person in the universe. After devoting decades of his life to further our space exploration technologies, he’s finally ready to retire. Being a space enthusiast, the first thing he wants to do is visit n planets p1, p2, …, pn, in this order. He’s currently on planet p0. Milan knows that the distance between planets pi and pi + 1 (for 0 ≤ i < n) is d[i]light years. His spaceship uses 1 tonne of fossil fuels per light year. He starts with a full tank and can fill up his tank at any of the n planets (but he must not run out in between two planets). There’s a huge cost to set up the spaceship for refuelling. Due to financial constraints (he’s not THAT rich), he can fill up his tank at most ktimes. In order to save money and make his spaceship lighter, Milan is looking for the smallest possible fuel tank that enables him to complete his space travel and reach planet pn. What is the smallest tank capacity that enables him to do so?…
- CCC '13 J1 - Next in line Canadian Computing Competition: 2013 Stage 1, Junior #1 You know a family with three children. Their ages form an arithmetic sequence: the difference in ages between the middle child and youngest child is the same as the difference in ages between the oldest child and the middle child. For example, their ages could be 5, 10 and 15, since both adjacent pairs have a difference of 5 years. Given the ages of the youngest and middle children, what is the age of the oldest child? Input Specification The input consists of two integers, each on a separate line. The first line is the age Y of the youngest child (0JAVA CODE PLEASE Functions With No Parameters and Return Values Quiz by CodeChum Admin Create a function named banner that prints “CodyChum” with a newline. In the main function, write a program that accepts an integer input which would serve as an inclusive stopping point of a loop iteration that starts at the value of 1. If the number that loops through the range is divisible by either 2 or 3, then call the banner function, otherwise just print the number. Input 1. One line containing an integer Output First line is the integer user input. Succeeding multiple lines containing an integer or “CodyChum” 10 1 CodyChum CodyChum CodyChum 5 CodyChum 7 CodyChum CodyChum CodyChumGiven numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print a space after each seat, including after the last. Ex: numRows = 2 and numColumns = 3 prints: 1A 1B 1C 2A 2B 2C *Can you please do this code in C++*In c++ Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards, th backwards End each loop with a newline. Ex If courseGrades (7, 9, 11, 10), print: 7 9 11 10 10 11 9 7 Hint Use two for loops. Second loop starts with i=NUM VALS-1. (Notes) Note: These activities may test code with different test values. This activity will perform two tests, both with a 4-element array (int courseGrades(4) See 'How to Use zyBooks Also note: If the submitted code tries to access an invalid array element, such as courseGrades[9] for a 4-element array, the test may generate strange results. Or the test may crash and report "Program end never reached", in which case the system doesn't print the test case that caused the reported message 32344345730rity? 2 using namespace std; 3 4 int main() { 5 6 7 8 9 10 11 12 13 14 const int NUM VALS-4; int courseGrades [NUM VALS]; int i; for (i = 0; i > courseGrades[1]; } y Your solution goes here YUsing JavaScriptDefine a function getMonth which accepts number from 1 to 12 as an argument and return the descriptive name of the month. For example: getMonth(1) should return January while getMonth(12) returns December, finally getMonth(-1) returns null. Use array or object to define a list of names for the month and refrain from using if statement to check the argument if it's 1, 2, etc.Ex1: If A=the odd numbers between (1,20), B= the even numbers between (2,20) find (1)A+B, (2)A.B, (3) A', B' ,(4)A'.B' ,(5)A*B, (6)A*B' (7) A'/B' ,(8)A'./B' ,(9)A/B (10)A./BSEE MORE QUESTIONS
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)