question number- c, d, e (subparts) according to policy
Q: Time and date in C++ I have a question asking me to make a program in C++ that calculates the…
A: #include <iostream>#include <cmath>#include <ctime>using namespace std; int…
Q: Using the above C++ statements I am trying to create a C++ program that contains five more…
A: x is a variable intPtr is a pointer variable which stores address of a variable For address of…
Q: Question 11: IN C language Take input a number from user and print if the number is fibonacci number…
A: A number is Fibonacci if and only if one or both of (5*n2 + 4) or (5*n2 – 4) is a perfect square.…
Q: CompTech a. Create a Ꜫ-NFA for the following RE: (a | ba) ? a (b | ab)* b. Create a CFG for…
A: solution a) =============================================================================
Q: Basic __________________ System is Better known as _______________.
A: This question wants to know about basic system.
Q: Briefly explain program entry point
A: Entry point: Entry point is where the 1st instructions of a program are executed, and where the…
Q: Create a C++ program using switch structure that will count the inputted character of the user and…
A: Below program has comments which are self explanatory. Note :- that while copying source code below,…
Q: Please be as quick as you can and write in c++
A: #include<iostream>#include<string>using namespace std; //student structure…
Q: In order to be able to use the cout , cin , and endl commands what line of C++ code must be included
A: cin, cout and endl in C++ cin statement The keyword cin refers to as "console input" that enables…
Q: Solve this question with steps please. The subject is programming in c.
A: Code: #include <stdio.h> #include <math.h> //math library for power function int…
Q: Code using c++ 2. First Even Road by CodeChum Admin I've been newly assigned as the city's road…
A: Sample Output Screenshot:
Q: Create a C program that lists or displays all books added to the system.
A: Program in C:…
Q: Write a subroutine subprogram to calculate the value of a factorial number,
A: Note: As per the guidelines can answer the first section, Please! re-submit the question for further…
Q: An authority requires a deposit on a car loan according to the following schedule: Loan$ Less than…
A: #include <stdio.h> int main() { double loan_amount = 0, required_deposit = 0;…
Q: Income Tax The original U.S. income tax of 1913 was quite simple. The tax was: ● 1 percent on the…
A: Program : income=float(input("Enter salary: ")) if(income<=50000):…
Q: C++ basic definitions
A: C++ is an object-oriented computer language created by notable computer scientist Bjorne Stroustrup…
Q: Design a struct called “Datetime" to store time in hours and minutes, and date in month and year.
A: As per the company guidelines, we are supposed to answer only first question. Kindly re-post other…
Q: C++ Program Create a simple point-of-sale system to calculate the inventory of goods. The program…
A: The program consists of a struct with variables - candies, chips, ice cream, bread and fruits. Each…
Q: C language:- Instructions Write a program to take inputs from user (Hours and Rate) then compute the…
A: The above question is solved in step 2 :-
Q: Create a program in c++ Topic: Introduction to c++ and Control statements (Selection Statements,…
A: /***************************************************************************************************…
Q: CODE USING C++ 2. First Even Road by CodeChum Admin I've been newly assigned as the city's…
A: A pre-increment operator is used to increment the value of a variable before using it in an…
Q: For a list of numbers entered by the user and terminated by 0, find the sum of the positive number…
A: #include <iostream>#include <string> using namespace std;int main(){ // lets declare…
Q: b) For the expression (b + b + c +d +e), construct the syntax tree and DAG.
A: DAG for (b+b+c+d+e)
Q: 12. Calculate the travel fare. Need C, C++, Java, Python, or Perl code for the below question.…
A: I have used Python 3 to solve the above Question.
Q: Code Example 4-4 def multiply(num1, num2): product = num1 * num2 result = add(product,…
A: As i have read guidelines i can provide answer of only 3 part of questions if multiple questions…
Q: Language : c++ Task: There is a case studies mentioned below. You need to work on it. In other…
A: #include<iostream>using namespace std; class Bank{public: char *name; int age; int…
Q: Discount (percent) and customer support discount (percent) on the sales price of a product will be…
A: Coded In C language.
Q: Write a program which calculates area of the ring using call by reference approach. The program…
A: #include<stdio.h>void area(float r, float *pa){ float p=3.14; *pa=p*r*r;}void main(){…
Q: True or False C# provides only the basic keywords and operators that you need to construct a…
A: Explanation: When a program is constructed, one needs some requirements along with the basic…
Q: on’s details. This should be used a
A: C++ program to store the person’s details. This should be used a key to retrieve his Date of Birth.…
Q: Design and write a C program that performs the following functionality: 1. Read first name and last…
A: It is defined as a powerful general-purpose programming language. It can be used to develop software…
Q: C# Programming Create a C# program that has the following methods and corresponding usage. 1.…
A: Answer the above program are as follows:
Q: C++ Data structure question, pleaze help me quickly, I'm in an exam.
A: Given:
Q: C++ LANGUAGE 1. What is the value of the variable “compute” after executing the given statement:…
A: answer is
Q: Q. NTFS is also known as _______________ System.
A: This question wants know NTFS.
Q: What is meant by C++
A: Bjarne Stroustrup designed C++, a computer programming language, in 1983. The C++ programming…
Q: 05:- choose the correct answers (Multiple Choice Questions) 1. Which of the following is considered…
A: 1. Which of the following is considered a keyword in C++ LANGUAGE ? Answer: e) All of the mentioned…
Q: Create a C program to calculate Simple Interest
A: The formula to calculate the simple interest is: Simple Interest= P*R*T/100 where P= Principle,…
Q: Cse oop question The C library function _____________function converts the wide character to its…
A: Given, Statement: The C library function _____________function converts the wide character to its…
Q: Using Dictionaries write a C# program to capture student IDs as a key and student names as value for…
A: C# is a programming language which has the components oriented programming language. This languages…
Q: Code a C++ that displays the following below:
A: Step 1 : Start Step 2 : Define and initialize an array to store the given radian measures. Step 3 :…
Q: Please help me find the right code in C++. Thank you!
A: As per the requirement program is completed. Algorithm: Step 1: Write the main() method Step 2:…
Q: Which operator has the highest precedence? A + B . C ! D *
A: Computer fundamentals Which operator has the highest precedence?A +B .C !D * ANSWER:…
Q: An authority requires a deposit on a car loan according to the following schedule:…
A: ========= Program ========= #include <iostream> using namespace std; int main(){ double…
Q: Write a computer program in Fortran 90 to read the degree (0-100), then print the result as shown in…
A: 1- In this assignment requires display assessment values as per the degree input using the if…
Q: Complete the function given below: int square (int x) { // Return square of x } C++ language.
A: Given: Complete the function given below: int square (int x) { // Return square of x } C++…
Q: "My favorite number is " + 7L What data type is the expression above in C#
A: Answer : The given Question Answer is long Datatype L stands for long. It is used to represent…
Q: programming language *provide comments Write a set of statements in the main function that…
A: Required: C programming language *provide comments Write a set of statements in the main function…
Q: ?What are the escape sequences اخترأحد الخيارات a. Set of characters that are avoided in cout…
A: Escape Sequence: An escape sequence is a set of characters that have a special meaning when compared…
Q: Create a C++ Program that will showcase your skills in using if statement and switch statement based…
A: Here have to determine about if and switch statement in c++.
C++
question number- c, d, e (subparts) according to policy
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- this needs to be in python please Dr. Bruce Banner hates his enemies (like others don't). As we all know, he can barely talk when he turns into the incredible Hulk. That's why he asked you to help him to express his feelings. Hulk likes the Inception so much, and like that his feelings are complicated. They have n layers. The first layer is hate, second one is love, third one is hate and so on... For example if n = 1, then his feeling is "I hate it" or if n = 2 it's "I hate that I love it", and if n = 3 it's "I hate that I love that I hate it" and so on. Please help Dr. Banner. Input The only line of the input contains a single integer n (1 ≤ n ≤ 100) — the number of layers of love and hate. Output Print Dr.Banner's feeling in one line.The state of Georgia is examining population growth for all of its counties. The governor wants a programdesigned that will predict how many years it will take for a county population to triple, assuming the presentrate of growth remains constant. Given the following pseudocode, fill in the missing lines of code. Seebold portions.class CountyGrowthProgrammain( ) // declarations string countyName num population num growthRate num years num triplePop string QUIT = “ZZZZ” output “Please enter county name or type “, QUIT, “ to quit: “ while countyName <> QUIT output “Please enter county population and growth rate: “ input population, growthRate triplePop = population * 3 years = 0 whilea. _____________________ population = population * (1 + growthRate)b. _____________________ endWhile output countyName, “ will triple its population in “, years, “ years!” output “Please enter county name or type “, QUIT, “ to quit:” input countyName endwhilereturnendClassThis is for Coral. Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.045) / 12. Output the estimated monthly mortgage (estMortgage) with two digits after the decimal point, which can be achieved as follows:Put estMortgage to output with 2 decimal places Ex: If the input is: 200000 210000 the output is: This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $750.00. Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming. The code I have written is: integer currentPriceinteger lastMonthsPriceinteger changeSinceLastMonthinteger estMortgage currentPrice = Get next…
- the out put of my program is not perfect. You can see it on the picture. the first name is Abu and his (NoIc) not under the (noIC) perfectly but second name is Abubakare and his (noIc) is perfectly under the (noIC). I can see the problem is the length of name is diffrent. so my question is how can i solve it so the (noIC) of Abu is perfectly under the (noIC). i cannot add letter on Abu name. I hope your uderstands. sorry for the broken english.the out put of my program is not perfect. You can see it on the picture. the first name is Abu and his (NoIc) not under the (noIC) perfectly but second name is Abubakare and his (noIc) is perfectly under the (noIC). I can see the problem is the length of name is diffrent. so my question is how can i solve it so the (noIC) of Abu is perfectly under the (noIC). i cannot add letter on Abu name. I hope your uderstands. sorry for the broken english. in C++ please..i have try to add setw() but i fail.Develop a program that takes a set of pairs of data values (e.g. sales and month), fits a straight line to the data, and displays the results in a table and chart. Fitting a line or equation to data is done in many fields including business and scientific research. __________________________________________________________ #include <iostream> // Needed for cout and cin#include <iomanip> // Needed for setw and others#include <fstream> // Needed for ifstream#include <string> // Needed for string data type#include <cmath> // Needed for pow #include "Graph.h" // Used to graph the results using namespace std; // To use cout instead of std::cout // Function prototypesbool readArrays(ifstream& inFile, double x[], double y[], int size); int main() { // Do "Press return to continue..." on exit atexit([] {system("pause"); }); // Prompt for the name of the data file and store it in a string variable named fileName. // Put your code…
- Make a program that prints the table of contents of a book where each chapter has the same number of sections, and each section has the same number of subsections. Example: Please enter the number of chapters 3Please enter the number of sections 3Please enter the number of subsections 3Chapter 1-Section 1.1--Subsection 1.1.1--Subsection 1.1.2--Subsection 1.1.3-Section 1.2--Subsection 1.2.1--Subsection 1.2.2--Subsection 1.2.3-Section 1.3--Subsection 1.3.1--Subsection 1.3.2--Subsection 1.3.3Chapter 2-Section 2.1--Subsection 2.1.1--Subsection 2.1.2--Subsection 2.1.3-Section 2.2--Subsection 2.2.1--Subsection 2.2.2--Subsection 2.2.3-Section 2.3--Subsection 2.3.1--Subsection 2.3.2--Subsection 2.3.3Chapter 3-Section 3.1--Subsection 3.1.1--Subsection 3.1.2--Subsection 3.1.3-Section 3.2--Subsection 3.2.1--Subsection 3.2.2--Subsection 3.2.3-Section 3.3--Subsection 3.3.1--Subsection 3.3.2--Subsection 3.3.3Suppose you have a large collection of photos from your trips, including photos of yourself alone, photos of yourself with other people, photos of other people without you, as well as photos without people. These images look more sharp or more detailed if we are able to perceive all the objects and their shapes correctly in it. For example. An image with a face, looks clear when we are able to identify eyes, ears, nose, lips, forehead e.t.c very clear. This shape of an object is due to its edges. So in blurring, we simple reduce the edge content and makes the transition form one color to the other very smooth.a) In your own words, briefly explain a blurred image and why it is sometimes useful to blur an image.EV(6)b) Distinguish between blurring and zooming in your own words and provide in each case practical examples.EV(5)c) Identify and describe the three common types of filters that are used to perform blurring by illustrating with appropriate examples.CODE IN PYTHON In an alternate reality, chemistry Professors Hodge and Sibia have teamed up to design a chemical compound X such that when X is added to Dan’s favorite food (saltine crackers), it’ll make him despise it. For this, they are working with 6 kinds of extracts: Singleton Extracts: berries (B), green veggies (G), dairy (D) Combination Extracts: icecream (I), salad (S), and cheese sauce (C) Like regular food, mixing two extracts of the same kind will result in an extract of the same kind (eg. mixing berries B with berries B will result in berries B). Mixing two singleton extracts will result in a combination extract, using these rules: Berries (B) + Green Veggies (G) = Salad (S) Berries (B) + Dairy (D) = Icecream (I) Green Veggies (G) + Dairy (D)= Cheese Sauce (C) Mixing two combination extracts will result in a singleton extract closest to them. For example, Icecream (I) + Salad (S) is closest to Berries (B) since both Icecream and Salad extracts require using Berry…
- Computer Science For each of the code snippet given below, identify the error and then write code after fixing the error. Given code is the simulation of grep -v command. -v prints all lines that do not match a specific pattern. void grep_inverse(char *filename, char *str) { FILE *fp; char buf[buff_size]; fp = fopen(filename, "r"); if(!fp) { perror(filename); } else { while (fgets(buf, buff_size, fp) != NULL) { if ((strstr (buf, str)) != NULL) printf("%s", buf); } } fclose(fp); }Can a python programmer write a program that takes a picture of its own source code and then hides and extracts the plain text code in/from that picture using steganography? The assumptions would be that a steganography program such as Quick Steno would be available and runnable by the python program. The python program would also have access to a screen grabber such a the MS snipping tool.Create a python program in Physics and Materials Science. In physics, chemistry, and materials science, percolation refers to the movement and filtering of fluids through porous materials. (Wikipedia.org). Consider a simplified model below. Imagine, this is a filter or maybe some layers of stones such that when a certain amount of fluid is put on top, it will reach the bottom only if there is a direct passage. In this case, the blue squares serve as the porous materials or the holes where fluid may pass. Your task is to simulate this simple percolation by representing them in a 2-dimensional array. The input would be in a string, while the output would either be yes or no to indicate whether the fluid can pass through the filter or not. Examples: Input: “1,0,0,0,0;0,1,0,0,0;0,1,0,0,0;0,0,1,0,0;0,0,0,1,0”Output: Yes Input: “1,0,0;0,1,0;0,0,0;0,0,1”Output: No Input: “0,0,0,1,0;0,1,0,0,0;0,1,0,0,0;0,0,1,0,0;0,0,0,1,0”Output: No Note: It should also work with these two inputs:1. “1” ->…