1. Create a program that will get the square and sum of a series of number (13) + (2²) + (3²) + (42) + (5²) + ... + (n3). Please refer to the given sample input and output below: Sample Input: Enter Number: 5 Sample Output: 1 * 1 2 * 2 = 4 3 * 3 = 9 4 * 4 = 16 55 = 25 The sum of series is 55 2. Write a program that will calculate the cube of the number up to a given integer. Please refer to the given sample input and output below: Sample Input: Enter Number: 5 Sample Output: The cube of 1 is 1 The cube of 2 is 8 The cube of 3 is 27 The cube of 4 is 64 The cube of 5 is 125 Activate VWindows
Q: Explain how the control bus lines such as MRDC, MWDC, IORC, and IOWC works.
A: Introduction: The MRDC and M W TC signals represent memory read and write commands, respectively, an...
Q: How to find and display the city per state with the lowest 2010 census population (CENSUS2010POP). D...
A: Answer: we have import csv file in python .
Q: IN PYTHON Design a program that has the following: Inputs: Last Name, First Name, Middle Name, Birth...
A: Given The answer is given below.
Q: sum of squares
A: read n,sum i=1 if i<=n sum=sum+(i*i) i=i+1 print sum
Q: 9. Let M = ({90, 41:42}; {a,b}, 8, qo; {q1}) be the NFA given by the state diagram: (a) Construct th...
A: We need to construct transition table and check for acceptance for the given NFA.
Q: Who created the first flash drive?
A: Introduction: Flash Drives: Almost every college student nowadays has a flash drive in their bag. ...
Q: Which of these is the largest unit of measurement for data storage capacity?
A: We have to discuss Which of these is the largest unit of measurement for data storage capacity.
Q: From where does the following command get its input? tr 'a-z' 'A-Z' |tee file1 >file2 files a-z and ...
A: The answer is given below.
Q: An internet shop has what kind of legal structure?
A: the answer is
Q: ervice com
A: Cloud storage is a cloud computing model in which data is stored on the Internet by a cloud computin...
Q: Which is the importance of the identification field in the IP Packets
A: Introduction: Which is the importance of the identification field in the IP Packets The IP header is...
Q: This question concerns the DES IP box. Please enter all answers as strings of 0's and 1's. Conside...
A: Solution ::
Q: 1. Create a script file that will calculate the hyperbolic cotangent of a user-supplied value ´x’. U...
A: The answer is given below:-
Q: In what university did John von Neumann attend?
A: Answer John Neumann attended ETH Zurich and Eotvos Lorand University
Q: C programming In this task you are required implement a function that counts the number of alpha...
A: #include <stdio.h>//method that count the number of alphabetic characters in a string//then re...
Q: What is the definition of a gaming laptop computer?
A: Introduction: A gaming laptop is a tiny and portable personal computer with an integrated display. A...
Q: The following terms are synonymous: O a. Block and line
A: Q1)The following terms are synonymous: Answer: Option 4 -Row and block Direct mapped cache has each...
Q: I need the code in 32 bits Assembly language please: Assign the symbol SetupESI to the following li...
A: Before giving answer let's see about Assembly Language. Assembly language and what is 32 bit codding...
Q: Modify the program from Project 4 to compute the area of a triangle. Issue the appropriate prompts ...
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner scan = ne...
Q: Using the NSDB approach, analyze how the idea for tablets(device) came about.
A: Electronics on Tablets: Touchscreens and their associated versions of personalized operating systems...
Q: You are a manager of a restaurant and have observed that customers in the restaurant. What is the av...
A: given - You are a manager of a restaurant and have observed that on average 36 customers per hour ar...
Q: Act One has become a multi-faceted business. Which of the services does Act One NOT offer? Headhunti...
A: Problem: which of the services does act one not offer. See below steps for answer and explanation: S...
Q: How does entity who performs iterative query knows which IP address to send first query? If you run...
A: Task : Write about the working of the iterative query. Write about the Trace working.
Q: Determine whether 01 ∈ L. (b) Determine whether 0101 ∈ L.
A: A regular language is a set of symbols and alphabets. It is used to denote which strings can be deri...
Q: Problem 2 String Generator Write a Python generator that yields all possible strings formed by using...
A: def string_generator(s): a = sorted(s) n = len(a) - 1 while True: yield ''.join(a) ...
Q: COCOMO II is a more comprehensive and complete cost model that evolved from earlier versions of COCO...
A: The answer is
Q: What is the definition of storage architecture?
A: Storage Architecture is an important to an organization.
Q: (Java) Question 1 Explain the answer step-by-step and include verbal explanation. Thank you! ...
A: Interface and abstract class are important features of object oriented programming but they differ i...
Q: plz answer : You are a data scientist who works in an online retail company. The core business ...
A: The answer is given below:-
Q: How can you determine which model is the best if there are several alternative classification models...
A: Choosing the correct machine learning model is one of the most difficult aspects of the process. We...
Q: consider an application to support buying and selling vintage musical instruments. Create a CRC card...
A: DESCRIPTION: Relational Database Design: Customer(SSN, Title,First_Name,Middle_Name, Last_Name, Ad...
Q: Which of these is the largest unit of measurement for data storage capacity?
A: INTRODUCTION: There are several data storage units, and each larger unit includes a certain number o...
Q: Given a graph with 14 edges. What is the missing value 'k' in the following degree sequence, 1, 2, 3...
A: Given The answer is given below.
Q: Using EMBOSS make the global and local alignment of the sequences P29600 and P41363 and indicate for...
A: Question 1. Using EMBOSS make the global and local alignment of the sequences P29600 and P41363 and ...
Q: 3. [10] What function is implemented in the circuit below (provide answer in SOP form using only AND...
A: Here is the Three AND gates total six NOT gates combinational circuit with the input values w,y,z,x
Q: What is the best way to determine which motherboard you have?
A: The question is on find out the best way to determine motherboard.
Q: what is a | b form
A: what is a | b form Ans:- Form that contain a subform (one -to- many form )
Q: Monitor is a concurrency technique. Is it generally software, hardware, or firmware, or none of the ...
A: An computer monitor is a display device that displays information on a computer. The computer monito...
Q: Q2. Write a program to get the marks in 5 subjects. Calculate the total and grade. Display name, tot...
A: Assuming each subject total marks = 100 Algorithm: Start Read student name Read marks of 5 subjects...
Q: is the difference in writing Operator expression in Pascal and C language? I also want the answe...
A: Task : Write down the difference between operation expression in Pascal and C language. Also, write...
Q: What is Enumerated Integer providing an example to illustrate your point?
A: Enumerated integer is data type that can only hold a finite number of distinct values. The values ar...
Q: Compact Minterm form t Compact Maxterm form.
A: The question is to find the compact midterm and maxterm form for the given truth table.
Q: rmation, hardware are becoming so sophisticated that they are able to process data instantaneously o...
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: From where does the following command get its input? tr 'a-z' 'A-Z' |tee file1 >file2 files a-z and ...
A: Tee command is named because of T splitter used in plumbing. Syntax:- Tee [option] [file]
Q: Is a monochrome printer able to produce colour?
A: Introduction: Many people are perplexed by the term "mono," but it simply implies that a printer pro...
Q: How are Dropbox and Microsoft's One Drive different?
A: Introduction: Dropbox works by allowing you to upload and save your files so that they may be kept o...
Q: What is the difference between cloud storage and local file storage?
A: Cloud storage is the technique of storing digital data in a multi-server, multi-location internet en...
Q: In each of the following code snippets, data is copied from x to y. How many bytes of data are copie...
A: SUMMARY: -Hence, we discussed all the points.
Q: Why does the speaker router not share this
A: Q)why does the speaker router not share this routing information with neighbor ASs? How does the I-B...
Q: Share with the class which operating systems you have installed and name any challenges you encounte...
A: Given :- Share with the class which operating systems you have installed and name any challenges you...
C++ way of coding this.
Step by step
Solved in 5 steps with 2 images
- Problem: Write a Python code that prints a triangle of triangles using the "A" symbol, given height H. Assume that the input value is always positive. Use either loops or iterations. Šample Input: Sample Output: 1 A A ΔΔ 2 A A A ΔΔΔΔΔΔΔΔΔ Δ AAA AAAAA A A A AAA AAA AAA AAAAAAAAAAAAAA A A A A A AAA AAA AAA AAA AAA AAAAAAAAA AAAAAARead floating-point numbers from input until a floating-point number is read that is not in the range -45.0 to 15.0, both exclusive. For each floating-point number read that is in the given range, output the floating-point number followed by " is accepted". Then, output the floating-point number read that causes the reading to stop followed by " is rejected". End each output with a newline. Ex: If the input is -41.6 -37.8 -35.5 -38.4 -42.3 -49.5 -36.9 -41.1, then the output is: -41.6 is accepted -37.8 is accepted -35.5 is accepted -38.4 is accepted -42.3 is accepted -49.5 is rejected 1 #include 2 using namespace std; 3 4 int main() { 5 167899 10} double dataValue; /* Your code goes here */ return 0;Question 2. Write a Program to replace all 0’s with 1 in a given integer. Given an integer as an input, all the 0’s in the number has to be replaced with 1. For example, consider the following number Input: 102405Output: 112415 Input: 56004Output: 56114 DM your S.
- Write a program in python that determines the hamming distance of two DNA strands. Your program should do the following: 1. prompt the user for 2 DNA strands 2. Making use of problem 4, check if the strands are valid. If the inputted strands are of different lengths, this is considered invalid input. If one or both of the strands are invalid, the program ends. 3. Iterate over the two DNA strands and sum the number of differences. 4. Output the hamming distance Example: Enter a DNA strand: AATG Enter a second DNA strand: AATC The hamming distance of AATG and AATC is 1 Enter a DNA strand: AATG Enter a second DNA strand: T Invalid input Enter a DNA strand: ABC Enter a second DNA strand: AATG Invalid input Enter a DNA strand: AATG Enter a second DNA strand: TTAC The hamming distance of AATG and TTAC is 4 Note: the hamming distance is the number of differences / differing characters in two strings. Examples: ● ‘AATG’ and ‘AATC’ have a hamming distance of 1 because only the last…Write a program that reads from the user a character (‘s’ or ‘a’). ∙ If the character is ‘s’, the program reads 4 numbers from keyboard and then finds their sum. ∙ If the character is ‘a’, the program reads 4 numbers from keyboard and then finds their average. ∙ Otherwise, it prints “Wrong character” Sample Run: Sample Run1: Enter a character (s or a): s Input 4 numbers: 10.5 12 31 44 The sum of these 4 numbers is: 97.5 Sample Run2: Enter a character (s or a): a Input 4 numbers: 10 12 31 44 The average of these 4 numbers is: 24.375 Sample Run3: Enter a character (s or a): d Wrong characterQuestion 1: Write a python program that takes two numbers (Integer) as inputs from the user. Consider the 1st number to be the total number of rows and the 2nd number to be the total number of columns of a rectangle. [For this question, you can assume the second input is always greater than the first input. So, no checking is needed for ensuring this condition.] Finally, print a rectangle as shown in the output. Sample Input 1: 3 6. Sample Output 1: 1===== 12==== 123=== Explanation 01: 3 is the total number of rows and 6 is the total number of columns. For each row, numbers starting from 1 to that row number are printed and the rest of the columns are filled by equal (=) to sign. Sample Input 2: 6 7 Sample Output 2:
- The pseudocode for implementing the Taylor series expansion is shown below. The pseudocode is designed to return the value of the value of e* correct to two decimal places. This also requires the use of the factorial function created in the previous section. INPUT x, OUTPUT ExpVal % Initial computation n- 0, xold - 0 xnew - xold + (x^n)/nl error = |xnew - xold| xold = xnew n-1 %Successive computations WHILE error 2 0.001 xnew - xold + (x^n)/nl error |xnew - xold xold - xnew n=n+1 END WHILE ExpVal = xnew Question 10: Write a script taylor.m that computes the value of the function e* for a given user input x. Provide La proof that your script works.Design and write a Python program that gives and grades a math quiz. The quiz will give 2 problems for each of the arithmetic operations: +, -, *, /, and %. First, two addition problems will be presented (one at a time) with random numbers between 1 and 20. Then two subtraction problems, multiplication, division and modulus. For division use // and do floor division; for example: for 10//3, the answer should be 3. For an example of the first problem: the program generates two random numbers (let's say num1 is 17 and num2 is 5), and prints out a statement of the problem as 17 + 5 =. The user will enter a correct answer or a wrong answer. If the answer is correct, a message will be printed and one will be added to the number of correct answers. Then the second addition problem is given and checked. Next, two subtraction problems will be given and checked, and so on. At the end of 10 problems, a final score is printed out. The user is asked if they want to take another quiz.In Python, Given the following house square feet: 250, 500, 1000, 2000, 3000, 4000 and the following house prices: 50, 000, 100, 000, 200, 000, 400, 000, 600, 000, 800, 000. Create noise derived from a standard normal (Gaussian) distribution function (i.e., one with 0 mean and 1 standard deviation). Multi- ply the noise derived by 30, 000 and then add it to the dependent variable. Use Ordinary Least Squares to find the regression line parameters
- Write a python program from the question that lets the user enters the:• initial height from which the ball is dropped• the bounciness index• the number of times the ball is allowed to continue bouncing• Output should be the total distance travelled by the ball. The program should work and display correct outputs. Example is included below the questionWrite a TOY machine language program which calculates x3 by using repeated addition, where x is input by the user. This program has to work for positive integers only, and you can assume that is what will be entered as input. The flow of action must loop within the code. Your program should output the running total while it calculates it to Stdout.C PROGRAM 1. Input four float numbers; they could be positive or negative2. Only add all inputted negative numbers, and print its sum sample outputEnter the first number: -30.22Enter the second number: 10.5Enter the third number: -2.2Enter the fourth number: -1.8Sum of all negatives: -34.22