QUESTIONS 1. What islare the variable/s needed to produce local variable/s? 2. Using Parameter and return structure, what inputs stored in output? 3. What islare the variable/s needed to produce global variable/s? 4. What did you observe in function header and prototypes? 5. What is the important of return in function?
Q: urite apragramt print the figure 2. By using C++ 2.
A: The program is written in C++. Check the program screenshot for the correct indentation. Please…
Q: Make a list of six different types of access. Each one should be classified as either a residential…
A: Dial-up modem: 56kbps maximum transfer rate. Transmission speeds of more than 1 Mbps are…
Q: What are three particular activities that an organization can take to overcome consumer distrust?
A: Through communication, dedication, and expertise, these behaviours foster trust. Demonstrate that…
Q: What is the best way to discuss the features of a monitor?
A: The following is a list of various monitor characteristics: a) Size: It's one of the monitor's most…
Q: cyber security dangers that you will be anticipating and planning for when you design a complete…
A: Introduction Cybersecurity danger refers to the likelihood of your company being exposed to or…
Q: As seen in this Pascal's Triangle: 1 1 1 1 1 1 3 3 1 1 4 6. 4 1 Each row begins and ends with 1.…
A: Program is given below: import java.io.*; class PascleTriangle { public int factorial(int i) {…
Q: An droid is now the masi popular mabila epro ting System based on linua Exploin 1he tunchion ality…
A: Please find the detailed answer in the following steps
Q: What is a hybrid language, and how does it differ from other languages?
A: Language Hybrid: A hybrid language is a computer language that supports many techniques for program…
Q: h better at data management than Microsoft Excel? Correct answer
A: Microsoft access: Microsoft Access is a database management system (DBMS) from Microsoft that…
Q: The ARM and core i3 architectures are very different.
A: Introduction: The type of instruction that each device understands is the primary distinction…
Q: Task - 6 Given the following class, write the code for the Sphere and the Cylinder class so that the…
A: Here I have created the child classes named Sphere and Cylinder. In these classes, I have defined…
Q: What is the dependent variable in the Artificial intelligence study
A: We need to discuss what is the dependent variable in the Artificial intelligence study.
Q: What are the most common loT device deployment integration challenges? How would you describe the…
A: Introduction: Challenges1) Compatibility and interoperability of various IoT systems:According to…
Q: t process model did you choose if we have only two developers and the deadline is only six
A: Lets see the solution.
Q: Discuss how Disney World has utilized MagicBands as a component of an enterprise system to maximize…
A: Disney World has utilized MagicBands as a component of an enterprise system to maximize the usage of…
Q: Explain the following program segment: if (x>10) if (y>5) sum1=x+y; else sum2=x-y; sum3=x*y;
A: Introduction: This program basically checks few If conditions and accordingly calculate the Sum,…
Q: What exactly is a magnetic disk?
A: Disk Magnetism: A magnetic disc is a storage device that uses a magnetization process to write,…
Q: What is a system change-over and how does it work?
A: Start: System changeover is concerned with the seamless transition from one method of doing things…
Q: Recognize the difference between distributed and centralised architectural patterns. Critically…
A: Intro Distributed architectural patterns work on a single logical data network, which is being…
Q: Problem 5: A bi-directional associative memory has the following paired bipolar patterns & = (1, -1,…
A: Bi directional associative memory is a learning algorithm. Y=W. X given input vectors X and output…
Q: What are three particular activities that an organization can take to overcome consumer distrust?
A: Consumer distrust: Customer trust is a consumer's belief in a firm. It demonstrates trust in a…
Q: What is the difference between hashing passwords stored in a file and saving them in a password…
A: Introduction: We are requested in this question to explain the possible differences between hashing…
Q: Q4: Evaluate the following postfix expression using stack. a) 6,9,3, /, ^, 12, /, 13, -, 2 ^
A: Here, we are going to evaluate given postfix expression using stack. In stack, we will push operands…
Q: What are three particular activities that an organization can take to overcome consumer distrust?
A: 1. Be available.Be accessible to your clients and permit them to cooperate with you. Clients…
Q: What is the significance of a table's main key? What is an appropriate example to use?
A: Introduction: Using the primary key, you may rapidly create and identify particular entries in a…
Q: What is the meaning of over-use of graphics? Provide an example thru illustration.
A: The answer is given in the below step
Q: The relationship between the sides (a,b) of a right triangle and the hypotenuse (h) is given by the…
A: 1) Below is C++ program that reads in the two sides of triangle and computes the hypotenuse In…
Q: Is there a distinction between criteria and requirements in the context of software testing?
A: Software Testing: Specific circumstances or ongoing activities that must be present before a…
Q: S- -Q O b. O c. PAQ None d.
A: Answer: The correct option is :
Q: What is the purpose of the operating system on a computer? Identify several activities that this…
A: Introduction: Malware is a kind of harmful software that cyber criminals use to corrupt computer…
Q: As a computer scientist, how would you define magnitude?
A: Definition The representation of a number's magnitude (decimal) in computer science is referred to…
Q: Task – 10 Implement the design of the CSE and EEE classes that are derived from the Department class…
A: Here I have created 2 child classes that extend the Department class. In these child classes, I…
Q: Which of the technologies you've listed can be used?
A: Introduction: Technology: Online education
Q: erence between char and va
A: Introduction CharIn SQL, char is a data type that may hold characters of a specific length. A data…
Q: What do you call a function that assigns a unique real number to each element in the sample space?…
A: The sample space associated with a random experiment is the set of all possible outcomes.
Q: What are the characteristics of real-time and non-real-time operating systems? What are the benefits…
A: Real-time and non-real-time operating systems have certain similarities. 1) Operating systems, both…
Q: hat is the difference between a top-down and a bottom formation security?
A: Lets see the solution.
Q: how to prevent the existential forgery attack
A: According to the information given:- We have to define the prevention of the existential forgery…
Q: What is the best way to code?
A: Best way to code: A computer programmer or coder's annual income in the United States is $48,381.…
Q: Q3. For the given set of data {9, 6, 3, 7, 13}, apply Bubble Sort algorithm and sort the numbers in…
A: 1) Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent…
Q: What is a datapath?
A: Answer :
Q: What is the difference between a top-down and a bottom-up strategy to information security?
A: 1) Information security refers to data security and is one component of a cybersecurity plan that…
Q: 4 7 1 2 sing the given graph, answer the following questions: a. Write the adjacency list of the…
A: a) Adjacency list: It is an array of lists where each index represents an vertex and the neighbours…
Q: a celebration within a group, each person handshakes some people. Using the Pigeonhole Principle,…
A: Lets see the solution.
Q: You are having two systems: one is a business system and another is IACS. Both are having same…
A: Answer :
Q: what apps and devices/gadgets are considered part of theIOT around you? How are you using it? How…
A: INTRODUCTION: Here we need to tell the apps and devices/gadgets are considered part of the IOT and…
Q: Question # 01: For the following Boolean Expression: f(x,X2X,Xa Xs) =…
A: The Karnaugh map is called as k-map and which is a pictorial method then it can be used to…
Q: Write a SQL query to add a column totalprice to a table product with a data type of numeric and a…
A:
Q: In Java, this is how you'll read an MS Excel file. Is it possible to read an MS Excel file in Java?
A: In Java, read an MS Excel file: Because of the cells in an excel file, reading it in Java is not the…
Q: An attacker's efforts to assure the success of a sniffer attack must include the following steps.…
A: Wireless and wired sniffing are a little different, each with its own difficulties or…
C++ LANGUAGE (FUNCTION)
Step by step
Solved in 2 steps
- Exercise No.2 Juan wanted to create a program that would use block of code (function) to group the student grades. In each block, it consists of each prelim, midterm and final grade that will require inputtinga student name, course, student grade in quiz, seatwork, laboratory exercises, assignment and exam. The formula below shows the following computation: Prelim Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Prelim Exam * 50% Midterm Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Midterm Exam * 50% Total Midterm Grade = 1/3 Prelim Grade + 2/3 Midterm Grade Final Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Final Exam * 50% Total Final Grade = 1/3 Midterm Grade + 2/3 Final Grade Sample screen layout: Student Name : Juan dela Cruz Course : BS CpE Grades Quiz : Seatwork : Lab. Exercises :…Write a function which will take 2 arguments. They are: • Sentence • position Your first task is to take these arguments as user input and pass these values to the function parameters. Your second task is to implement the function and remove the characters at the index number which is divisible by the position (Avoid the index number 0 as it will always be divisible by the position, so no need to remove the index 0 character). Finally, add the removed characters at the end of the new string. Return the value and then finally, print the new string at the function call. Input: "I love programming." 3 Function call: function_name("I love programming.", 3) Output: I lveprgrmmngo oai. Input: "Python is easy to learn. I love python." 6 Function call: function_name("Python is easy to learn. I love python.", 6) Output: Pythonis eay to earn.l lov pythn. sl eoWrite a function which will take 2 arguments. They are: Sentence position Your first task is to take these arguments as user input and pass these values to the function parameters. Your second task is to implement the function and remove the characters at the index number which is divisible by the position (Avoid the index number 0 as it will always be divisible by the position, so no need to remove the index 0 character). Finally, add the removed characters at the end of the new string. Return the value and then finally, print the new string at the function call. ===================================================== Input:"I love programming."3Function call:function_name("I love programming.", 3)Output:I lveprgrmmngo oai. ============================================== Input:"Python is easy to learn. I love python."6Function call:function_name("Python is easy to learn. I love python.", 6)Output:Pythonis eay to earn.I lov pythn. sl eo
- EXERCISE No. 2 Juan wanted to create a program that would use block of code (function) to group the student grades. In each block, it consists of each prelim, midterm and final grade that will required inputting a student name, course, student grade in quiz, seatwork, laboratory exercises, assignment and exam. The formula below show the following computation: Prelim Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Prelim Exam * 50% Midterm Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Midterm Exam * 50% Total Midterm Grade = 1/3 Prelim Grade + 2/3 Midterm Grade Final Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Final Exam 50% Total Final Grade = 1/3 Midterm Grade + 213 Final Gradein C++ program please: According to Wikipedia: “The International Collegiate Programming Contest, known as the ICPC, is an annual multi-tiered competitive programming competition among the universities of the world.” Moreover, the participants of the contest should be no older than 24. Complete the following function which takes as input two parameters: the current year and the birth year of a student. The function should return the age of the person given the parameters. int calculateAge(int current_year, int birth_year) {EXERCISE No. 2 Juan wanted to create a program that would use block of code (function) to group the student grades. In each block, it consists of each prelim, midterm and final grade that will required inputting a student name, course, student grade in quiz, seatwork, laboratory exercises, assignment and exam. The formula below show the following computation: Prelim Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Prelim Exam * 50% Midterm Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Midterm Exam * 50% Total Midterm Grade = 1/3 Prelim Grade + 2/3 Midterm Grade Final Grade = Quiz * 20% + Seatwork * 10% + Lab. Exercise * 20% + Final Exam *50% Total Final Grade = 1/3 Midterm Grade + 2/3 Final Grade Sample screen layout: Student Name: Juan dela Cruz Course: BS CpE Grades Quiz: Seatwork: Lab. Exercises : Assignment: Prelim Exam: Prelim Grade : __ Quiz: Seatwork: Lab. Exercises : Assignment: Midterm Exam: Total Midterm Grade: Quiz: Seatwork: Lab. Exercises :…
- You have to write a C++ program to input and store the data of 500 candidates who have applied at BIIT to get admission in BS program starting from spring 2021 semester. Program should store Name, phone no, address, and FSc Marks of every candidate (you should use array of structure to store this information). After getting input, sort the array on the basis of FSc marks in descending order. Then print the merit list i.e. print names of all the candidateCreate a function that takes a variable number of arguments, each argument representing the number of items in a group. The function should return the number of permutations (combinations) of choices you would have if you selected one item from each group. Examples combinations (2, 3) 6 → combinations (3, 7, 4) → 84 combinations (2, 3, 4, 5) → 120Language is C, please code according to parameters, answer as simply as possible, need ASAP. Thank you! Write two functions, total_product and total_sum. Both functions return an integer. Total_product function takes in a 2D array of integers along with an integer with the number of rows and columns. This function will return an integer with the product of the sum of the rows. See example for details. The total_sum function takes in an array of integers with the size of the array. The total_sum function will find the sum of the 1D array. You must call the total_sum function in the total_product to receive full credit. Example: row/column 0 1 2 3 total_sum(row) Result 0 1 2 3 4 10 1 5 6 7 8 26 Given this 2D array above, the answer for total_product would be 260. Because row one adds up to be 10, and row two adds up to be 26. We multiple this together to get total product.
- 1) This function returns the number of crashes that occurred between the two dates as aninteger. The start_date and end_date are given as string, in format "09/23/2021".You can use the Python’s datetime module if you want. WE call the function asT.total_number_of_crashes(start_date, end_date)1. Write a pseudocode function in terms of the ADT appointment book, described in Section 1.4.1 of course textbook, for each of the following tasks. Do you need to add operations to the ADT to perform these tasks? a. Change the purpose of the appointment at a given date and time. b Display all the appointments for a given date.Python onlyYour task is to write a function called analyse_macronutrients which takes three arguments in the following order: The grams of fat in a serving. The grams of carbohydrates in a serving. The grams of protein in a serving. The approximate number of calories per gram for each of the above macronutrients is found in the below table Macronutrient Calories per gram Fats 9 Carbohydrates 4 Proteins 4 To calculate the number of calories contributed by a particular macronutrient, you have to multiply its weight by its corresponding calories-per-gram value. After performing this calculation for each of the three macronutrients, your function should print the percentage of total calories contributed by each of the three macronutrients. add on to this: # Write your `analyse_macronutrients` function here. print('> Frozen pizza') analyse_macronutrients(18, 39, 8) print('> Big Mac') analyse_macronutrients(30, 45, 25) # Add another example