Use c programming for the following question. And plz don't use any other libraries other than # include < stdio.h
Q: 1. Microsoft and Apple enter into negotiations with each other. What do they agree on? What is the…
A: The question has been answered in step2
Q: Q.9 Explain difference between short term memory and long term memory.
A: These question answer is as follows
Q: Suppose we want to apply Radix Sort to sort 100,000 4-letter words, with each letter taken from the…
A: Assuming the counting sort take 2*n+2*k time to sort the n elements of rage 1 to k ; Case : 1 -…
Q: (Q6.1) Consider a 2-player, zero-sum x-o game, in a 3 x3 board. If the initial state of the game is:…
A: Answer: We have drawn the tree of tic toc toe and also we have written if win then +2 and neutal+0…
Q: My interest results keeps coming out to 0.00? Not sure what I'm doing wrong
A: You have typed the wrong formula in your terminal. Kindly copy paste the code as it is to get the…
Q: In a program, write a function that accepts two arguments: a list, and a number n. Assume that the…
A: #Defining display_larger function which accepts 2 parameter from main def…
Q: Program output is displaying as: 1000 500 250 I need it to display as: 1000 500 250
A: Answer:
Q: 53. What is BIOS beep code?
A: BIOS (Basic Input/Output System) is the program used by the computer's microprocessor to boot the…
Q: function using Write a display recursion function void display books (int n)
A: The solution is given in the next step
Q: Write SQL queries for the following database: id Customers name email Categories id name id…
A: Since there are multiple parts to a single question, the first three subparts are answered for you.…
Q: Please write your own original code. Objective Create a program that initializes and works with…
A: C-INTRODUCTION:- Early in the 1970s, the high-level programming language C was created. It was…
Q: The base function /(x) is reflected in the x-axis, stretched ly and translated 3 units to the left…
A:
Q: Explain design principles for dealing with error.
A:
Q: 1. Truth Table Construct a truth table for the following: a) F(X,Y,Z) =Y'z + XZ ху Z F 0 0 0 b) F(x,…
A: a) Given- F(x,y,z) = y'z +xz x y z y' y'z xz F = y'z +xz 0 0 0 1 0 0 0 0 0 1 1 1 0 1 0 1 0…
Q: A technician is trying to install windows on a computer, the install process reports there are no…
A: These question answer is as follows
Q: Need to fill the blanks. #include #include #include // this library is needed to use exit(0) //…
A: Fill in the blanks. Note: The solution provided is in bold.
Q: Explain the characteristics of Ant Colony optimization
A:
Q: No explanation, just need the numbers inputed
A: Probability is used in many aspects of programming.
Q: Check whether the following schedules are conflict equivalent? Justify your answer
A: Given, Schedule 1 T1 T2 R(A) W(A) R(A) W(A) R(B) W(R) Schedule 2…
Q: Q5: Refer to figure below, identify the elements of communication ING Switch 16 X N 10 Printer…
A: According to the given picture, there are: Switch: To connect to other devices on a wired network…
Q: Passive ROM is usually greater than active ROM, and active ROM usually decreases sooner than…
A: ROM (read only memory) ROM, or read-only memory, is an abbreviation. Computer memory chips that…
Q: What is User Acceptance Testing (UAT)? Explain with Examples
A: User acceptance: User acceptance testing is a sort of testing that is utilized to decide if a…
Q: Discuss the project scope of smart student monitoring system
A: Introduction The Student Attendance Management System supports online attendance recording with…
Q: Using the laws of logical equivalence show: (a) ¬(p ∨ (q ∧ ¬r)) ∧ q ≡ (¬p ∧ q) ∧ r
A: Laws of logical equivalence: DeMorgans law: ¬(p ∨q) =(¬p∧¬q) ¬(p∧q)=(¬p∨¬q) Negation law: ¬ (¬q) =q
Q: Differentiate canonical and standard form.
A: Solution : Canonical and Standard forms are two integral forms of Set theory that provide simpler…
Q: What is AGP slot? What is its use?
A: Accelerated Graphics Port (AGP) High-speed visual output is accomplished using a point-to-point…
Q: Differentiate between Distributed Computing and Cloud Computing.
A: Cloud computing is the deployment of on-demand IT resources and services over the internet,…
Q: (3) 4. Find a minimum spanning tree in the graph below. 5 3 6 4 4 4 3 3 2 5 6 b 5 3 2 g j 2 3 4 с 3…
A: According to the information given:- We have to find out the minimum spanning tree of the mentioned…
Q: combination of attributes, that could be used as a search key? Why do you
A: The answer is
Q: Label the Recursion Requirements. int fact (int n) { int result; } if(n==1) return 1; result fact…
A:
Q: Please answer all questions and show all work 8. If f(n) = n³ and g(n) = 17,000,000n² Show that g(n)…
A: Here is the explanation of the above problem. See below steps.
Q: PLEASE USE PYTHON PLEASE (give the same output as the instruction given) Program Specifications…
A: \course = input() if course == 'UG' or course == 'G' or course == 'DL': homework, quizzes, mdtm,…
Q: In python write a program that: Function arguments For this exercise, you are asked to code three…
A: ALGORITHM:- 1. Define all the 3 functions as per the given requirements. 2. Test all the functions…
Q: Program errors displayed here Traceback (most recent call last): File "main.py", line 1, in…
A: This error of invalid literal for int() you are getting because of the type cast int (input()). It…
Q: Explain Donald Norman’s model of interaction and use it to demonstrate why some systems are harder…
A: Let's see the answer:
Q: 1/ Design a standard project has three forms with backcolors red, b and green,
A: Solution- An step by step explanation is provided to design a standard project that has three forms…
Q: Edit the isPrime function so that it returns False when any number less than 3 is passed (including…
A: Ans:- NPrimes.py:- from math import sqrt #isPrime function to check whether a number is prime or…
Q: Rana wants to send an email to Salma, but she needs to sign the email with the digital signature.…
A: 1. Rana creates a message and signs it with her private key. 2. Rana sends the message and signature…
Q: Design the workflow diagram for Customer and Salesman interaction.
A: The workflow diagram for Customer and Salesman interaction.
Q: What is Upgrading a microprocessor? Why we have to do it?
A: Microprocessor: The brain of every computer as well as several home and electrical appliances is the…
Q: >) Find the counterexample, if possible, to the universally quantified statements, where the domain…
A: There is no counterexample to the universally quantified statement. The claim that can be…
Q: AIM: To create SDLC model Software Development life cycle (SDLC) is a spiritual model used in…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: how to generate random numbers with Gaussian distribution ?
A: Random Number: A random number is a pick of a number made seemingly at random from a certain…
Q: Include an appropriate conclusion for the set of instructions. (include a brief wrap-up of what the…
A: 1. SoakWhile working, soak the tree so that the root ball is soaked, as a dry root ball may reject…
Q: : Server setting Operating system: Linux (Ubuntu) You need to setup Apache server (on the server…
A: The Apache HTTP Server which refers to the free and open-source cross-platform web server software,…
Q: Write a short note on: Advances in Genetic Algorithms.
A: These question answer is as follows
Q: Explain role of senses which plays an important role in HCI ?
A: Let's see the answer:
Q: Problem Description The hailstone sequence is defined as the integer sequence that results from…
A: Python programming language : Python is a programming language that Guido van Rossum created in the…
Q: Q2. All of us know by now that performance is inversely related to delay. When you use the Internet,…
A: The given statement: We have to find which application will be more sensitive to delay while using…
Q: Analyse the above case and investigate the reasons of failure of Information systems
A: This is very simple. In the case of Prada following are the reasons for the failure of Information…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- You are given a file consisting of students’ names in the following form: lastName, firstName, middleName. (Note that some students may not have middle names). Write a program that converts each name to the following form: firstName middleName lastName. Your program must read each student’s entire name in a variable and must consist of a function that takes input as a string, consists of student’s name, and returns the string consisting of the altered name. Use the string function find to find the index of the function length to find the length of the string; and function substr to extract the firstName, middleName, and lastName. Test your program with a file consisting of the following names: Miller, Jason Brian Blair, Lisa Maria Gupta, Anil Kumar Arora, Sumit Sahil Saleh, Rhonda Beth(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.متبقي ۵۸:۲۶:. . متعد د الخيارات if we have the tuple Students = ('Hasan', 'Noor', 'Rana', 'Reem', , 'Ali') the function that choose randomly one of the :names must be written as get_up = choice(Student) get_up = random(Student) get_up = random[Student] get_up = choice[Student] ۲ من ۱۹
- Please use python not java or C++ A straight line can be defined by a pair of points p1(x1, y1) and p2(x2, y2). The slope m of a line is defined as follow: ? = ?% − ?' ?% − ?' Your program reads the points from a text file called ‘points.txt’ which contains the coordinates of unknown number of pairs of points as shown in Figure 1. Each line contains four values x1, y1, x2, y2, where x1, y1 are the coordinates of the first point and x2, y2 are the coordinates of the second point. Figure 1. Input file contains unknown number of point pairs Use Spider, to create the following files: (i) The input file ‘points.txt’ shown in Figure 1. (ii) Your Python program that reads from the input file ‘points.txt’, the coordinates of unknown number of pairs of points, computes the corresponding slopes then prints the results on the screen as shown in Figure 2. Figure 2. The output on screen Your program must define and use the following functions: 1. printHeader(...): prints on screen the three lines…***in python only*** use turtle function Define the concentricCircles function such that: It draws a series of concentric circles, where the first parameter specifies the radius of the outermost circle, and the second parameter specifies the number of circles to draw. The third and fourth parameters specify an outer color and an other color, respectively. The outer color is used for the largest (i.e., outermost) circle, and then every other circle out to the edge alternates between that color and the 'other' color. The difference between the radii of subsequent circles is always the same, and this difference is also equal to the radius of the smallest circle. Put another way: the distance between the inside and outside of each ring is the same. Define concentricCircles with 4 parameters Use def to define concentricCircles with 4 parameters Use any kind of loop Within the definition of concentricCircles with 4 parameters, use any kind of loop in at least one place. Call…Write a program that generates random numbers between -25 and 25 by using the randint function. The program will add up the numbers and terminate when the sum of the values becomes zero. The program should contain the following functions: add() : add up the values main(): the function where the program execution should begin and end. randomgen(): a function that returns a number between -25 and 25 A global variable subsetsum that keeps track of the sum The program should output the count of the number of values generated before exiting saying that the subset sum was zero.
- The file text.txt contains a sentence text written in all small letters and does not have any punctuation marks, no numbers, no symbols except for spaces. You are required to write a program which accepts an operation code, and zero to two inputs depending on the operation code. Based on the operation code, you will call three versions of the overlaoded function textProcessing as follows: ● Operation 0: The function removes all vowels from the ORIGINAL sentence. The vowels considered are the small letters (a, e, i, o, u y, and w). • Operation 1: The code further asks for one lowercase letter to be input by the user. If the character is not a lower case letter, the code outputs Invalid.The function returns the distance (difference) between the letter first occurence and last occurence in the text. If the letter does not occur in the sentence, it returns 0. • Operation 2: The code asks for two lowercase letters to be input by the user. If the characters are not lower case letters, the…Q14: The function f(x) = e can be represented in a Taylor series by: ex = -Σ n! 72=0 Write a program in a script file that determines e by using the Taylor series representation. The program calculates e by adding terms of the series and stopping when the absolute value of the term that was added last is smaller than 0.0001. Use the program to calculate e², e05 and eª This problem can be solved by using while - end loop because : ONumber of passes not known OIt is a Taylor series All of the given O Number of passes is predetermined O Estimated error value must be calculatedA java program where the system should use the following methods: .a) Lagrange interpolation for finding missing values of a function .b) A function implementing multiple application of the trapezoidal rule .c) A function implementing the composite Simpson's rule SHOULD ALLOW THE USER TO : Enter the known values of a function to be integrated or load them from a text file Enter a value of the parameter h and n (the number of intervals) .c) Choose a method to be used
- Problem A straight line can be defined by a pair of points p1(x1, yı) and p2(x2, y2). The slope m of a line is defined as follow: У2 — У1 m = X2 - X1 Your program reads the points from a text file called 'points.txt’ which contains the coordinates of unknown number of pairs of points as shown in Figure 1. Each line contains four values x1, y1, x2, y2, where x1, yl are the coordinates of the first point and x2, y2 are the coordinates of the second point. 10 -2 7.5 -3.2 4 15.5 -4.6 21 -2 Зр 12.5 6. 2 5 -3 -6 10 3 10 15 Figure 1. Input file contains unknown number of point pairs Use Spider, to create the following files: (i) The input file 'points.txt' shown in Figure 1. Your Python program that reads from the input file 'points.txt', the coordinates of unknown number of pairs of points, computes the corresponding slopes then prints the results on the screen as shown in Figure 2. (ii) Line # X1 Y1 X2 Y2 slope 1 10.00 -2.00 7.50 -3.20 0.48 2 4.00 15.50 -4.60 21.00 -0.64 3 0.00 0.00 0.00…Problem A straight line can be defined by a pair of points p:(x1, yı) and p2(x2, y2). The slope m of a line is defined as follow: У — У X2 - X1 Your program reads the points from a text file called 'points.txt' which contains the coordinates of unknown number of pairs of points as shown in Figure 1. Each line contains four values x1, y1, x2, y2, where x1, yl are the coordinates of the first point and x2, y2 are the coordinates of the second point. m = 10 -2 7.5 -3.2 4 15.5 -4.6 21 -2 Зр 12.5 6 5 -3 -6 10 3 10 15 Figure 1. Input file contains unknown number of point pairs Use Spider, to create the following files: (i) The input file 'points.txt' shown in Figure 1. Your Python program that reads from the input file 'points.txt', the coordinates of unknown (ii) number of pairs of points, computes the corresponding slopes then prints the results on the screen as shown in Figure 2. ==== Line # X1 Y1 X2 Y2 Slope ========= ===== 10.00 0.48 -0.64 inf 1 -2.00 7.50 -3.20 4.00 -4.60 15.50 0.00…NEED C++ HELP WITH WRITING VECTORS WITH CLASSES Write code to read a list of song durations and song names from input. For each line of input, set the duration and name of currSong. Then add currSong to playlist. Input first receives a song duration, then the name of that song (which you can assume is only one word long). Input example: 424 Time383 Money-1 CODE AS IS NOW #include <iostream>#include <string>#include <vector>using namespace std; class Song { public: void SetDurationAndName(int songDuration, string songName) { duration = songDuration; name = songName; } void PrintSong() const { cout << duration << " - " << name << endl; } int GetDuration() const { return duration; } string GetName() const { return name; } private: int duration; string name;}; int main() { vector<Song> playlist; Song currSong; int currDuration; string currName; unsigned int i;…