(Q3): search using any search engine (such as google, Bing) to find the research in (effects of air pollution on the human body) this research must have specific time (from 2005- 2014), and the file need to find in PDF format, and research contained these words (air, human lungs)?
Q: State whether the following are true or false. If the answer is false, explain why.b) Pointers of…
A: Given:- Pointers of different types may not be assigned to one another without a cast operation.
Q: State whether the following are true or false. If the answer is false, explain why.a) A pointer…
A: Answer: Explaination: Void pointer can be dereferenced, but only after type casting it, so if we are…
Q: State which of the following are true and which are false. If false, explain why.a) Function fscanf…
A: True.
Q: 1. Let A and B two matrices, write a Python3 function to calculate the subtraction of these two…
A: Find Your Code Below
Q: - Show the printout of the following code:
A: bool b = true;int i = b; cout << b << endl;cout << i << endl;
Q: 19. The product of two m x n matrices is defined.
A: Given: Determine whether the statement are TRUE or FALSE. Write TRUE if the Statement is True and…
Q: 10.25 LAB: Quadratic formula Implement the quadratic_formula() function. The function takes 3…
A: The above code is solved using Python Language below:
Q: When should you use an inline function?
A: Here we will discuss when we use an inline function
Q: 2. Write and test two functions, encode(text, key) and decode(code, key), that implement a…
A: #function that will encrypt the file contentdef encode (plainfilename, key): #declaring the…
Q: 2. What is wrong in the following code?
A: The above mentioned code doesn't executes because Explanation: In the above code there is a missing…
Q: Indicate which of the following two declarations are valid or invalid. If invalid, give reason. int…
A: - We need to filter the incorrect declaration among the provided two. First :- int primes = {2, 3,…
Q: State whether each of the following is true or false. If false, explain why h) All arguments…
A: The given problem is related to print function and the requirement is to identify that if the same…
Q: a. What is the output of the following code? And why?
A: The given is the java code that will produce the result based on inputs. To generate the output of…
Q: 23) Which of the following statements performs a boxing conversion?:
A: Answer in next Step
Q: 1- Choose the statement that does not apply to the following declaration: double [,]…
A: The answer to this question is establishes the maximum number of rows as 4
Q: 18 - What is the output of the following code?
A: The output of the following code is - Good Luck good luck
Q: (2) Use the floor and/or ceiling functions to create formulas for n÷d and n mod d
A: as you did not mention programming language so we are answering in java here we have to use the…
Q: 10 - In an examination, 500 students appeared. Out of these students, 38 % got A+ grade, 45 % got B+…
A: Program to find the number of students who got A+, B+ and the number of students who just passed.
Q: Complete the code as below mentioned. Write all
A: Here, in this question, we are asked to develop a GO code. It is stated that the amount of potatoes…
Q: 1. Using the steps in analyzing a problem, show how to solve a problem that obtains two integer…
A: We need to write 5 sub-steps to analyze the given problem. The problem is that we need to take two…
Q: Q1) Write a program to add 3 numbers ( 2 bytes each), The 1" one is stored in memory locations…
A: Write a program to add 3 numbers two bytes each.
Q: 49- Find the output of the following program. * main(){ int a = 10, b, c; b = a++; C = a; cout << a…
A: The given code is - main(){ int a = 10, b, c; b = a++; c = a; cout << a << "…
Q: 5. Rewrite the following code using a switch statement.
A: Approach Here, we are asked to replace if else-if with a switch statement. We will use the switch…
Q: A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to…
A: def is_leap_year(user_year): if user_year % 100 == 0: #First check if its a century or not…
Q: C++ function, allLargestindices, that takes as input paramneters, Int array and Size, that takes as…
A: #include <iostream>using namespace std;//function takes integer array and its size//then…
Q: /* function definition to swap the values */ void swap(int x, int y) { int temp; return e;
A: /*Program to swap value of x nd y using swap function*/ #include<stdio.h> //swap function…
Q: 18. You have a group of friends coming to visit for your high school reunion, and you want to take…
A: public class Restaurant{ public static void main(String[] args) { Scanner sc=new…
Q: what is the output of the following program
A: Program: #include <iostream>using namespace std; int substract(int x ,int y, int z=2 ){ return…
Q: What are the values of i and j after executing the following code
A: The statements in loop gets executed only if condition specified evaluates to True
Q: State which of the following are true and which are false. If false, explain why.c) A program must…
A: fclose function The fclose function is a C library function used to close a file stream. Syntax:…
Q: 37 86.56 32 What value (if any) is assigned to x, y, and z after each of the following statements…
A: Please find the answer below :
Q: - Type the below into Python and see what happens. def reuse_code(): comment = input("Type something…
A: Here first we define function reuse_code(). Which promt user to Type something in then user will…
Q: Fill in the missing parts of the following code required to change the be
A: Here is the complete code, which is to be filled. <html><head> <script>…
Q: :-Complete the following program by writing its functions and class:
A: Given Code: Main(){Stack A(10),B(20);A.push(62);B.push(17);int w,…
Q: Write a program that takes in a year and determines whether that year is a leap year.
A: /******************************************************************************…
Q: ase write the following Co
A: Approach: The total number of ways to choose 3 balls will be that for every ball we have a total of…
Q: What is the output of the following * !program
A: A computer program is a collection of instructions that can be executed by a computer to perform a…
Q: A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to…
A: 1) Below is the python program that takes in a year and determines whether that year is a leap year…
Q: Write a code to overload area() function that can find the area of circle, rectangle , triangle and…
A: Given: Write a code to overload area() function that can find the area of circle, rectangle ,…
Q: d) What is the difference between the following 2 types of functions Operate () Operate (int x)
A: Parameterization is the process of taking values or objects defined within a function or a method…
Q: f the following actions correspond to SDN
A: Option B: All routers in the network send information about their incoming and outgoing links to a…
Q: 18. A former secretary has left her job and decided to sell textbooks. Assume the book is sold at…
A: Given: We are given that former secretary has left her job and she has decided to sell textbooks.…
Q: State whether each of the following is true or false. If false, explain why e) All variables must be…
A: 1) In programming langauges like C, C++, JAVA all variable's must be given a type when they are…
Q: What is the output of the following cod
A: Required: provide the output of the following code ?
Q: 15. Let C be the set of all Circles in the world, and S be the set of all Squares in the world. Vx E…
A: In questions with many questions, we must answer first one
Step by step
Solved in 2 steps
- Q1:Find the output of the following code:What’s the output of the following programs?- In C++ using Visual Studio - Seperate the files if there is any .cpp, .main or .h files. PART 1Read the contents of the text file and store them in a C++ data structure called std::map<string, int>This map is a collection of sorted <key, value> pairsIn this case, the keys are unique words found in the text file, and the values represent the number of times each word appearsFor example, since the word "cat" appears twice in the file, then map["cat"] = 2 PART 2Iterate through the map and print each key in the order they appearThis will give you a sorted list of unique wordsHere's the expected result: "a big cat does everything feeding goats helping injured juvenile kangaroos locating missing notorious objects playing quietly reading superb tales upvoting videos with xylophone yielding zebras" PART 3Iterate through the map again, this time printing each associated valueThe values represent how many times each word was found in the text filePay attention to the sequence of…
- 1:- USE "ENCAPSULATION" AND "GETTERS AND SETTERS" WHILE SOLVING THE PROBLEM IF NOT FOLLOWED WILL BE GIVEN A DOWNVOTE. 2:- AND MATCH OUTPUT AND INPUT AS IT IS . NO INTERNET COPY PASTE ANSWER. Write a C++ program to collect blood donor details like name, age, height, weight, gender, blood group. The data like weight, height, age are not fixed and it may change so they wanted to update all these details in their database once in three months. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. Create separate classes in separate files. The class called Donor contains the following private attributes. Data Type Variable Name string name int age float height float weight string gender string bloodGroup NOTE:- Define the member variables and include appropriate getters and setters for the above class. Include…What is the purpose of the following statement?State whether each of the following is true or false. If false, explain why.a) Function printf always begins printing at the beginning of a new line
- - Print the Movie names, list of actors/actresses, ratings(number of tickets sold), ticket prices, cost of production and the total net profit of each movie(net_profit_of_movie)b) Write a function that calculates the net_profit_of_movie; which is the multiplication of ticket prices and ratings(number of tickets sold), subtracted by cost of production c) In main call function, print all movies’ information and the net_profit_of_movie to the console. d) Create a file called movies.txt and write all movies information to the file, including the net_profit_of_movie per movie. e) Ask the user to add more movies (use realloc). The user needs to write at least 1 more movie (e.g. movie 4) then get all information for the new movies from the user. Create a file called UpdatedMovies.txt and write all movie data including the lately added movies’ data onto the file UpdatedMovies.txt.f) Write (Mohammad) and (63223) at the top of the code. g) Write explanatory comments for your code10 - In an examination, 500 students appeared. Out of these students, 38 % got A+ grade, 45 % got B+ and the remaining just passed. Assuming that no student failed, find the number of students who got A+, B+ and the number of students who just passed.(Python code)What is the output of following code segment?
- Q2. Whenever we write our code, we face many problems relating to the variables that we declare,initialize, and use in our code. Related to such issues, answer the following: 1. Pick any TWO of the following concepts and only explain the relation between them VERYBRIEFLY: => [span, live time, scope, principle of proximity]Please the output of program.ex program for this