Consider the code fragment: int ctr=1; do{ ctr += 2; printf(“%d “,ctr); }while(ctr <= 15); what is the output
Q: Problem Description Using the binary search tree (BST) data structure, we can sort a sequence of n e...
A: the code is an given below :
Q: Rail Fence Cipher* • Objective: Using any language, implement Rail Fence encryption and decryption a...
A: the Code and the output is shown below.
Q: Write a function that will combine two arrays of different lengths into another array. Express the f...
A: The code of following is given below.
Q: How do forensic investigators obtain data from Windows-based PCs that is both volatile and non-volat...
A: Introduction: According to the question, both are used to safeguard data at organizations that inclu...
Q: How I can open file txt in my computer
A: Please refer below for your reference: You can open file text in your computer by below steps:
Q: Describe the MIDI port. What functions can a MIDI-equipped system unit perform?
A: Introduction : MIDI port: Hence, the MIDI-Port is the principal mechanism by which MIDI-sequencers a...
Q: HTML Display the x, y and sum in the webpage after input of x and y. ...___ ...
A: First of all, the prompt function returns what the user entered as a string. So we need to convert i...
Q: Can you tell the difference between a slim and a fat client?
A: Introduction : Fat client: It is also called a thick client. It is nothing but software that implem...
Q: Explain how the spiral model of the software development process can accommodate both the Waterfall ...
A: Introduction: The Spiral Model is a risk management system development life-cycle (SDLC) approach, t...
Q: What are the differences between computer organisation and computer design?
A: Introduction: After deciding on a computer architecture, the next step is to organise the computer. ...
Q: to achieve the lowest latency a message is split into 24 packets. every packet has 15 bytes of heade...
A: Propagation Delay Component: L/R is an enabled process. This item is now the time it takes to transf...
Q: Q5 a) State the number of edges in the complete graph Kg, where each pair of distinct vertices is ad...
A: Solution:
Q: Write a complete C++ program that prompts the user to entel a string, and prints out a message based...
A: Task :- Write a C++ program to take user input for a string and print the output message accordingly...
Q: A significant advantage of a Hadoop installation is the high amount of computational redundancy it p...
A: Introduction: Hadoop requires the following environment: Hadoop's production environment is UNIX, ho...
Q: Compare two SQL versions that you have access to, such as Microsoft Access and Oracle SQL*Plus. Find...
A: Introduction : A MySQL is a relational database management system that is free and open source. Like...
Q: est non negative r
A: given - Is pivot raw the highest non negative ratio
Q: Explain the function of information privacy policies.
A: Introduction: A privacy policy is a statement or legal document that outlines how a party gathers, u...
Q: sh the THE pment proje
A: given - Distinguish the THREE (3) types of testing and their characteristic in software development ...
Q: Find the TOTAL DEDUCTION, round your answer. Gross pay: $399 O $30.5235 $31
A: Gross pay $399
Q: If the sentence is true, write T; if it is wrong, write F; and correct the false sentence. Only five...
A: The Answer is given below step
Q: ( In c++and oop ) without using vectors or data structure . Create a class IntegerSet for which eac...
A: Introduction ( In c++and oop ) without using vectors or data structure . Create a class IntegerSet...
Q: You have a large set of data with n elements, where n will tend to get very large. There is an algor...
A: Here in this question we have given a large set of data of n element.there is an algorithm which tak...
Q: There are a variety of resource records to choose from. What is the most significant resource record...
A: There are a variety of resource records to choose from. What is the most significant resource reco...
Q: nects multiple network segments and manages traffic betw
A: A bridge device connects multiple network segments and manages traffic between them
Q: Try to design a game in which the user has to guess a number and If it is in 100 to 125 then you hav...
A: Required:- Try to design a game in which the user has to guess a number and If it is in 100 to 125 t...
Q: What Exactly Is a Virtual Address?
A: Virtual address is a concept in operating system.
Q: What distinguishes a class's static data member from its non-static data member? Give an example of ...
A: Difference between static data member and a non-static data member of a class: A static data member...
Q: BFF 2:37 p.m. TODAY 2. Consider the following Java statements. int a = 1, b = 5; x = -(a = 3)b + b-(...
A:
Q: errin numbers, P(n) , are defined by the recurrence relation P(п) — Р(п — 2) + P(п — 3)
A: Given :
Q: you will use a link library procedure call to effect stdout display. Write a program that displays t...
A: Solution :: Here is the code in Assembly language Clrscr: Clears the console screen SetTextColor: ...
Q: What are the differences between HashMap and HashTable in Java?
A: Introduction: What are the differences between HashMap and Hashtable in Java?
Q: Reflexive. Transitive. • A partial order. • A strict order. • An equivalence relation. Anti-reflexiv...
A: Reflexive: Yes(x, x) belongs to R for all x in the set Anti-reflexive: NoIt is reflexive Symmetric: ...
Q: Consider a system that keeps track of people using their names, social security numbers, birthdays, ...
A: Hence the answer
Q: What are the two primary types of UPSs?
A: Usually there are three types of UPSs. Two primary types of UPSs would be:- Online double conversio...
Q: The module Question Number One contains a list called alice that contains every word of the Lewis Ca...
A: Use : operator for slicing the list and we slice it from 13322 to 15609 indices Then use sorted meth...
Q: Q9. Write a NumPy program to generate an array of 25 random numbers from a standard normal distribut...
A: # Numpy program to generate 25 random numbers from matplotlib import pyplot as pltimport numpy as np...
Q: What skills and expertise are required to be a successful systems analyst, and what role do systems ...
A: Introduction Role of the Systems Analyst Systems Analyst systematically assesses how users inter...
Q: Correct the errors in the following statements. Each row in a one-dimensional array could be treate...
A: We can create (Simulate) a one dimensional array as if it is a two Dimensional array. There are two ...
Q: Time left 047:29 Write a complete C++ program that prompts the user to enter a string, and prints ou...
A: PROGRAM INTRODUCTION: Include the required header files. Start the definition of the main function....
Q: Your project leader has been quite impressed by your performance on binary search trees, and started...
A: i have answer this question in step 2.
Q: In C program Given two arrays: the first one having all the scores and the second being the test num...
A: Here, I have to write a C program to the above question.
Q: What are the rules of a project sponsor and the approval committee during the different SDLC phases
A: SDLC(Software Development Life Cycle): SDLC is an in detail blueprint that defines how software need...
Q: 1. Bitcoin transactions: Identify the one wrong statement (a) Bitcoin does not use an accout ba...
A: Identify the one wrong statement
Q: In the context of a wireless network, what does the word "infrastructure mode" mean? If the network ...
A: Wireless network is a computer network that uses wireless data connections between network nodes.Wir...
Q: In software testing, what is the difference between verification and validation?
A: Introduction : Verification checks design, document, code, etc in software testing and validation ex...
Q: Which of the following expressions is equivalent to ((p Up)nr)np U (r n(r Up)))?
A: Answer Option A Reason: Option A is correct because if we compare the equation with the given we can...
Q: What are the benefits of adopting virtualization on a network?
A: Virtual Machines have a greater importance when it comes to operate multiple Operating Systems at sa...
Q: If the sentence is true, write T; if it is wrong, write F; and correct the false sentence. Only five...
A: Find the answer given as below :
Q: In a file named Exercise2.c write the function double sum(double (*f)(double), int start, int end); ...
A: The double is a fundamental data type built into the compiler and used to define numeric variables h...
Q: A.) Create a vector of x values • Initial value : X, • Step : X2 • Final value : After three step B....
A: First, create the vector x. Then calculate the cos(2x) and sin(x) + cos(x). Then plot these values X...
Consider the code fragment:
int ctr=1;
do{
ctr += 2;
printf(“%d “,ctr);
}while(ctr <= 15);
what is the output
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- int func(int a, int b) { return (a#include <stdio.h>int main(){int d;int s[20],i, r, p, lg=0,m;char c;printf("Enter number of salesman(max 20): ");scanf("%d", &d);for(i=0; i<d; i++){ printf("\n salesman %d sales: ");scanf("%d", &s[i]);}for(i=0; i<d; i++){for(r=i+1; j<d; r++){if(s[i] > s[r]){p= s[i];s[i] = s[r];s[j] = p;}}}printf("\nsalesman lowest to highest: ");for(i=0; i<d; i++){printf("%d\t", s[i]);}for(i=0;i<m;i++){printf("\n highest sales: %d ",lg);if(lg<=s[i])lg=s[i];break;}getch();} >>> the upper part output should be like this enter number of salesman (max 20): 5 salesman 1 500 salesman 2 300 salesman 3 1000 salesman 4 200 salesman 5 1000 in the lower part the lowest to highest the output should become like this salesman 4 200 salesman 2 300 salesman 1 500 salesman 3 1000 salesman 5 1000 highest total sales : 2000#include using namespace std; const int y = 1; int main () { int static y = 2; int i = 3, j = 4, m = 5, n = 6; %3D int a = [] (int x, int i = 1) { return x * i; } (y, 3) ; %3D int b = [=] (int x) { return [=] (int b) { return b + j; } (x) % 7; } (a); int c = [=] (int x) mutable ->int { m = 6; return [6] (int j) mutable { y = a * b; return y / j; } (x) -m; } (b) ; cout << a << endl; cout << b << endl; cout << c << endl; cout << m << endl; cout << y < endl; return 0; This program outputs 5 lines. What are they? Please explain your work and your answer.CFG: Example 1 • Draw the CFG for the following code: int f(int n){ } int m = n* n; if (n < 0) else return 0; return m;Please explain this question void main() {int a =300; char *ptr = (char*) &a ; ptr ++; *ptr =2; printf("%d", a); }(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.#include <stdio.h>int main(){int d;int s[20],i, j, p, lg=0,m,t=0;char c;printf("Enter number of sale: ");scanf("%d", &d);for(i=0; i<d; i++){ printf("\n sales %d sales: ",i+1);scanf("%d", &s[i]);}for(i=0; i<d; i++){for(j=i+1; j<d; j++){if(s[i] > s[j]){p= s[i];s[i] = s[j];s[j] = p;}}}printf("\n sales lowest to highest: ");for(i=0; i<d; i++){printf("\nsales %d ", s[i]);}printf("\n highest: %d ",t);getch();} it should be: highest : 2000C. #include int main() { char name[20]; printf("\nEnter your name :"); gets (name) ; printf("\nYour name is "); puts(name); }What value will be returned by the function if a = 8, b=12? %3D int func(int a, int b){ if(a>b){ return a+b; } else if(abe recor #include #include minutes #include limit on int func(int, int, int, int); main(){ srand(time(NULL)); int a, b, c, fNum; printf("Choose three different numbers between 0-39:"); scanf ("%d%d%d", &a, &b, &c); fNum = func (a, b, c, 25); printf("\nThe result: %d", fNum); } int func (int ul, int u2, int u3, int iter){ srand (time (NULL)); int n1=0, i=0, count=0; for (;i#include void main () { int a=5,b=10,c=1; if (a && b>c) { printf("cquestionbank"); } else{ break; } }int sum = 0; for (int i 0; i < 5; i++){ sum += i; } cout << sum;SEE MORE QUESTIONSRecommended textbooks for youC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr