SUPPLEMENTAL ACTIVITIES 1. The value of variables are A, B, n and m. Assuming n =5 and m =5. What will be the output of x if A[10] = {-1, -2, -3, -4,- 5, -6, -7, -8, -9, -10} and B[10] = {1, 2, 3,4, 5, 6, 7, 8, 9, 10}? int c, x, n, m, d; for (c = 0; c <= n ; c++ { for (d = 0; d <= m; d++ { x = A[c] * B[d]; cout <« x<< "t";} cout << "In"; } Write your answer. 2. Refer to No. 1, what is the value of x if c[2] , d[3], n= 5 and m= 5? Write your answer. 3. Refer to No. 1, what is the value of x if c[8], d[8] n=9 and m= 5 Write your answer.
Q: When establishing PPP authentication, you have the option of using PAP or CHAP. Which of these is…
A: Intro When configuring PPP authentication, you have the option of selecting either PAP or CHAP.…
Q: A data file that is electronically sent to the customer's computer when other requested materials…
A: a. a cookie
Q: What is the mechanism via which an exception communicates with the exception handler?
A: Intro the above question is about How does an exception communicates with the exception handler?
Q: Memory data can be retrieved in one of two ways: sequentially or directly. Why is direct access so…
A: Introduction: If you were alive in the 1990s, when the World Wide Web was first established, you may…
Q: Is it necessary to discuss and briefly describe the processor's main structural components?
A: The CPU is also known as Central processing unit.
Q: Assume you are an Android developer who is going to create an Android application that will work on…
A: An Android developer creates software and apps for Android phones and tablets and the Google Play…
Q: please help me Using matplot write a python program to show plotter with the covid-19 affected…
A: Answer def plotGraph (AffectedList ): X = [ ' Not Affected' , 'Affected' ] X_axis =…
Q: Computer science Define and explain the purpose of direct memory accesses.
A: Introduction: Direct memory access (DMA) is a technology that allows an input/output (I/O) device to…
Q: What are the distinctions between top-down and bottom-up information security approaches?
A: Introduction: Depending on the response to the question It lays a high amount of responsibility on…
Q: Computer science What are the different types of RAM families available?
A: RAM The full form of RAM is Random Access Access. Data stored on this type of memory is lost when…
Q: What are the factors that can work against linear scale up in a transaction processing system?
A: Transaction Processing System A Transaction Processing System (TPS) is an Information system that…
Q: What exactly is the Copy to Output Directory property?
A: Copy to Output Directory Copy to Output Directory is the property of files in a Visual Studio…
Q: How important are the following three aspects of database administration?
A: Database administration : Everything necessary to administer a database and make it accessible as…
Q: hello i need a use case diagram , activity diagram, sequence diagram and class diagram for hospital…
A: Answer:- After gathering the requirements, we must begin the Analysis of the system to be…
Q: Please answer question. This is pertaining to Java programming language
A: Let us see answers below,
Q: Explanation of the controlled access protocol.
A: Controlled Access Protocol: In controlled access, both departments check each other's information to…
Q: Q5: If Ali's public key is and his private key is , and Bader's public key is and his private key…
A:
Q: What is "grey code" in computer science?
A: As grey code is not weighted, it is entirely unaffected by a digit's positional value. In contrast…
Q: In computer science, what is the full form of DDS?
A: The answer to the following question:-
Q: What, in your perspective, distinguished the von Neumann architecture from the competition?
A: Introduction "Princeton Architecture" is another name for Von-Neumann Architecture or Von-Neumann…
Q: Is Python capable of function overloading? Justify your actions.
A: Python does not support function overloading by default. Function overloading is the programming…
Q: In software design and development, what is the relationship between cohesion and coupling in terms…
A: When a company creates a software object, it outlines how it will achieve its goals by combining…
Q: Explain the functions of the preprocessor, compiler, and linker.
A: Introduction: The functions of the preprocessor, compiler, and linker are :
Q: How would you define multimedia in your own language?
A: Definition:- Multimedia, as the name implies, is a collection of several sorts of media such as…
Q: Describe the fundamental features of linked lists.
A: Linked list: Linked lists are referred to as linear data structures, which hold data in individual…
Q: What criteria do we use to determsine whether or not an argument is valid?
A: Introduction: An argument is legitimate if and only if the following conditions are met:
Q: What are the best practises for ensuring a local area network's resilience and availability?
A: Introduction: To fully appreciate resilience, it must first be disassembled into its component…
Q: What is a Service Oriented Architecture (SOA) and how does it work?
A: Introduction: The problem is based on software development's service-oriented design.
Q: Computer science Short answer Write a note on the directory structure in the UNIX OS and its…
A: Introduction: Unix is a kind of computer operating system.Multitasking and multi-user features are…
Q: Explain why legacy systems, rather than only software systems built using old technology, should be…
A: Introduction: A legacy system is an outmoded computer system, programming language, or application…
Q: We feel like small digits are often under-appreciated, most especially those of a 3-digit integer.…
A: Sample Screenshot:
Q: What are the biometric technology's drawbacks?
A: Personal Computer: A personal computer (PC) is a multi-purpose microcomputer that is small enough,…
Q: Can you think of a Linux package management system that you've used or plan to use?
A: Intro Software updates from specified Linux repositories (repos) may be installed, updated,…
Q: Describe the differences between the four ways signed integers may be represented in digital…
A: Intro Representation of signed integers The signed integers are a combination of a positive and…
Q: Would you rather an issue was discovered at runtime or during compilation?
A: Errors during compilation: Compile time faults are those that are discovered by the compiler during…
Q: How about being able to find out who checked out a certain book or what books a given patron has on…
A: Given: The system should be able to find out who took a certain book or what books a particular…
Q: What are the three basic cryptographic operations?
A: Cryptography Cryptography is a data security technique that protects the data by securing it from…
Q: Examine the technique for cross-platform mobile development
A: MOBILE DEVELOPMENT FOR CROSS PLATFORMS: Cross platform mobile development, as the name implies, is…
Q: An incident response (IR) is a collection of processes implemented during a crisis to anticipate,…
A: Introduction: The incident response (IR) process is a collection of information security rules and…
Q: Explain why public-key cryptography is required for IoT-enabled wireless networks.
A: The cryptography can be denoted as the process of encrypting the data at the sender's end and…
Q: What is meant by an Abstract Data Type (ADT) in C++? What are the advantages of ADTs?
A: An abstract data type (or ADT) is a class that has a defined set of operations and values. In other…
Q: Explain why it is worthwhile to learn assembly language programming.
A: Introduction: Learning assembly language aids in the comprehension of processor and memory…
Q: What is the purpose of CUDA and GPU computing?
A: Intro CUDA® is a parallel computing platform and programming style that, by leveraging the power of…
Q: What distinguishes Watson from conventional computers?
A: Introduction: However, what differentiates Watson from other computers is its capacity to comprehend…
Q: In software design and development, what is the relationship between cohesion and coupling in terms…
A: The relation ship between cohesion and coupling .] Cohesion and coupling are regarded as fundamental…
Q: Computer science What are some methods for seizing evidence from a mobile device?
A: Introduction: Because mobile devices are widely used for a variety of tasks, they can provide…
Q: What is a page fault, exactly?
A: Introduction: Page Fault: It can be defined as a scenario in which takes a program while execution…
Q: Define the concept of Abstract data type.
A: Introduction: An abstract data type (ADT) is a mathematical paradigm for data types in computer…
Q: What is the link between cohesion and coupling in the context of software design?
A: Given: We have to discuss what is the link between Cohesion and Coupling in the Context of…
Q: Animation provides feedback to users and aids in the explanation of the nature of items in your…
A: Animation is that the illusion of motion, created through a series of still drawings, poses, or…
C++ LANGUAGE
Step by step
Solved in 3 steps with 4 images
- Please do this in Python Programming and provide Screenshots The output should be exact same like in the examples. If the output in the example is in 2 decimals, then it should be like that. 1c - Othello 1 Othello, is a 2-player deterministic (no use of dice), perfect information (no information only known to one of the players) board game, similar to chess or go. The goal of this assignment is to give some information about the outcome once an Othello game has finished. This information is obtained by two measurements: The percentage of black pieces of all the pieces on the board. The percentage of the board that is covered in black pieces. The Othello board measures eight squares by eight squares, making the total number of squares sixty-four. Write a program that takes the number of white pieces followed by the number of black pieces as input. Print the two percentages as output. Enter the number of white pieces on the board: 34Enter the number of black pieces on the board:…C++ A robot is initially located at position (0; 0) in a grid [?5; 5] [?5; 5]. The robot can move randomly in any of the directions: up, down, left, right. The robot can only move one step at a time. For each move, print the direction of the move and the current position of the robot. If the robot makes a circle, which means it moves back to the original place, print "Back to the origin!" to the console and stop the program. If it reaches the boundary of the grid, print \Hit the boundary!" to the console and stop the program. A successful run of your code may look like:Down (0,-1)Down (0,-2)Up (0,-1)Left (-1,-1)Left (-2,-1)Up (-2,0)Left (-3,0)Left (-4,0)Left (-5,0)Hit the boundary! or Left (-1,0)Down (-1,-1)Right (0,-1)Up (0,0)Back to the origin! About: This program is to give you practice using the control ow, the random number generator, and output formatting. You may use <iomanip> to format your output. You may NOT use #include "stdafx.h".ISP-Java 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. For coding simplicity, output a space after every integer, including the last. 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.
- Please help me solve this with java .... just the HangMan HangMan instruction class : • HangMan is a game in which a player tries to guess a word based on a given hint. For example, if the given hint is “movie”, then the player must guess a movie name. If the given hint is a “country”, then the player must guess a country name, and so on.• The game starts by showing a message on the screen that shows the hint and all letters in the word but obscured as dashes (-). Then, the game will allow the player to guess 5 letters. If the player gives a letter that actually exists in the word, then this letter will be revealed. Afterwards, the game will ask the player to give the answer. If the given answer is correct, then the game will show a message that the player has won 5 points. Otherwise, the game will show a message that the player has lost. Below is one possible game scenario, in which the word is “iron man”, and the hint is “movie”. Note that the text in green color is the…Example Output The following output is an example of how your program should respond to the commands. The text in bold is the user-typed input. >>> StudentManager() $ AddStudent John, Doe, 3.7, 32 $ AddStudent Jean, Davis, 3.8, 24 $ AddStudent Aaron, Johnson, 3.6, 16 $ AddStudent John, Schwartzmann, 3.9, 28 $ PrintRoster John, Doe, 3.7, 32 Jean, Davis, 3.8, 24 Aaron, Johnson, 3.6, 16 John, Schwartzmann, 3.9, 28 $ SortRoster Name Aaron, Johnson, 3.6, 16 Jean, Davis, 3.8, 24 John, Doe, 3.7, 32 John, Schwartzmann, 3.9, 28 $ SortRoster GPA John, Schwartzmann, 3.9, 28 Jean, Davis, 3.8, 24 John, Doe, 3.7, 32 Aaron, Johnson, 3.6, 16 $ SortRoster Units John, Doe, 3.7, 32 John, Schwartzmann, 3.9 ,28 Jean, Davis, 3.8, 24 Aaron, Johnson, 3.6, 16 $ DeleteStudent Julia, Taylor Error! No student with that name was found in the roster. $ DeleteStudent Aaron, Johnson $ PrintRoster John, Doe, 3.7, 32 John, Schwartzmann, 3.9, 28 Jean, Davis, 3.8, 24 $ FindByFName…Can you write a new code in Java language with the values I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file. Group 1: CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999 ENG 80 90 80 94 90 74 78 63 83 80 90 -999 HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999 MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999 PHY 100 83 93 80 63 78 88 89 75 -999 Group 2: CSC 90 75 90 75 80 89 100 60 80 70 80 -999 ENG 80 80 70 68 70 78 80 90 90 76 -999 HIS 100 80 80 70 90 76 88…
- Write a function called monkey_experiment that takes in a goal string (e.g., "methinks it is like a weasel") and a number of iterations as an argument. Run the experiment for that many iterations, and return a tuple with the highest-scoring text that was generated along with the score that it got. Test results: >>> monkey_experiment("methinks it is like a weasel",100000) ('m ojindoebjrerloiuc m oaanvl', 8) >>> monkey_experiment("methinks it is like a weasel",100) ('yeanpqj twosisjcvqrrfu eagbi', 5) >>> monkey_experiment("brevity is the soul of wit",100000) ('nnebptorcrytbe wogl uygdsn', 8) >>> monkey_experiment("to be",100000) ('tofbe', 4) >>> monkey_experiment("to be",200000) ('tbhbe', 3) >>> monkey_experiment("to be",500000) ('eo be', 4)Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion: A, B, and C 2 D, E, and F 3 G, H, and I 4 J, K, and L 5 M, N, and O 6 P, Q, R, and S 7 T, U, and V 8 W, X, Y, and Z 9 Write a program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD the application should display 555-438-3663. Gaddis Tony. Starting Out with Python (2-downloads) (p. 367). Pearson Education. Kindle Edition.Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion:A, B, and C = 2D, E, and F = 3G, H, and I = 4J, K, and L = 5M, N, and O = 6P, Q, R, and S = 7T, U, and V = 8W, X, Y, and Z = 9Create an application that lets the user enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD, the application should display 555-438-3663.
- What is the probability that in a classroom of x people, at least 2 will be born on the same day of the year (ignore leap year)? Use a Monte Carlo Simulation and a frequency table to write a program that calculates this probability, where the number of people (x) in the simulated class is given by the user. The probability for a class of size 23, should be right around 50%. NO language of "break" or "true" please! PLEASE USE THE OUTLINE GIVEN BELOW TO WRITE THE CODE: # What is the probability that in a classroom of x people, at least 2 will be born on the same day of the year (ignore leap year)?# I have given you the skeleton and some of the code... you complete it using a frequency table!# Note: In a classroom of only 23 people, the probability is about 50.7% !# Try first with 10000 trials and then try with 100000 trials. This code runs somewhat slowly in repl.it import mathimport random # create and initialize frequency table:ft = []k = 0while(k < 365) : ft.append(0) k = k+1…This is basically something that has a certain number of states (sort of like how a traffic light can be Red, Yellow, Green) and changes from one state to another.This program will have 4 states: HAPPY, HUNGRY, BORED, SAD. Here are the rules. Our animal starts in a state of Happy, with the values for hungry = 0 and bored = 0. Each round the player can "feed", "play" or "ignore" their animal. If they feed their animal, then the hungry meter goes down and bored meter goes up. If they play with their animal, then the bored meter goes down and the hungry meter goes up. If they ignore their animal, then both hungry and bored go up. Don't go below 0 Here are the state changes. Each one of these is a "case" in a switch (from current state -> new State):HAPPY If hungry >= 2 transition to HUNGRY If bored >= 2 transition to BORED HUNGRY if hungry >= 4 transition to SAD if bored > hungry transition to BORED if hungry < 2 transition to HAPPY BORED If bored >= 4…Write a program that generates a gradebook similar to the jenzabar grade book output: student name grade letter grade Ahmed ... 90 A- honda 99 A+ Karim 60 D- you must use tuples, list and dictionaries appropriately to get the user input for the grades the grade should include all the categories in the coursework (classwork/homework, quizzes,midterm,final, lab and attendance) the assignments type weight listed in the syllabus must be used to compute the overall class grade