10. (Program) A geometric series is defined by the following: a + ar + ar² + ar³ + ar" - 1 a is the first term. r is 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: The new Chief Executive Officer (CEO) of a large company has announced a partnership with a vendor t...
A: The process of establishing an index of approved software applications or executable files that are ...
Q: how to sort with bubble sort a list of words in text file using linked list and data structures?
A: The answer is given below.
Q: ead the text from the file and put it into parallel arrays in c++ For example lest assume fo
A: To be able to work with the file, fstream, and vector header files are used. Every word of the file ...
Q: To qualify for some reimbursements, clinicians must now maintain patient data in databases accessibl...
A: Introduction: If a physician wishes to be eligible for certain payments, the government mandates tha...
Q: a) What is Cyclic Redundancy Check (CRC) and how it works? b) Generate hamming code for the message ...
A: I have answered this question in step 2.
Q: Define the term "supercomputer."
A: i have provided this answer with full description in step-2.
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: implement the tan function in java from scratch without using any math library
A: I have answered this question in step 2.
Q: Given the key deliverables of the HYU Project, what approach would you take to create the WBS for th...
A: Answer:- First and foremost, as the project manager, it is critical to understand the key features...
Q: Write a direct and indirect recursive method for validating input data for the triangle program. The...
A: The equations given for the triangle are:- float s = (sA + sB + sC) / 2; float per = (sA + sB + sC)...
Q: Consider the following statement: "The entire pages of a process never need to load into physical me...
A: The concept of breaking a process into multiple parts is known as paging.
Q: Show all item num from the item table, and a matching quoted price from the order line table (show b...
A: I have Provided this answer with full description in step-2.
Q: 1 a . Create a class named Pizza. Data fields include String for toppings (such as “pepperoni”), an ...
A: Actually, Java is a high level programming language. And also object oriented .It Is a platform fo...
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: Notation Evaluation using Stack Prefix: // * 2 - 74 + + 615 3 • Postfix: 2 74 – * 6 1 + 5 + /3/ -
A: Answer the above questions are as follows:
Q: it in Figure 4.60 if there is no forwarding? Explain why each signal is required using this instruct...
A: given - What new inputs and output signals do we need for the hazard detection unit in Figure 4.60 i...
Q: Give an example
A: Introduction: Since there are N blocks in the set, each memory address still has a particular group ...
Q: Write a program called Guests.java that prompts a user to enter how many guests he will host. Next, ...
A: Step-1: StartStep-2: Print message "Enter the number of Guests on the List:"Step-3: Declare an integ...
Q: Mention the deployment model of big data
A: The big data is larger, more complex data sets, especially from new data sources.
Q: Create a formal definition of hardware.
A: Introduction: Computer hardware refers to the essential components that enable a computer system to ...
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: Explain how the size of the organization and the size of the program are factors that influence soft...
A: let us see the answer:- Introduction:- The art and discipline of organising and supervising software...
Q: Instructions: 1. Your task is to ask the user for a character input. 2. Then, include the ctype.h bu...
A: In this C program question, We have to write a program for converting a lowercase to a uppercase usi...
Q: When an optimistic approach to concurrency control is applied, it is common for transactions to take...
A: NOTE :- Below i explain the answer in my own words by which you understand that it well.
Q: Define the rule echo(LST0, LST1). This rule describes LST1, which holds all the same elements as LST...
A: - PROLOG is an acronym of Programming in Logic. Prolog programming is a sequence of rules and facts....
Q: How are centralized and parallel/distributed databases different?
A: Difference between centralized database and distributed database: 1. In centralized database the dat...
Q: Explain the process and conditions for "Simplify" Guiding Principle with two good examples.
A: Guiding Principle:- Core values are regularly found in the organization's depictions. They are also ...
Q: To utilise computers at college, do you need to develop a set of remote access policies?
A: Introduction: A document that discusses and specifies permitted ways of remotely connecting to the i...
Q: Define the term system. Give an example of an IT system and list its boundary, environment, inputs, ...
A:
Q: Write down two real-life scenarios for each of the following devices. Honeypot NIDS HIDS Biometri...
A: Introduction: Because there are so many people connected to the global network, new attack tactics a...
Q: Explain how to use the DiskPart programme.
A: INTRODUCTION: DiskPart: DiskPart is a command-line-based disc partitioning utility. It is the succe...
Q: Course: Linux Operating System in Security To be correct the command must work on a Kali Linux 2021...
A: Linux operating system having the command of sudo command. The sudo command allows to run programs ...
Q: conhection timed out; no servers la bè Pea @arya:~$ DNS cache poisoning has happem Your workstation ...
A: Lets see the solution.
Q: 1. Resolve Ip address and route table: 192.168.22.30 /25 2. What is the difference b/w NAT and PAT 3...
A: "Since you have asked multiple questions I am solving the first 2 for you if you want an answer for ...
Q: In the context of SoS interface design, how advantageous is a unified user interface (UX)? The cost-...
A: Introduction: In a more extensive, more complicated system, systems of systems (SOS) is the perspect...
Q: Define the concept of memory.
A: Introduction: Memory is the capacity for information to be ingested, encoded, stored, and retrieved ...
Q: Mention any four widely used networking software programs that you are familiar with. When it comes ...
A: Introduction: Any programme that interacts with, enhances, or promotes the functionality of a comput...
Q: Design the circuit with a decoder and external gates.
A:
Q: Explain how the facts, dimensions, and characteristics are used in the star schema to make it more e...
A: Star schema is the major schema among the data store schema and it is least difficult. This schema i...
Q: For CFG G3 = ({ S}, Eo1, R, S), where R = %3D %3D S - e| OS1S | 1S0S Convert Gs to a(PDA) All the st...
A: The steps to convert CFG to PDA: Remove the unit production. Change the CFG to GNF. No find the PDA...
Q: Q2. Write a C program to find the result of the following series by using power function. The progra...
A: You haven't done anything wrong. Your answers match the correct answers of the given sum. The answer...
Q: Create a function that reverses an array This challenge is particularly helpful if you're planning t...
A: Introduction: A collection of things stored in contiguous memory spaces is referred to as an array. ...
Q: Find a context-free grammar for the set of all regular expressions on Σ={1,0}
A:
Q: a storage technology available since the 1950s, is often used to back up critical organizational dat...
A: Magnetic Tape: It is a storage type which is implemented based on the magnetic storage technique. It...
Q: Expalin with an illustration What is the necessity for software engineering? Given its significance ...
A: Introduction: Software Engineering is the study and practice of engineering for the purpose of devel...
Q: What is a firewall's principal purpose? What are the general guidelines for using packet filtering?
A: Firewall Principle Purpose: => It protects against unauthorized access. => It's similar t...
Q: The three main settings in which concurrency might occur, as well as examples of each, should be des...
A: Introduction: Concurrency is the process of executing several instructions at the same time. It is a...
Q: How would you address the potential for misleading sharing?
A: Introduction: In frameworks with suitable, lucid stores at the size of the smallest asset block cont...
Q: Activities: I. Write the proper method declaration/ method call for the following (Java Programming)...
A: Answers: 1. public static void CS(){ // statement } 2. CS(); 3. public static int IT(){//statement r...
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,...
problem is on the image
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 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.
- (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 = 1043do 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.
- 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.Language: C++ (Apartment problem) A real estate office handles , say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: The total number of units. The rent to occupy all the units. The increase in rent that results in a vacant unit. Amount to maintain rented unit. The program then outputs the number of units to be rented to maximize the profit. Note: Please include the pseudocode