What
Q: Examples of sustaining innovation and disruptive innovation.
A: Sustaining Innovation It is referred to as a kind of small change based on the need and demands of ...
Q: Given the Bank database that contains the following tables (primary keys are underlined and foreign ...
A: View statement: View is a virtual table based on the result set of an SQL statement. View contains ...
Q: Which of the following statements is valid? (refer to the tables in the JustLee Books database.)a. S...
A: Valid statement The SELECT statement returns a result set of records from one or more tables. It re...
Q: The use of composite attributes are avoided in relation schema when the relation schema conforms to ...
A: The use of composite attributes, are avoided in a relation schema when it is said to be in First Nor...
Q: write a program that inputs a string and checks if it is a palindrome. Use a functiion.****
A: Since you are not mentioning the programming language, here we are using Python and version 2.7 to c...
Q: Which clause is used to restrict the records retrieved from a table? Which clause restricts groups d...
A: To Find: 1. Clause used to restrict the records retrieved from a table 2. Clause restricts groups di...
Q: Consider 2 two-dimensional integer arrays, x and y, of the same size (assume 3 by 4). Fill array x w...
A: Use a srand() function to create the starting point to generate the random numbers. Take 2 2D intege...
Q: C++ Program
A: Programming instructions: Declare the required variables. Take the required inputs from the user. F...
Q: Write a C++ program to produce the first 90 Fibonacci numbers. A Fibonacci number is one that I is t...
A: Note: - As per our guidelines we can only answer one question at a time. Please resubmit the other q...
Q: A computer system has 4 page frames. The table below shows the time of loading, thetime of last acce...
A: Given: Computer system has 4 page frames and the following table: Frame Loaded Last access R M...
Q: An element in the array is a peak (max or min) if the elements before and after that element are gre...
A: Program approach: Create a class named displayPeak. Declare a nmethod named initValues() for creati...
Q: The program Telephone Digits outputs only telephone digits that correspond to uppercase letters. Rew...
A: Programming language is not mentioned in the question. So the below program is written in C++ progra...
Q: Which of the following functions is used to calculate the total value stored in a specified column? ...
A: Function used to calculate the total value The SUM function is an aggregate function that calculate...
Q: Which of the following queries identifies other customers who were referred to JustLee Books by the ...
A: Query A query is a request for data or information from a database table. It may be generated as re...
Q: Using one line or two of Python code, declare a one-dimensional list called cityNames, and assign th...
A: EXPLANATION: Python list is a collection of items which is order and changeable. Syntax: list_name ...
Q: (True/False): The following code will jump to the label named Target.mov eax,-30cmp eax,-50jg Target
A: Answer: The given statement is false.
Q: Given the following statements:int num;int *numPtr;write C++ statements that use the variable numPtr...
A: Statement The statement that uses the variable numPtr to increment the value of variable num is ...
Q: I could use some help with coding this prompt. Is there anyway I could get a screen shot of the work...
A: Program: //import the header file import java.util.*; //definition of "Letter" class public class ...
Q: Describe the ALOHA system and the multiple access methods that were used. What was the benefit of sl...
A: If there is a dedicated connection in between the sender and the receiver then the control of the da...
Q: Define Object .
A: In the object-oriented programming (OOP), the developers use the data types of an abstract type that...
Q: Consider a relation schema R = {A, B, C, D, E} and its functional dependency set F = {A → BC,CD → E,...
A: The given relation is lossless-join decomposition and not dependency preserving. Hence, correct answ...
Q: A structure, in C, has been given by: struct MYSTRUCT { char buf(15]; short S; int I; }; * Select th...
A: Answers: - struct MYSTRUCT MYSTR[8]; Here, struct is the data-type, MYSTRUCT is the name of Struct...
Q: Write statements to do the following: i. Write a loop that computes the sum of all elements in the a...
A: Statement to find the sum of all the elements of an array named A. Declare the array named A w...
Q: What is the purpose of the following query?SELECT isbn, title FROM books WHERE (pubid, category) IN ...
A: The following points are required to understand the sql query: The Select statement- The select s...
Q: What are the properties of confusion and diffusion
A: Confusion area unit defines the properties for making a secure cipher. It continues the secret writ...
Q: use java dr
A: The Given code is: int x = 1, a = 3; if ( a == 1) x += 5; else if ( a == 2) x ...
Q: Which of the following is not a valid SELECT statement?a. SELECT STDDEV(retail)FROM books;b. SELECT ...
A: Valid SELECT statement The SELECT statement returns a result set of records from one or more tables...
Q: Consider the following query:SELECT name FROM instructor WHERE name LIKE % dar_ Which of the instruc...
A: The names “Alimdarr” and “Alimdar” will NOT be included in the result of given query. Hence the co...
Q: Write a program, using a function, that will check a single integer to determine if it is prime numb...
A: As you have not mentioned the programming language in the question, so we have answered this questio...
Q: write a program in c++ that prompts the used to enter 50 intergers and stores them in an array. the...
A: Program code: //include the required header files #include <iostream> #include <iomanip>...
Q: 2. CHANNEL CAPACITY For a case of a telephone line with a bandwith of 3,30oHz, plot the channel capa...
A: Matlab code: %Bandwidth of the telephone line %SNR range is 0 to 60 db B = 3300; SNRdb = 0:1:60; S...
Q: Describe how to declare and manipulate pointer variables.
A: Declaration of pointer variables To declare a variable as pointer follow the steps below: Select a ...
Q: The program randomly generates two "integers between 0 and 9 inclusive" (int1 and int2) and displays...
A: Programming language is missing in the question. So we will answer this program in C++ language. If ...
Q: Given the C code fragments below, show, in the corresponding boxes, the output produced by each of t...
A: EXPLANATION: #define is a directive which allows the definition of macros within the source code. I...
Q: Given the following relational schema of a database library (primary keys are underlined and foreign...
A: The relational algebra for the given query is as follows,
Q: Two processes are concurrently evaluating the expression (a + b) (c + d) - (e/f). Insert wait(S) and...
A: Let us first understand the basics before solving the question: When a process calls “wait(S)”,the ...
Q: Write a program that replaces all occurrences of a word with anew word in all the files under a dire...
A: Program: //include the required header files import java.io.*; import java.util.Scanner; //definit...
Q: A class with 10 students will take 3 exams. Use 3 arrays to hold the scores for each student and ano...
A: Since you are not mentioning the programming language, here we are using Java to complete the progra...
Q: please ese try to answer the questions for networking
A: a) Address space: An address space is the number of addresses that can be used by the particular...
Q: 3.34 LAB: Mad Lib - loops in C++Mad Libs are activities that have a person provide various words, wh...
A: A C++ program for the given criteria is as follows, File name: “main.cpp” #include <iostream> ...
Q: C++Write a program SEGMENT that does the following: Asks the user for his/her birthday using 2 int...
A: Program code: //include the required header files #include <iostream> #include <cmath> ...
Q: 1. what are the advantages of using microsoft windows operating system? 2. What is the Microsoft win...
A: Advantages of Microsoft Windows operating system Microsoft has made several advancements and change...
Q: Combinations refer to the combination of n things taken p at a time withoutrepetition. A recursive d...
A: A combination is the selection of items from a collection. It refers to combination of n things take...
Q: Fin-Click Solutions is a software development company. It is specialized in developing software for ...
A: Hey, since there are multiple questions posted, we will answer two question. If you want any specifi...
Q: 2. A store gives a 10% discount to customers who are at least 65 years old. Using only the instructi...
A: Algorithm: Print the amount of money a customer owes. The customers who are at least 65 years old a...
Q: Given the Bank database that contains the following tables (primary keys are underlined and foreign ...
A: According to the given question we just need to create the table Agency to fetch the data accordingl...
Q: In the first meeting with the representatives in each of the following cases, you are asked to provi...
A: Following are some of the widely used software testing methods: Alpha testing: This testing is don...
Q: What is true about stored procedures and functions?(a) Procedures return value using return statemen...
A: Answer: Procedures do not return value using return statement while functions do. Hence, option “b”...
Q: Write the following method that sorts an ArrayList:public static <E extends Comparable<E>&g...
A: A Java program that contains the method “public static <E extends Comparable <E>> void s...
Q: Which of the following controls is used to verify that an entry on a Web page is within minimum and ...
A: Control used The RangeValidator evaluates the value of an input control to check that the value lie...
What is the output of the code segment below?
int me = 1; int you = me; int them; while (you - me < 10) { them = me + you; System.out.print(me + " "); me = you; you = them; } System.out.print(me);
Program code:
//class definition
class Test
{
//main method
public static void main(String[] args)
{
//variable declaration
int me = 1;
int you = me;
int them;
//loop that iterates until the condition becomes false
while (you - me < 10)
{
//assign the value
them = me + you;
//display the output
System.out.print(me + " ");
//assign the value of "me"
me = you;
//assign the value of "you"
you = them;
}
//display the value of "me"
System.out.print(me);
}
}
output:
Step by step
Solved in 3 steps with 2 images
- #include void main () { int a=5,b=10,c=1; if (a && b>c) { printf("cquestionbank"); } else{ break; } }int j; switch (i) { case 0: j = 2*i; break; case 1: j = -i; break; default: j = -2*i; } What is j if i = 1? What is j if i = -1?Static Variable: a variable whose lifetime is the lifetime of the program (static int x;) Dynamic Variable: It is a pointer to a variable (int *x;) Is this comparison true?
- #include using namespace std; int main() { } int kidsInClass1; int kidsInClass2; int numClasses; double kidsAvgMethodl; double kidsAvgMethod2; kidsInClass1= 3; kidsInClass2 = 2; numClasses = 2; Type the program's output kidsAvgMethodl = static_cast (kidsInClass1 + kidsInClass2) /static_cast (numClasses); kidsAvgMethod2 (kidsInClass1 + kidsInClass2) / numClasses; cout << kidsAvgMethod1 << endl; cout << kidsAvgMethod2 << endl; return 0; =int x1 = 66; int y1 = 39; int d; _asm { } mov EAX, X1; mov EBX, y1; push EAX; push EBX; pop ECX mov d, ECX; What is d in decimal format?int func(int a, int b) { return (a#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0; void calculatechange(int* change){if(*change>0){if(*change>=50){*change-=50;cent50++;}else if(*change>=20){*change-=20;cent20++;}else if(*change>=10){*change-=10;cent10++;}else if(*change>=05){*change-=05;cent05++;}calculatechange(change);}}void printchange(){if(cent50)printf("\n50cents:%d coins",cent50);if(cent20)printf("\n20cents:%d coins",cent20);if(cent10)printf("\n10cents:%d coins",cent10);if(cent05)printf("\n05cents:%d coins",cent05);cent50=0;cent20=0;cent10=0;cent05=0;}void takechange(int* change){scanf("%d",change);getchar();}int main(){int change=0;int firstinput=0;while(1){if(!firstinput){printf("\nEnter the amount:");firstinput++;}else{printf("\n\nEnter the amount to continue or Enter -1 to…#include using namespace std; class fraction{ float d,s; public: fraction() { d=0; s=1; fraction(int a, int b) { d=%3; s=b3; } void print() { cout<Language: Processing //Constants controlling the game.//The number of sides should not be changed since the//graphics only handles from 1-6 dots.//In this version, the number of dice could be varied.final int NUM_SIDES=6; //Sides on the dicefinal int NUM_DICE=5; //The number of dice used //-------- Lab 10 Bronze ------------------------------------- //*****INSERT YOUR LAB 10 BRONZE CODE HERE***** bronze code attached as photo due to word count //***** ALSO CHANGE mouseClicked() IN THE PLACE INDICATED *****//***** TO MATCH THE NAME OF YOUR DICE ARRAY VARIABLE ***** //-------- Lab 11 Bronze ------------------------------------- int[] freqCount(int[] roll){//Count the frequencies of each number (1..NUM_SIDES) in//the given dice roll, returning the result as a array of//NUM_SIDES integers. Note that freqs[0..5] are the frequencies//of 1..6. The dice show 1-6 but subscripts must go 0-5. }//freqCount int maxOfAKind(int[] freqs){//Find and return the largest integer in an array of integers.…SEE MORE QUESTIONSRecommended textbooks for youDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSONC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag…Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill EducationDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSONC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag…Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education