Write a program to print the lyrics of the song “Old MacDonald." Your program should print the lyrics for five different animals, similar to the example verse below. Old MacDonald had a farm, Ee-igh, Ee-igh, Ohl And on that farm he had a cow, Ee-igh, Ee-igh, Oh! With a moo, moo here and a moo, moo there. Here a moo, there a moo, everywhere a moo, mo. Old MacDonald had a farm, Ee-igh, Ee-igh, Oh!
Q: Information bits consisting of 1101 is to be transmitted using Hamming (7,4) code. a) Determine the ...
A: The question is on write the answer of the question related to Hamming code.
Q: Discuss the benefits and drawbacks of using the symbolic math toolbox over MATLAB alone to transform...
A: Introduction: The question is about to Discuss the benefits and drawbacks of using the symbolic math...
Q: A company manufactures three products engines, pumps and fans. They give a discount of 10% on orders...
A: I have provided C++ CODE along with CODE SCREENSHOT and also provided OUTPUT SCREENSHO...
Q: 7.A good that is used as a medium of exchange as well as being a consumption good is called commod...
A: Ans: A good that is used as a medium of exchange as well as being a consumption good is called : c) ...
Q: Problem 3B (harder) In this version, assume the two input strings can be of same or different length...
A: The Answer is
Q: Given a string, write a method that returns the number of occurrences of substrings "baba" or "mama"...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Implement a method ...
Q: Write a Python programme to demonstrate how to use the isinstance() method to determine whether the ...
A: Introduction: Write a Python program to demonstrate how to use the instance() method to determine wh...
Q: To answer this question, you may need to write a small program. Consider the following case: current...
A: Introduction To answer this question, you may need to write a small program. Consider the following ...
Q: 4. Create an array of 20 fives In [4]: # Code Here 5. Create an array of the integers from 10 to 70 ...
A: To write code to create an array of 20 fives an array of the integers from 10 to 70 an array of all...
Q: terms infix expression, prefix expression, and postfix expression. Convert the following infix expre...
A: In expression representation :-There are three popular methods ( ways) for representation of an expr...
Q: Consider the following multithreaded algorithm for performing pairwise multiplication on n-element a...
A: Algorithm: SUM-ARRAYS'(A, B, C) n = A. Length grain-size = ? // to be determined r = ...
Q: Which XXX should replace the missing statement in the following BSTReplaceChild algorithm? ESTReplac...
A: The question is to fill the missing statement in BSTReplaceChild algorithm.
Q: People go to the beach and often buy a bunch of stuff that will only be used at the beach. Pretend y...
A: Assume that we are placing the input txt file in the same folder as the working directory. Please fi...
Q: describe what software engineering is and how it differs from other types of engineering.
A: Introduction: Software engineering is an engineering field dealing with all elements of software cre...
Q: What are the different models for software requirements, and their advantages and disadvantages in r...
A:
Q: Write a java program to reverse a user entered array in groups. Take the size of group from the user...
A: Hi Dear!! Please Upvote!! Your positive feedback will be more valuable!! ---------------------------...
Q: ree-layer design that includes an online layer, a near-line layer, and an offline layer?
A: Explanation An online, near-line, and offline layer make up the three-layer architecture. The onlin...
Q: If we have 10 bits to represent colours, how many different colours can we present? a. 1024 b. 409...
A: Lets see the solution in the next steps
Q: Write a console application that uses at least five (5) different methods of Math class. Provide a m...
A: The Answer is
Q: crew transformation matrix, in a screw transformation, prove th x Rot (a. 3) = Rot (ø. 3) x Trans(A,...
A: Screw transformation matrix multiplying the translation matrix by the rotation matrix. Trans(A, i³)...
Q: What is the best possible runtime that any comparison-based sorting can have? Explain in detail.
A: Lets see the solution in the next steps
Q: What are the internals of a convolutional neural network How do you train a model with transfer lea...
A: answer is
Q: Instruction : SUB Rd, Rs, Rt a. What are the values of control signals generated by the control in F...
A: ALU: ALU stands for Arithmetic Logic Unit. It performs arithmetic and logic operations such as addit...
Q: (s) of virtualization you will deploy (data, desktop, CPU, etc.) and why th
A: As we know Virtualization is the process of creating a virtual version of something like multiple op...
Q: acteristic of Big Data is variety, which means that: a. data can have many different formats. b. d...
A: one characteristic of Big Data is variety, which means that: a. data can have many different fo...
Q: What is a data warehouse and what are its advantages and disadvantages? What is the data warehouse's...
A: Introduction: A data warehouse (DW or DWH), sometimes known as an enterprise data warehouse (EDW), i...
Q: Write code that outputs variable numBirds as follows. End with a newline. Ex: If the input is: 3 the...
A: The required Java program is in the next step with explanation given in code comments.
Q: 7. Determine whether the following graphs are trees. Explain your answer. а) V3 V5 V6 b) vo Vネ v5 V6
A: Solution: For determine the given graph is tree, if it has the following properties. 1) In the undir...
Q: 4. Define s, u, and d, all functions on the integers, by s(n) = n² , u(n) = n + 1, and d(n) = n – 1....
A: the given solution below will provide all functions on integrs by s(n)=n2,u(n)=n+1 and d(n)=n-1
Q: What are the four parts of a database system?
A: Introduction: The database system is made up of four major components: Hardware Software Data Data ...
Q: For the given hierarchy, Design Abstract classes, interfaces and justify your answer
A: interface MC { // create method named get_data publicvoidget_data(); // create method named put_data...
Q: What exactly is a natural ordering? How can you define a natural ordering for a class that you creat...
A: Natural ordering is a type of total ordering that is the default (most commonly used) for the provid...
Q: Consider this scenario: An exception is thrown when a function is called. What are the three things ...
A: An exception is thrown when a function is called. Things can do by the function is try-catch, throw...
Q: What is the function of a firewall, and how can it be employed in your company?
A: A firewall is a security gadget as PC equipment or programming. It can assist with safeguarding your...
Q: Which of the following statements is true about Deep Learning? a. Deep Learning is based on statist...
A: Answer: The correct option is (b) => Deep learning is a subset of machine learning
Q: How do you determine what test cases are appropriate for automation?
A: The main capability of computers are the automation, save the time and labour. It can explain the co...
Q: Convert the following NFA to an equivalent DFA
A:
Q: Which of the following layer provide an abstraction between hardware and other software in android? ...
A: The answer of this question is as follows:
Q: A consistency index measures the degree of inconsistency in pairwise comparisons. Discuss how you ca...
A: Actually every consistency index for pairwise comparison judgment among criteria from the goal. Co...
Q: C Language Explain what is the difference between a doubly linked list and singly linked list? Give...
A: The solution to the given problem is below.
Q: Write a java program to reverse a user entered array in groups. Take the size of group from the user...
A: Required:- Write a java program to reverse a user-entered array in groups. Take the size of the grou...
Q: Write down the transition function values for each state and symbol for the DFA in question 1(a) and...
A: For the given language in 1.a which is: A language that accepts strings of length not more than 5 an...
Q: Edit View Query Project Debug Tools Window Help |4x口, .- New Query D & 9 . 3 hourglass ! Execute Deb...
A: By analysing the above I found out the below solutions: For the first error : The EmpID column is a ...
Q: using Huffman encoding. What is your binary representation of the message? Draw your Huffman trie ...
A: Given message: “algorithms design and analysis is an art" We need to encode using Huffman encoding a...
Q: Q1) Write a C++ program to compute the value of S using function called Compute_S(x, n), where the v...
A: Below is the code
Q: What are Web-influenced sales and what is a reasonable estimate of total Web-influenced sales?
A: Web-influenced sales is an online business model in which businesses offer their products or service...
Q: The cross-sectional are of each member in cm2 is underlined. Each member is made of steel, E = 20 * ...
A: Given that E=20*10^6 N.cm2
Q: Choose one of the following tools in the program GIMP: desaturate, clone, rotate, increase contrast,...
A: increase contrast Actually IC does as making black darker and white brighter and it's property all t...
Q: What is Activity Circle Diagram (ACD)? What are the dead and active states? What are the Event Sched...
A: What is Activity Circle Diagram (ACD)? What are the Event Scheduling? Algorithm steps of Event Sche...
Q: When is it advisable to deploy Brouter on your network?
A: Introduction: The rapid advancement of technology will render conventional network designs incapable...
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- Write a program to print the lyrics of the song "Old MacDonald." Yourprogram should print the lyrics for five different animals, similar to theexample verse below. Old MacDonald had a farm, Ee-igh, Ee-igh, Oh!And on that farm he had a cow, Ee-igh, Ee-igh, Oh!With a moo, moo here and a moo, moo there.Here a moo, there a moo, everywhere a moo, moo.Old MacDonald had a farm, Ee-igh, Ee-igh, Oh!1. Write a pyrhon program that prints out a classic hangman stick figure. The program should ask the user to enter a number from 1-6 and the corresponding hangman should be printed. The value the user inputs corresponds to the number of incorrect guesses in a real hangman game and so the completeness of the hangman will correspond to the number of ‘incorrect guesses’ inputted by the user (e.g., if the user enters 1, then only the head of the hangman will be printed; full example below). Example:Enter a number from 1-6: 1O Enter a number from 1-6: 2O|Enter a number from 1-6: 3O\||Enter a number from 1-6: 4O\|/|Enter a number from 1-6: 5O\|/|/Enter a number from 1-6: 6O\|/|/ \ 2. Modify your program from problem 1 so that the user input is checked to be a validsingle digit (1-6) before printing the corresponding hangman. If the input is not valid, theninstead of a hangman the following message should be printed “Invalid input: you must enter asingle number from 1-6.” Example:Enter a…6. A palindrome is a number or text phrase that reads the same backwards or forwards. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554 and 11611. Write a program that reads a 5 digit integer and determines whether it is a palindrome. Hint: One way to do this is to use division (/) and modulus (%) operators to separate the number into individual digits.
- Design a program (flowgorithm chart with C++ visual studio) that lets the user play the game Rock, Paper, Scissors against the computer. The program should work as follows: When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. Don't display the computer's choice yet.) The user enters his or her choice of "rock," "paper," or "scissors" at the keyboard. The computer's choice is then displayed. The program should display a message indicating whether the user or the computer was the winner. A winner is selected according to the following rules: If one player chooses rock and the other player chooses scissors, then the rock wins. (The rock smashes the scissors.) If one player chooses scissors and the other player chooses paper, then scissors wins.(Scissors cut paper.) If one player chooses…1. Write a program to find the equivalent series and parallel resistance for 3 resistor values. Your program should scan the 3 resistor values and then compute the equivalent series and parallel resistance for all 3 resistors. For example, if the 3 resistor values are r1=100, r2=200 and r3=300 ohms, respectively, their equivalent series resistance is rl + r2 + r3 = 100 + 200 + 300 = 600 ohms and their equivalent parallel resistance = 1 / [1/rl + 1/r2 + 1/r3] = 1/[0.01+0.005+0.0033] = 54.55 ohms.Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.
- Singular to Plural. Create a program in Python that accepts a word in singular, and produces the corresponding plural. Use the following rules: a. If the word end in ‑s, -ss, -sh, -ch, -x, or –z, then add –es to the word. For example, the plural of tax is taxes b. If the word ends in -fe, then replace the ending with –ves. For example, the plural of wolf is wolves c. If the word ends in y and the previous letter is a vowel, then add –s to the word. For example, the plural of boy is boys d. If the word ends in y and the previous letter is a consonant, then change the –y ending with –ies. For example, the plural of city is cities e. If the word does not meet the criteria above, then add –s to it.1. Write a program that prints your full name. Write a program that prints your full name using asterisk(*). Write a program that prints a square, a rectangle and a triangle using asterisk. Write a program that adds THREE(3) numbers. Write a program that multiply THREE(3) numbers. Write a program that divides TWO(2) numbers.Using R, write a program which will create a histogram with the following: X-axis labelof “Horsepower” Y-axis label of “Number of Cars” Over-all title of “Car Comparisons” Bar width of 20mm Bar boarder which is black Bar fill which is blue
- Write a c++ program to assign passengers seats in an airplane. Assume a small airplane with seat numbering as follows: 1 A B C D 2 A B C D 3 A B C D 4 A B C D 5 A B C D 6 A B C D 7 A B C D The program should display the seat pattern, with an 'X' marking the seats already assigned. For example, after seats 1A, 2B, and 4C are taken, the display should look like this: 1 X B C D 2 A X C D 3 A B C D 4 A B X D 5 A B C D 6 A B C D 7 A B C D After displaying the seats available, the program prompts for the seat desired, the user types in a seat, and then the display of available seats is updated. This continues until all seats are filled or until the user signals that the program should end. If the user types in a seat that is already assigned, the program should say that that seat is occupied and ask…Write a program that reads from the user a character ('q' or 'c'). If the character is 'c', the program reads from the user the radius rof a circle and prints its area. • If the user enters 'q', the program asks the user to enter the length and width of a quadrilateral. We assume the quadrilateral is either a square or rectangle. You should print if the quadrilateral is square or rectangle. • Otherwise, it prints "Wrong character" PS: Use the following formulas: area of circle=3.14*r Sample Run1: Enter a character (q or c): q Enter the Length and Width: 80 150 |It is a rectangle Sample Run2: Enter a character (q or c): q Enter the Length and Width: 80 80 It is a square Sample Run3: Enter a character (q or c): c Enter the radius: 2 The area of the circle is 12.56 Sample Run4: Enter a character (q or c): d Wrong characterf. A laborant in a laboratory does a number of antigen tests in one day. Write a program that simulates the number of antigen tests done in a day in a laboratory, displays the number of positives and negatives, and calculates the % of positives in one day. Your program needs to first generate a random number that will show the number of tests done in a day. One laboratory in a day cannot do more than 100 tests and less than 1 (they do at least one). Then for each of the tests, your program needs to generate a random number to show whether they are positive or negative. In order to write this program, you need to have the following three functions used by the main function: test result (void): This function generates a test result. It should randomly return either one or zero. 1 means positive test result and 0 means negative test result. float positive percentage (int,int) : This function takes the total number of positives and the total number of tests and returns the % of positives.…