int answer ; int number4 = 15, number8 = 10, number10 = 2; answer = ( number4 * number8 ) * number10;
Q: int mystery(int number) { if (number =3= 0) return number; else return(number + mystery(number -…
A: answer is given below in pic.
Q: #include int main () int TOTNUM, NUMBER, SUM, INDEX, PRODUCT, SMALLNUM, BIGNUM; float AVERAGE; SUM…
A:
Q: public static int sum(int low, int high) { if (low > high) { return 0; } if (low % 3 == 0 && low % 2…
A: public static int sum(int low, int high){ int total=0; while(low<high){…
Q: What will the value of the result variable be after the code segment below has been run.…
A: Given: What will the value of the result variable be after the code segment below has been run?…
Q: #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0;…
A: The given c program is to calculate the change. This program prompts the user to enter the value…
Q: int main ()( int number; cin >> number; FindNumber (number, 0, 8); return 0;
A: 1)number =7 highvalue=8 lowvalue=0 midvalue=4 now, midvalue<number so, first z will print then,
Q: The program segment has errors. Find as many as you can. // This code should average a set of…
A: Step 1:- Program:- #include <iostream>using namespace std;int main(){int numCount,…
Q: What will the following program segments display?A) for (int count = 0; count < 6; count++)cout…
A: GIVEN: What will the following program segments display?A) for (int count = 0; count < 6;…
Q: include int main() { int M; printf("Enter the number of chairs you want to…
A: As your question , i run the code i got two issue in the given code:…
Q: Time -hour:int -minute:int -second:int hour minute second [0, 23] [0, 59] [0, 59]…
A: public class TimeMain { public static void main(String[] args) { Time t1=new…
Q: Your submission should answer the following questions about this program: • There are at least two…
A: The code is givne below:-
Q: Q2)Write a program that asks the user to type two numbers x, y and an arithmetic symbol s. Depending…
A: The Java code is given below:
Q: //Below is the starting code for this homework assignment// #include struct employees {…
A: To take input in the readEmployee function we use the arrow operator to take the input (->) It…
Q: What will the value of the result variable be after the code segment below has been run.…
A: We have to find the value of result variable using the following information given: bool result ;…
Q: #include int pqr(int, int); int main() { int x=pqr(20,2); printf("%d",x); return 0; int pqr(int…
A: Well Lets understand the function pqr int pqr(int x ,int y){ if(x==0) return 0; else…
Q: Question 4: (Same-number subsequence) Write an O(n) program that prompts the user to enter a…
A: According to the Question below the Complete Program: Program Output:
Q: What will the value of the answer variable be after the code segment below has been run. int…
A: answer is initialized as int number1 =93 number6 =4 answer =93/4 / operator prints the quotient
Q: i am getting whitespace error on output : I-290 is auxiliary, serving I- 90 going east/west. it…
A: Summary after fixing the code, I have provided PYTHON CODE along with SCREENSHOT OF CODE…
Q: * If MyNumber = 6.8, what is the value of ?Int(My Number * 4^2)
A: MATLAB doesn't have the Int() function as described in the question, instead Matlab has int8 and…
Q: #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0;…
A: The algorithm to calculate the amount of change returned is given below: - Algorithm: - Step1:…
Q: int function(int num1, int num2) { if (num2 == 0) return 1; if (num2 % 2 == 0) return function(num1…
A: the question tells us to trace the execution of the program. the program basically is recursive…
Q: max = value2; %3D int main () int max = 03; %3D maxValue (1, 2, тах); cout << "max is " << max <<…
A:
Q: The value of b in below code ;int a=3,b :2=( a==1? a:b) ;cout <<b
A: Given a=3 Given expression a==1?a:b=2; This expression includes ternary operator. If a==1, left hand…
Q: What is the value of the variable count after the function has been called 2 times? void myPrint(…
A: To solve this problem, first of all you need to know what is static variable. Let’s start the…
Q: What will the value of the answer variable be after the code segment below has been run. int…
A: Given Code segment int answer; int number4 = 244, number6 = 37, number11 = 1; answer = (…
Q: int main() int i = 3, * j, k; %3D j = &i; k = i; j- 10; cout << i * *j* i+ *j*k; return 0;
A: The output of the given question has been explained and has been given in the next step.
Q: Your submission should answer the following questions about this program: There are at least two…
A: The answer is given below:-
Q: #include int main(){ int query_no, flag=0; scanf("%d",&query_no); while(query_no>0)…
A: I give the given code in C along with output and code screenshot
Q: What will the value of the answer variable be after the code segment below has been run.…
A: initialize answer to bool number3 =5 number5 =30 if number3<= number5 5<=30 true return 1
Q: #include int main() { int score = 70; int attendance = 1; int pass_the_course = 0; if (attendance…
A: To do: Fill the blanks of code
Q: #include struct employees { char name[20]; int ssn[9]; int yearBorn, salary;…
A: #include <stdio.h> struct employees { char name[20]; int ssn[9]; int yearBorn,…
Q: bool result ; int number3 = 17, number7 = 33;
A: bool result ; int number3 = 17, number7 = 33; result = number3 > number7 ; number3 =…
Q: #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0;…
A: What works: Input works if it is in the range of 5 and 95 included 5 and 95. Input works if it is…
Q: Question 10 The default data type for a sequence object is O a Decimal Char b. Varchar Oc. Int
A: The default data type for a sequence object is given below
Q: #include int main () int a=5 b3D3%3B int fin mark370; float c= 5.3; Printf ("Hi %d", (a+bc) ) ;…
A: There is a lot of syntax error. Below is the fixed program:
Q: What will the value of the solution variable be after the code segment below has been run. int…
A: The problem is based on the basics of arithmetic operators in programming languages.
Q: #include int main () int TOTNUM, NUMBER, SUM, INDEX, PRODUCT; float AVERAGE; SUM - e; INDEX = e;…
A: We can change this C code by simply changing some variables and optimizing the lines of code, like…
Q: What will the value of the answer variable be after the code segment below has been run. (round to 4…
A: Given Code segment float answer; int number4 = 86, number6 = 43; float number10 = 33.0552;…
Q: in the following code there is * #include #include int man() { int B=25; int *p; //b memory…
A: #include<iostream>#include<conio.h> int man(){ int B=25; int *p; //b memory…
Q: What will the value of the answer variable be after the code segment below has been run. int answer…
A: The answer is an integer variable which is not initialized. The other integer variables - number3,…
Q: What is wrong with this code? int Money4Me( int dollars ) { int pennies, coins; coins =…
A: Solution :
Q: What is the final value of the variablenum given the following code fragment? int row - 10; int col…
A: Answer: The correct answer to the given question is-"51".
Q: What will the value of the answer variable be after the code segment below has been run. int…
A: EXPLANATION: Given that the variables answer, number1 and number8 are of integer data type. The…
Q: What will the value of the result variable be after the code segment below has been run.…
A: result is Boolean value either it will 0 or 1 result will be one if either of two statement is true…
Q: What will be displayed by the following code? int k = 0; while(k <= 10) {k++;} cout << k << endl;
A: I have given an answer in step 2.
Q: 1) 2) 3) int main) int main) int main() first 64): f.show(): return 0 1D3 d1(6k point d2(3,2):…
A: #include <iostream> class first{private: int f;public: // constructor first(int f) { // hold…
Q: #include<stdio.h>#include<stdlib.h> int cent50=0;int cent20=0;int cent10=0;int cent05=0;…
A: All program starts with the main() function, so starting with the main(). Since the amount is an…
Q: #include int main() double score; scanf("%5.5lf", &score); return 0;
A: Scanf() is built library function which is used to accept and store value from user. The syntax is…
Q: Given the following struct: typedef struct { char surname[MAX], name[MAX]; int id; float avg; //…
A: Hi, i have implemented the mostFrequent(student_t s[],int n) and printStudents(student_t s[],int…
Q: tinclude #include using namespace std; const int QUARTERS 4; // Write the prototype of…
A: PROGRAM CODE: #include <iostream>#include <iomanip> using namespace std; const int…
hat will the value of the answer variable be after the code segment below has been run.
int answer ;
int number4 = 15, number8 = 10, number10 = 2;
answer = ( number4 * number8 ) * number10;
Step by step
Solved in 3 steps with 2 images
- What will the value of the answer variable be after the code segment below has been run. bool answer ; int number3 = 5, number5 = 30; answer = number3 <= number5 ;What will the value of the result variable be after the code segment below has been run. int number1 = 121;int answer = 133; if( number1 > 55 ){ answer -= number1 ;}else{ answer += number1 ;}What will the value of the result variable be after the code segment below has been run. int result; int number3 = 48, number7 = 14; result = number3 * number7;
- What will the value of thesolution variable be after the code segment below has been run. int solution = 5; int number58 = 13, number70 = 7; solution *= number58 - number70 ;What will the value of the solution variable be after the code segment below has been run. int solution; int number3 = 7, number9 = 3; solution = number3 % number9;What will the value of the result variable be after the code segment below has been run. bool result ; int number1 = 9, number5 = 22; result = number1 < number5 ;
- *What will the value of the result variable be after the code segment below has been run. int number2 = 40;int result = 46; if( number2 <= 84 ){ result *= number2 ;}What will the value of the answer variable be after the code segment below has been run.(round to 4 decimal places) float answer; int number4 = 86, number6 = 43; float number10 = 33.0552; answer = ( number4 - number6 ) + number10;What will the following Code segment print on the screen? int P = 30; int Q = 20; System.out.println("Your Total purchase is \n" + (Q*P) +" Dollars");