write c++ program accept N value from user and check the value of N if N greater than 10 perform addition from 10 to double value of N except that perform multiplaction from half value of N to 10 finally
Q: Food Delivery Service Food Discount Delivery Charge (1) Food Tiger 2% +20php (2) Pick-Up Food 5% +40...
A: Here I have taken input from the user for the food and its delivery service from the menu. Next, I h...
Q: A hospital has a large number of registered nurses. Attributes of Nurse include N_ID (the primary ke...
A: The entities we have are Patient and Nurse. Nurse can take care of zero or many patient. Thus parti...
Q: What is the meaning of data encryption?
A: Everything in computers is data. Lets take an example of a talking to your loved one on a chat app. ...
Q: The monthly cost of this option can be represented by function c, defined by: C(x)=30×+5, where x is...
A:
Q: Write a short notes on, (i) Manuals as sources (ii) Help screens and systems (iii) Data dictionary a...
A: The Answer is in Below Steps
Q: import java.util.Scanner; public class Table { public static void main(String[] args) Scanner in = n...
A: logic:- to display only 2 digit, use %.2f . To set width of 8 to integer, use %8d. To set width o...
Q: Write a program that starts out by flashing an LED connected to pin7 at 2Hz. On a button press (butt...
A: Given :- Write a program that starts out by flashing an LED connected to pin7 at 2Hz. On a button pr...
Q: Suppose you have a table t with a column labeled 'XYZ. What is the difference between t.YYZ.cumsum()...
A: Answer: For each row of the table t.YYZ.cumsum() sum of the all values of the column XYZ. For each r...
Q: Prove the following by proof by cases : min(a, min(b, c)) = min(min(a, b), c) for real numbers a, b,...
A: Here we can have three cases possible Case 1: if a is the smallest real number then clearly a...
Q: praw the state diagram for the finite-state machine with the following state table: Iпрut Iпрut
A:
Q: Identify the parts of the chaos program as follows: Color code each: identifier, expression, stateme...
A: Logic:- identifiers are user defined words that are used in programming. Reserved words are predef...
Q: I am trying to write a java program that will show me the GridLayout, FlowLayout, textfields, labels...
A: The answer is given below:-
Q: In a microprocessor-based system with several tasks that are supposed to be executed more or less si...
A: INTRODUCTION: Software has traditionally been written for serial computation: An issue is decompos...
Q: The equation of a straight line is written as y = mx + b where m is the slope of the line and b is t...
A: The standard types of the situation of a line are: Incline catch structureBlock structureTypical str...
Q: Briefly compare data cleaning, data transfor mation, refresh concepts. Use an example to explain you...
A: The Answer is
Q: explain with proper working that how we can come up with these answers.
A: Consider the given :
Q: What are CSV (comma-separated values) text files? What is an easy command for splitting each CSV rec...
A: The answer of this question is as follows:
Q: truth table F(X, Y, Z) = XY + Z
A:
Q: program6_1.py BetterBuy is having a sale. Write a program that uses a while loop to store to a file ...
A:
Q: For stopped irreversible expansion of 1.0 mole of ideal monatomic gas in an adiabatic frictionless p...
A:
Q: WHY DO WE NEED TO GET RID OF DATA REDUNDANCY?
A: Suppose in a database we have two tables(relations). SchoolStudent (RollNo, Name, Age, BirthDate, Ge...
Q: 1. If I'm using the and operator with two conditions that are both false, what is the boolean value?
A: For given two conditions like condition1 and condition2 with a (&&) ampersand symbol, if bot...
Q: Construct the FIRST and FOLLOW for the grammar A → BC | EFGH|H B →b E → e|E F» CE G→g H →h|e
A: The Answer is
Q: Using java write one for loop to print out A(4 times) if n = 2, A (14 times ) if n = 3, A (28 times ...
A: Code: import java.io. * ;public class Main { public static void main(String[] args) { int i,j,k,...
Q: Identify Testing Types d. Newly developed Grocery Shopping App is about to hit the release stage. T...
A: Testing a software is one of the most important phase in software development life cycle.
Q: Using the R language Student: 80, 90, 85, 95, 75 Number: 3, 7, 4, 6, 9 Weight: 50, 30 ,40, 70, 60...
A: The three lists of values can be initialized as vectors. The R program is given in the below steps.
Q: 000. the signal to noise ratio is usually 2165. calculate maximum capacity of the noisy channel and ...
A: Capacity can be calculated as- Capacity C=B log2(1+SNR) = C= 4000 log2(1+2165)= 4000 log2 2165= 4000...
Q: Create a code for bank transaction record using linked list in c++
A: Given: Create a code for bank transaction record using linked list in c++
Q: On which networking device are VLANs configured?
A: Introduction: Virtual LANs (VLANs) are logical groups of devices that share the same broadcast domai...
Q: Create a data based on the linear model with dummy (0,1) variables y = Xb + e, and this model not of...
A: ANSWER:-
Q: What exactly do you mean by Data Purging?
A: Unused or inactive data present in database consumes space and slow down query execution. Administra...
Q: #include int main() { int i; printf("%d\n", scanf("%d", &i)); return 0; }
A: As we know scanf returns the number or the input which is given by the user and here as specified in...
Q: What are the design differences between a mobile operating system and a typical interactive system s...
A: Answer : A "Mobile OS" is designed to be used on a device with a small touch screen. A "Desktop OS" ...
Q: Java) Create a new project folder in Eclipse for this activity. In this folder, create two new clas...
A: Create a new project folder in Eclipse for this activity. In this folder, create two new classes - A...
Q: What is the maximum number of IP addresses that can be assigned to hosts on a local subnet that uses...
A: The Answer is
Q: Why is data encryption so critical?
A: Introduction: Encryption is a means of modifying data in such a manner that it is unreadable by ever...
Q: Write a program in S that computes the function f1(x) = 3x – 3. If you need any macros, please defin...
A: In this question, we are asked to write a program which display the solution of f1(x) f1(x) = 3 * x ...
Q: Describe what a data model is and why it's important in database design.
A: DATA MODEL: The Data Model offers us an idea of how the final system will look when it has been ful...
Q: What Kerberos is used for Diagrammatically represent its functionality and authentication mechanism?
A: What Kerberos is used for Diagrammatically represent its functionality and authentication mechanism?
Q: I need help in this following mcq? What is NOT 123h (12316)? Group of answer choices 1)DEFh (DEF16)...
A: Hexadecimal number start from 0 to 15 (with base 16) NOT 123h (h or 16 represent hexadecimal number)...
Q: Assume the graph is represented by two linear arrays corresponding to the end vertices of edges. Wri...
A: A spanning tree is a connected graph using all vertices in which there are no circuits.
Q: 2. What is Special Use of Airspace (Non-regulatory)? 3. What are the other Airspace?
A: Airspace is the portion of the atmosphere controlled by a country above its territory including its ...
Q: The password is stored in a file. If you want to keep anything safe, hash it rather than encrypt it....
A: Password file The /etc/passwd file is a text-based database of information about users that may log ...
Q: How does the Multi-level Feedback Queue scheduler ensure that interactive jobs are running quickly? ...
A: INTRODUCTION: This scheduling is similar to Multilevel Queue(MLQ) scheduling, except that you can m...
Q: START Check the time of Vladimir as he arrive in his home Chech Time He is in playground He is in Sc...
A: Here I have taken input from the user for the time in PM. Next, I have used nested if-else block to ...
Q: What are the most popular multimedia file formats?
A: Introduction: Text, picture, graphic, animation, music, video, and interactive drawings are examples...
Q: Python method for calculating the length of a String without the use of the len() function
A: Let us define a method called countLength() which accepts a user defined string as input and return ...
Q: What is the difference between Data Mining and Process Mining?
A: Defined the difference between Data Mining and Process Mining
Q: When is it OK to install a brouter on your network?
A: The answer is given below:-
Q: WHY DO WE NEED TO GET RID OF DATA REDUNDANCY?
A: ANSWER: Data Redundancy: Data redundancy takes place while the identical piece of information is sav...
Step by step
Solved in 2 steps
- Write c++ a function multiple that determines for a pair of integers whetherthe second integer is a multiple of the first. The function should taketwo integer arguments and return true if the second is a multiple ofthe first, false otherwise. Use this function in a program that inputs aseries of pairs of integers by using for loop.Output example:Enter two integers: 3 44 is not a multiple of 3Enter two integers: 1233 is not a multiple of 12Enter two integens: 3 1212 is a multiple of 3(Numerical) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters to 0, and then generate a large number of pseudorandom integers between 0 and 9. Each time a 0 occurs, increment the variable you have designated as the zero counter; when a 1 occurs, increment the counter variable that’s keeping count of the 1s that occur; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of the time they occurred.write this in c++ format function sequence(n){ var n = 10; // this is just for explanation you can take any value from user input var arr = [n]; //this is to store result //Continue to generate numbers in this way until N becomes equal to 1 while(n > 1){ //check if even if(n % 2 == 0){ //If N is an even number, then divide N by two to get a new value for N n = n / 2; } else{ //If N is an odd number, then multiply N by 3 and add 1 to get a new value for N. n = (n * 3) + 1; } arr.push(n); } Logger.log("sequesnce: "+ arr) Logger.log("Number of terms: "+arr.length);}
- Define a function in C++ language that takes an integer n as the parameter and then multiplies it by 8 without using the '*' operator or any loop. Return the value of n after multiplying it with 8.Complete the following function using pass-by-reference: void findMax(int &max, int a) which assigns value ‘a’ to ‘max’ if a > max. Write a pseudo-code then implement a program in C language to find the maximum in a sequence of numbers using this function.In C language / Please don't use (sprint) function. Write a function fact_calc that takes a string output argument and an integer input argument n and returns a string showing the calculation of n!. For example, if the value supplied for n were 6, the string returned would be 6! 5 6 3 5 3 4 3 3 3 2 3 1 5 720 Write a program that repeatedly prompts the user for an integer between 0 and 9, calls fact_calc and outputs the resulting string. If the user inputs an invalid value, the program should display an error message and re-prompt for valid input. Input of the sentinel -1 should cause the input loop to exit. Note: Don't print factorial of -1, or any number that is not between 0 and 9. SAMPLE RUN #4: ./Fact Interactive Session Hide Invisibles Highlight: None Show Highlighted Only Enter·an·integer·between·0·and·9·or·-1·to·quit:5↵ 5!·=·5·x·4·x·3·x·2·x·1·x··=·120↵ Enter·an·integer·between·0·and·9·or·-1·to·quit:6↵ 6!·=·6·x·5·x·4·x·3·x·2·x·1·x··=·720↵…
- Modify the below program that the input values representingfractions are stored with denominators that are positive integers. You cannot require the user to only enter a positive denominator value; the user should not be inconvenienced by such a restriction. For example, whilst values of 1 / -2 are acceptable inputs for a fraction, the output representation should be -1 / 2. Your solution should check the denominator input; if it is negative, swap the sign of both numerator and denominator instance variables. //Import the essential package import java.util.ArrayList; import java.util.Scanner; //Define the class Fraction class Fraction { private int n, d; public Fraction() { //Initialize the values this.n = this.d = 0; } public Fraction(int n, int d) { //Initialize the variables this.n = n; this.d = d; } //Define the getter function getNum() that returns the numerator public int getNum() {…Write a c++ program that asks the user to enter a number and then prints all the divisors of thatnumber. A divisor of an integer, also called a factor of , is an integer that can be multiplied bysome other integer to produce . An integer is divisible by another integer if is a factor of , so thatdividing by leaves no remainder. For example:Enter a number: 12The divisors of 12 are = 1, 2, 3, 4, 6, 12Enter a number: 7The divisors of 7 are = 1, 7Using C++. Write a program using recursive a function to generate the following pattern of stars: ** ** * ** * * ** * ** ** Also, the program should prompt the user to enter the number of lines inthe pattern and uses the recursive function to generate the pattern. Forexample, specifying 4 as the number of lines generates the preceding pattern.
- Using language C++ and includes the knowledge of data structure Do it by your own pls Description Given n non-negative numbers, you need to output the non-zero numbers in reverse order. Input The input data contains multiple test cases. The first line of the input is an integer T, indicating the number of test cases. The first line of each test case contains an integer n. The second line contains 72 non-negative integers. Output For each test case, output the non-zero numbers in reverse order in a line. Simply print a blank line if there is no positive number. Sample Input/Output Input 2 5 0 0 0 0 0 9 998244053 Output 35442899Hi here Python3 function sqr(n) that returns the square of its numeric parameter n..With the aid of c++, write a program which utilizes a random number generator to bring out(generate) a 2 digits +(positive) integer and permits the user to do 1 or more of the operations listed below.Find i.Considering the number is a 2 digits number let the exponent of the 1st digit be that of the 2nd digit ii.Considering the number is a 3 digits number with its last digit <=4 and the exponent of the 1st 2 digits being that of the last digit N.b The 'number' word used above represents the randomly generated 2 digits +(positive) integer. a.In case the random number generated is less than 10,add ten to the number. b.Check if the number is a prime after each operation c.The code shouldn't be made up of global variables and also each of these operations should be implemented by a separate function d.Code should be menu driven and each successive operation must be performed on the number generated by the last operation. e.There should be a creation of an enumeration type called…