10. (Program) A geometric series is defined by the following: a + ar + ar² + ar3 + ar* - 1 a is the first term. ris the "common ratio." n is the number of terms in the series. Using this information, write a C++ program that uses a while loop to display each term and determine the sum of a geometric series having a = 1, r = .5, and n = 10. Make sure your pro- gram displays the value it has calculated.
Q: Advanced Physics Create individual MATLAB calculator for : Binomial Distribution Poisson Distributio...
A: According to the information given:- We have to create individual MATLAB calculator for Binomial , P...
Q: Computer Science Please code in MatLab
A: Introduction Please code in MatLab
Q: Fill in the blanks • The main components of loT network are • The sensor collects the In the and dat...
A:
Q: What are the risks of putting in an always-on security system?
A: Introduction: Mobile malware is malicious software that has been built specifically for use on mobil...
Q: A bifunctor is similar to a functor except that it maps two possible types. Define a Bifunctor insta...
A: class Bifunctor f where bimap :: (a -> c) -> (b -> d) -> f a b -> f c d
Q: What is a firewall's principal purpose? What are the general guidelines for using packet filtering?
A: 1)A firewall defines a single choke point that keeps unauthorized users out of the protected network...
Q: Peter finally fixed the DHCP server. He would like to test the connectivity to some websites. He wou...
A: To send the ICMP echo request to any host machine we need it's IP address if it's in the same networ...
Q: (Chapter 4 b) Given the following information: Job Arrival Time CPU Cycle A 15 B 2 C 3 14 D 10 E 9. ...
A: For the SJF algorithm the shortest job is done first but for no premtive when cpu is assigned to any...
Q: Define the term system. Give an example of an IT system and list its boundary, environment, inputs, ...
A:
Q: Given the classical sets A = {9,5,6,8,10}, B = {1,2,3,4,7,9} and C = {1,0}, define on universe X = {...
A: According to answering policy we can answer only 1st question. For remaining questions you can resub...
Q: Write a C++ program to estimate the area enclosed by the ellipse 16x^2 + 25y^2 = 81 using the Monte ...
A: ellipse 16x^2 + 25y^2 = 81
Q: lity to all compute
A: The single greatest hazard to all computer systems and networks is malware and social engineering at...
Q: Explain briefly with the aid of examples the uses and importance of the following technologies i.Ar...
A:
Q: create tauth table and k-map. F(xソ」)=XYナZ.
A:
Q: How is data analytics different from statistics? Analytics tools fall into 3 categories:descriptive...
A: Data analysis not only increases the efficiency but it aids in new business scope. The growth and pr...
Q: Let L = {w|w E {0, 1} and w does not contain 011 as a substring}.
A: A) S-> 1S I 0S I € The production must be in form of X->a or X-> aY Here a is termina...
Q: n=0; for del = 0.0:0.4 : pi n=n+1; pe(n)=1.2*sin(del); end disp(pe);
A: Here a Matlab code is given. In the question, the output of the Matlab question is asked. The code s...
Q: What is the minimum number of characters in an ICD-11 code?
A: What is the minimum number of characters in an ICD-11 code
Q: KMP -- What are tables next and fail for the pattern ABCABDABB. Show how the answer is derived.
A: Given pattern is ABCABDABB Rules:Prefix: For a string, all substrings from first character to non ...
Q: help me with this!! i need the output to be the same on what's on the photo here's my editable sour...
A:
Q: Question1: define two lists of numbers (arrays) and ask the user to give the size of each, and then ...
A: First check whether the lengths are same or not Then every element in both the arrays and check whet...
Q: Write a code on the false position method , the program should check if the interval enclose at leas...
A: Task : Write the python code to find the root of the equation using the false position method.
Q: In the instance of Intentional Computer Damage, what security holes are employed, and how may these ...
A: Introduction: Any decrease in the legitimacy or accessibility of knowledge is defined as damage. Dam...
Q: Which of the following are incorrect statements to create a Lock? O a Lock lock new ReentrantLock(tr...
A:
Q: Most common media player VLC stands for video client.
A: answer is
Q: can someone explain the logic for this code and why the output is what it is the outputs are for th...
A: The for loop is iterating for the values from I=1 to 6 If I%2 is 1 we enter if block otherwise we en...
Q: How do SQL server 2000 and XML linked? Can XML be used to access data? FOR XML (ROW, AUTO, EXPLICIT)
A: Let us see the answer:- INTRODUCTION SQL Server 2000 comes with numerous critical features that enab...
Q: Assume there are two SS CPUS in your system. To execute these two threads, how many cycles will it t...
A: Introduction: A thread's life cycle is comprised of many phases. For instance, a line is born, begin...
Q: CPSC 131: Introduction to Computer Programming II Program 3: Inheritance and Interface
A: Ans: Program for inheritance: class Animal{ void eat(){System.out.println("eating...");} } cla...
Q: rns related to the digital divide and how are these being resolved? What are your thoughts on the di...
A: DIGITAL DIVIDE The digital divide is the difference in access to modern information and communicati...
Q: List the different components of a computer system. You may also include list of the technical speci...
A: Let's see the solution in the next steps
Q: Task -5: Write a program in c that the parent process will create one child process and 3 grandchild...
A: Write a program in c that the parent process will create one child process and 3 grandchild processe...
Q: What is the objective of Access Security Software?
A: Introduction: In order to avoid insecurity, the Principle of Least Privilege urges system designers ...
Q: Examine the pros and disadvantages of enterprise-based systems in terms of maximising the use of inf...
A: Introduction: Abbreviation: ICT stands for Information and Communications Technology. People, busine...
Q: Twisted pair cable (Ethernet) has how many pairs of wires? What is the name of the port on a compute...
A: Actually, computer is a electronic device which takes input and gives output.
Q: Threads take more time for context switching Select one: True False
A: Thread: It is a segment or part of a process that executes some tasks of the process. Each thread h...
Q: Java Write a Java to Implement Prim's and DIJKSTRA's algorithm for Single Source Shortest Path Probl...
A: Dijkstra's approach for least spanning tree is quite similar to Prim's algorithm. We create an SPT (...
Q: How can I create a Turing machine with ones and zeros, which finds out if an integer n, represented ...
A:
Q: What are the benefits of putting several subsystems and logical divisions on one computer?
A: Introduction: Here we are required to explain what are the benefits of putting several subsystems an...
Q: What do you understand by the deadlock? What do you understand by deadlock detection and recovery?
A: Deadlock:- A Deadlock is what is happening where a bunch of cycles is in hanging tight for state or ...
Q: Provide an explanation for the function of some of the components in a computer's internal memory.
A: Introduction: Internal memory is used at a start-up to store the system's data and run different typ...
Q: Write a program named "sort.c" where you will give some number from the command line argument and th...
A: #include <stdio.h> int main() { //Initialize array int arr[] = {5, 2, 8,...
Q: BY MATLAB Q5: let A=[1,2,3; 4,5,6; 7,8,9] find: a) The sum of A b) The sum of the third row of A c) ...
A:
Q: Discuss with aid of diagrams the purpose of the following devices in data communications. i)Hub ii) ...
A: answer is
Q: if this is a given array {1,2,3,4}, display it like this {4,3,2,1} , using java please
A: Given :- if this is a given array {1,2,3,4}, display it like this {4,3,2,1} , using java please
Q: What exactly is internal documentation?
A: Solution: Computer software has an internal documentation. Internal documentation is nothing but s...
Q: Which of the following clauses are Horn Clauses? Select one or more: a. (¬B1 v ¬B2 ... v ¬Bn v C) O ...
A: Horn clause is clause with at most one positive, that is un negated, literal. A clause with at most ...
Q: What exactly is an argument?
A: Given: What is an argument, exactly?
Q: Describe the actions you used to delete a node with two children.
A: Introduction: Describe the actions you used to delete a node with two children.
Q: Explain how the convergence of computing, telecommunications, and media has resulted in the birth an...
A: Technological Disruption A disruptive technology is one that supplants an existing technology and fu...
Need help, has to be done with <stdio.h> and <math.h>
Step by step
Solved in 2 steps with 1 images
- PART 2 (Lab) a. Write a C+ program that asks the user to enter N, the program should then output the Fibonacci series. Use do-while loop to ask user to re-enter N if the user entered a number below 2. Hint: The first two numbers in the Fibonacci series are 0 and 1. F, = 0 F, = 1 Any Fibonacci number is equal to the summation of the two previous numbers Fn = Fn-1+ Fn-2 Therefore, F, + F, = 1+ 0 = 1 F, + F, = 1+1= 2 F4 = F3 + F2 = 2 +1 = 3 F2 .... FN = FN-1 + FN-2 Enter N: 20 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 b. Write a program that use loops to print the following patterns separately, one below the other. In your code use for, while and do-while loops to generate the patterns, use one loop for each question. * ********* ** ******* *** ***** **** *** ***** *-Program C 3. Negative Allergy by CodeChum Admin Whole numbers are great, but I think we should also pay attention to decimal numbers, too. So, how about we make a program that involves a lot of decimals? Instructions: Continuously ask for floating point values (decimal numbers) using the do…while() loop, sum them all up, and store the total into one variable. The loop shall only terminate for the following reasons: A negative decimal number is inputted (but still included in the total sum) The total sum reaches 100.0 or more Input 1. A series of float numbers Output The first multiple lines containing message prompts for float numbers. The last line contains the sum with 2 decimal places. Enter·a·number:·1.1 Enter·a·number:·1.2 Enter·a·number:·1.3 Enter·a·number:·1.4 Enter·a·number:·-1.0 Sum·=·4.00(C PROGRAMMING ONLY) 6. Deal or No Deal?by CodeChum Admin When I was a kid, I used to watch this TV game show, Deal or No Deal? In the game, there are different brief cases, each labeled with a number. Inside each brief case is an amount in Pesos and the goal is to guess which briefcase contains the smallest amount. In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in the array smaller than the inputted integer. Instructions: In the code editor, you are provided with an array with 100 elements.Your task is to ask the user for an integer input and then print all the elements in the array whose value is lesser than the inputted integer.Input 1. Inputted integer Output Enter value: 6132450351503022244
- Huffman Code [Problem Description] For an English article, the frequency of occurrence of 26 lowercase letters is counted, and then they are encoded by Hoffman code. [Basic Requirements] Read the original text file from the file and display the text on the screen.. Output the number of occurrences of 26 English lowercase letters, and the corresponding Hoffman code. please do the code in c++Instructions(C++) A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee’s weekly pay and the average salary of all employees. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees (Name) a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week (Hrs Worked), the hourly pay rate (Pay Rate), and the weekly pay (Salary). Your program must contain at least the following…(ouall La5) Word-[lll ] (1) COMP1411 final exam Sample 4exlya 11 1 12 113 14 cion B Short Answers: Each answer is worth 2 marks wer all the questions Write a C++ program to convert meters to miles. Recall that 1 mile 1.6 km. Write a C++ program to convert miles to kilometers. Recall that 1 mile = 1.6 km.
- do not submit this one) Write a C++ program that reads in a length in feet and inches and outputs the equivalent length in meters and centimeters. Use at least three functions: one for input, one or more for calculating, and one for output. Include a loop that lets the user repeat this computation for new input values until the user says he or she wants to end the program. There are 0.3048 meters in a foot, 100 centimeters in a meter, and 12 inches in a foot. (do not submit this one) Write a C++ program like that of the previous exercise that converts from meters and centimeters into feet and inches. Use functions for the subtasks. (submit this one) Write a C++ program that combines the functions in the previous two Practice Programs. The program asks the user if he or she wants to convert from feet and inches to meters and centimeters or from meters and centimeters to feet and inches. The program then inputs the values and performs the desired conversion. Have the user respond by…(CANNOT USE ARRAY AND ONLY CAN USE WHILE LOOPS) Write a C++ program that asks the user to enter a positive integer n and then that reads nuser input integers and finally prints the message The numbers you entered are in increasing order if they are in increasing order or the message The numbers you entered are NOT in increasing order if they are not. See the remark below.Remark:- Remember given the numbers a1, a2, a3, ..., an; we say they are in increasing order if a1 ≤ a2 ≤ a3 ≤ .... ≤ an. Moreover remember that if you have only one number from the user input then the number automatically is in increasing order.(a) Write a C++ program to print all prime numbers within a given range (e.g., 1 to 100) by using afor loop and print all the possible prime numbers in the given range. Then print the total numberof primes. Third sum all the primes numbers within that given range. Use only for loop and print the output. Example output:Find prime number within a range:--------------------------------------Input number for starting range: 10Input number for ending range: 100The prime numbers between 10 and 100 are:11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97The total number of prime numbers between 10 to 100 is: 21The sum of all the prime numbers is = 1043
- Problem 1: (10 points) The Shouting Parrot! Write a simple parroting program that echos what the user types until they enter the word "hush". Start with the simple echo/parrot program from Unit 4. For your program, the parrot SHOUTS back. No matter what the input case is, the program output will be in uppercase. The string "hush" should exit the indefinite loop regardless of how it is capitalized. Below is an example of how your parrot program should work for a simple test case. It will prompt the user with a '>' and echo the capitalized user input. Program output is in blue and user input is in black. >This is NOT a dead parrot! THIS IS NOTA DEAD PARROT! >Crackers anyone? CRACKERS ANYONE? >hush Save and submit your completed program to Gradescope as parrot.pyQ) Write a program in C++ that takes a number n from User.This program computes the sum of reciprocals of numbers up to n using a loop. S = 1 + 1/2 + 1/3 + 1/3 + ... + 1/n and shows the value of S on screenNote: to Calculate S you can use while loop, do...while loop or for loop.-Program C 2. Not my Favorites by CodeChum Admin We've already done looping through a series of numbers and printing out its squares, so how about we level it up and go with cubes this time? I have a condition though; I don't want to be associated with numbers that are divisible by 3 or 5 so if an integer is divisible by either of the two, don't make their cube values appear on the screen, please. Care to fulfill my request? Instructions: Print out the cube values of the numbers ranging from 1 to 1000 (inclusive). However, if the number is divisible by either 3 or 5, do not include them in printing and proceed with the next numbers. Tip: When skipping through special values, make use of the keyword continue and put them inside a conditional statement. Output Multiple lines containing an integer. 1 8 64 343 512 . . .