s1. "Smngs are m hing "in" S2 ind= s1. find ("t') (51 print replact (s2,"J")) Which of he tollowing truc? a) the outpur is "Str Jgs arl he th Jg" me ouniut s "Strinăs are me thin" d)S1 has nm value "shngs are m ing"
Q: for (int i-2; i>=3; ) cout<<*: for (char i='c'; i<'f; i++) cout<<i; cout<<i; int i, j: for (i= 1; i…
A: lets analyse the given codes for output: for(int i=2;i>=3;)//here i is intialized to 2, loop…
Q: QI B// find the error and type and then bulid ST ? #include "iostream" void main() { const…
A: let us see the answer:-
Q: end O b.m = vec(1); %3D for x = 1:length(vec) %3D if vec(x) > m m = vec(x); %3D end
A: Please find the answer below :
Q: c++ commas.cpp) Write a program that accepts a 7-9) digit integer and echoes the number with commas…
A: This program can be solved using modulo and divide operation.
Q: Q2: Show the output of the following C++ code: int grades[4][4] = { {75, 88, 90, 65},…
A: A 2D array of size 4 rows and 4 columns is created and initialized In the next statement we have for…
Q: int fun() int a, b, c, result; cout>a>>b>>c; cout<<"The result is "; reutrn result;
A: Given:-
Q: #include using namespace std; int main() { char line; cout << "Enter a string: "; cin.get…
A: cin.get() is used to access array elements. White spaces are also taken into count. normally…
Q: Mortgage bond L, interest rate r =15%. The fixed payments P to pay off the loan over N years is…
A: Given that, For a Mortgage bond L, Interest rate r = 15% Fixed payment…
Q: Dry run the following code. You have to complete the iterations and fill the table: #include using…
A: Given that m and n values are 10, in a single loop, using two indices, if the addition of two index…
Q: int s=0; for(int c=2;c<310;c+%3D2) cout<<c<<" "; HE S+=C;
A: A loop is used for executing a block of statements repeatedly until a particular condition is…
Q: How many times are the following loop bodies repeated? What is the printout of each loop?
A: Given: How many times are the following loop bodies repeated? What is the printout of each loop?
Q: Write a program called StudentTable that prints the below table. Use only print() orprintf(). DO NOT…
A: Using the given hint "printf" the below program was done in C language where "println()" is used in…
Q: plz make this flowchart again its not clear ath all
A: #include <stdio.h> //#include <term.h>#include<bits/stdc++.h> char…
Q: def strPattern(mystr): lenght = len(mystr) mystr1 = "" for i in range(lenght - 1): mystr1 = mystr1 +…
A: Please find the answer below :
Q: int z = 2.2; %3D if(x 3) z = X + y; if(z > -1){ cout <« "z is " + y; } else cout <« "z is + z;
A: int z = 2.2 would result in z = 2 as decimal would be ignored. And instead of + I am taking <<…
Q: Q1) Write a program that Asks for a natural number (Assume that number is n) • Draws the following…
A: sample output
Q: Int t = 1, S=0; do %3D { S=S+ (t*t); t++; } While (t<=10); Cout<<"Sum="<<S<<endl;
A: C++ program
Q: this code does mot run on visual studio what is the soloution ?
A: Given source code is successfully executed and we provide the output screenshot also.
Q: This function should reverse the words in a string. A word can be considered to be any characters,…
A: Function: void reverseWords(char *s){ int len=strlen(s); int j=0; for(int i=0;i<len;i++){…
Q: Q5. The output of the following code is 'tiangong@tiangong.edu.cn'. import re pattern = '[a-zlt ?…
A: Here is the answer below:-
Q: For the following code #include #include int powerof(int base, int pow); int _tmain(int argc,…
A: powerof is a function that takes two parameters base and pow
Q: int x = 8,y; forly 0; y<=3; y++) x/- 2; cout << x +x << endl;
A: In the above code, it has been asked to print , the input, output and the code screenshot along with…
Q: const int SIZE = 7; int studyHours [SIZE]={3, 2, 4, 2, 4, 5, 3}; string day[SIZE] = {"Monday",…
A: answer is Study hour for the student one Wednesday is 4 Reason: indexing in array always starts…
Q: ude batsman char name[20]; foo(struct batsman *t) strcpy(t->name, "rahul"); return t->name; ain()…
A: Here batsman is a structure with p as it's structure variable. Also foo is a function which returns…
Q: unsigned int i; string str; getline (cin, str); for (YYY) { Gout << str.at (i);
A: From above Option B will the correct answer. Explanation: String length function starts with the…
Q: Code uses C++ language If the user chooses to generate a Pentagon o This is a combination of a…
A: In the given statement, we have been asked to print the shape like pentagon Which should contain…
Q: fix my codes!!! #include #include int main() { char name [10][100]; int fc = 0,…
A: Errors in the program: Many variables declared as an integer types. To fix this error:…
Q: #include using namespace std; struct item { int id; float price; } s[50]; int size=0;…
A: Algorithm: for (initialExpression; testExpression; updateExpression){ // body of the…
Q: Please change this program to #include #include #include using namespace std; int main() { char…
A: I have provided correct code with proper output:
Q: Here we have this code #include #include #include long long sum=0,num=2000000; pthread_mutex_t…
A: Definition: Test-and-set modifies the contents of a memory location and returns its recent price as…
Q: Assume the following String s.t.h.a.n,e; int i; h = "Hello"; s = "How are you?" a = "abc"; n= null;…
A: Program: public class MyClass { public static void main(String args[]) { String…
Q: Q5. The output of the following code is 'tiangong@tiangong.edu.cn'. import re pattern [a-zlt_?…
A: Python programs: Please find the answer below with their outputs. How to run these programs? You…
Q: EOFError: EOF when reading a line how can i fix this error
A: The provided program is showing the First there character in the capital format of the given string.…
Q: char human[10e], dog[100]; cout <« "Enter a string: "; cin.getline(human, 100); translate(human,…
A: Given: To replace character from 'w' and 'f' by 'o'
Q: What does the following program segment do? for ( int i = 1; i <= 5; i++ ) { e. for ( int j = 1; j…
A: The inner loop is displaying *4 times and j will be executed 3 times so it will be 3 rows and 4…
Q: Q5: Ask the user to enter five capital letters (A..Z), and check if the letters are in an ascending…
A: According to the provided information: We need to create a program that will take five capital…
Q: Convert this code into c++ please. ASAP NEEEDED
A: #include <iostream>using namespace std; int main() { char s[10]; int a,b,n; cin…
Q: sider the following code listing: alpha: dict[str, str] = { "ai": "ABCDEFGHI" "jr": "JKLMNOPQR",…
A: We are given a Python code in which we are using dictionary. The question asks if we mutate 'a'…
Q: int_tmain(int argc, _TCHAR* argv[]) { int A=35, B=65; if(A>=40 || B<=75) { cout<<"lf will execute";…
A: The given problem is related to C++ programming and operators in the programming. The requirement is…
Q: queen
A: #include<stdio.h> #include<math.h> void putnqueen(int); int okqueen(int, int);…
Q: hter a program in C++ tó réád à šét a set ntegers, the last of which is 55, and calculate the number…
A: Solution :
Q: int a=3, b=5, c=7, d=-2; if (d > 0) cout << a + b *c << endl; else cout << a * b -c<< endl; A -13 B…
A: This question of condition checking or conditional checking. So, let's just talk about this…
Q: 3. Randomly generate a number in range [1, 12]. Map this number to a season: if the number is 3, 4,…
A: The random numbers can be generated in Java using the objects of the predefined Random class. This…
Q: Father's age is stored in variable f_age, and his two childrens' ages are stored in variables clage…
A: Here is the answer :-
Q: fION 15 To assign a double variable d to an int variable x, you writ Ox= d; Ox= (long)d x (int)d3;…
A: This question comes from Programming Language which is a paper of computer science. Let's discuss it…
Q: ount =1 To 5 wateFives(intCount) ulateFives(ByVal intCountV alue As Integ er) Result Aa Integer t=…
A: Introduction Cube of a value is calculated by multiplying the same number three times will result in…
Q: Examine the following code segment. What will be printed? If there are any errors indicate the…
A: Identify the errors in the program: (i) Syntax error: Variable "i" is not declared. (ii)Syntax…
Q: Overload the ~ operator to return the reversed elements of a String: Object's Value…
A: In order to overload the tilde(~) operator, create a class and create the overloading function:…
python
![Conside h ilomry code
L s1 "Smings are mi ming
S2 -
"in
ind= s1. findd("t')
print (s1. replau (52, J"))
Which of he tollowing s te!
a) the outpur is "Str Jgs arl he thJg"
b) m outpur. S StrJgs are m mng
he ounut s "Smings are me Thing".
d)sI has m value "shings are me hing
er s1 has me value "Str Jas are the th Jay
f) s1 has m value "ShJgs are he thing
)ind has he value I
ind has the value 12
i)ind has me value [1,22,16]](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7949c58c-a906-41a4-97ee-5d0bfe78cf99%2F339db6d6-73c3-4d2b-903a-a2ecb98387e7%2F1p6yv4h_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- Considr The follo wng [9,7,5] aLIst for val ニ aLIst: in val-va1-2 pint CaList) %3D A when this lodr whar is he is nn' me output a) [a] b) [9,7,5] c) d) [T,5,3] 21Q 3 Computer Science Modify the permutation code such that the program can handle finding unique passwords of string that contains potentially duplicate letters. How many unique passwords are there that use all the letters of "eelrstt"?KB/S ull Y: موعد التسليم غدًا Ass5:: Write a C++ program code to find the sum of secondary diagonal of a square array of size 3x3 ۱۰ نقاط و تعليقات ل لفئة تم تعيينها عملك أضف تعليقك الخاص
- Launch Meeting - Zoc X S Launch Meeting Zoc X Is Everyone Really Equ x E Reading Response 6 OCh7: Oppression & Se x SThank you for downlc X s.ucsc.edu/courses/46018/assignments/294537 2. are_anagrams This function takes two strings and returns True if they are anagrams of one another, which is to say that they contain the same letters, possibly rearranged, ignoring spaces and case. You can assume that the two input strings contain only letters and spaces. Sample calls should look like this: >>> are_anagrams ("bimmy is my friend", "My Bird Fey Minims") True >>> are_anagrams ("bimmy is my friend", "hello everyone") False >>> are_anagrams ("internet anagram server", "I rearrangement servant") True >>> are_anagrams ("internet anagram server", "internet anagram server") True 3. find_movies_by_director 4:11 PM This function takes a list of tuples (representing movies) and a string (representing a name of a director) and returns a 65°F Sunny 11/2/2021 e searchThe set in ( a) and in (a?)" (a)aaa (a?)'+( a)" (a )'aa +( a) aaaa NoneHow Mang le ss poritive integers than |00 are ^) divisible by 7? b) divisible 7 or 1? by c) divisible by 7 and Il? d) divisible U? by neither 7 nor
- Mutiple Answers Which of the following matches regexp /[a-zA-Z]*[^,]=/a) Butt=b) BotHEr,=c) Ampled) FIdDlE7h=e) Brittle =f) Other.= Please Answer With Detailed Explanation!A simpie application is required to cradc mu'tip'e chcice lest. "he test conta ns 40 2. cuesl ons :aker by "00 studerts. a. Write C++ statement to declare: a two-driensional array that will s:ore answers for 40 multiople choice questicns answered ty 100 students. a singie-dimensicnal array that will store answer screme for 40 mu tipie choice questions. b. Based i declaration in partla) wite a C++ code fragment o promp: answers for 40 multiple cho ce questions answered by 100 students, and prompt for the answer scheme. Write a C-+ code fragmert to calculate tre mark for cach student in percentage format and determine Ihe st.Jdent with the highest mark.varinouputs.m x TEST.m x+ function a = varinouputs (varargin) Bfor n=1:nargin if sum (size (varargin(n})> s=s+varargin{n): - 2 sa varargin(n) > 3 end end as disp(Inargin nargout]):| Q1: Answer all of the following (1-10). 1- We can use neip and 00C commands/functions to get information on how to use a function in MATLAB. 2- MATLAB variable names must start with a letter 3- An example of a built-in variable in MATLAB is pi or i 4- The result of the following command A=2*(3+2)/3^-1 in MATLAB is: A 30 5- If B-5+6i, then B' and transpose(B) commands are the same. True or False? Faise 6- Let a=[2, 4, 6] and b=[5; 2; 6]. Which of the following operations would not give an error? a) a+b; b, d, e and f b) a'-b; c) a.*b; d) b*a; e) a./b'; f) a.^a; 7- If C-[1, 5, 6, 10, 3, 8], then C(1)=, 8- If D-[1, 2, 3; 4, 5, 6; 7, 8, 9], then sub2ind([3 3], [3 2], [2 2])= 5 6 D(2,3)=. D(end-2)=_3 9- The result of the following command E=0.1 b) evennumber-numel(A(mod(A,2)so)); Q3: Define a 2-D array (matrix)…Apex - SalesforceIn this Assignment i required you to solve my doubt reated to Convertinga date from string in the below format"dd-mmm-yyyy" - ("20-may-2021") In a problem i am getting the date stringin the above formate and you need to convert it into a Date type. I tried the "Date.parse('String')", but i am not able solve it. Please help me to solve it ASAP Salesforce APEX. Include the output ScreeSEE MORE QUESTIONS
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)