Join Regular Classroom : Visit ClassroomTech

Search Results for: automata fixing

Automata Fixing

Problem 41:The methods GetDigitSum(intarr[]) of class DigitSum accepts an integers array arr it is supposed to calculate the sum of digits of the even of the smallest elements in the input array it returns 1 if the calculated sum is even and returns 0 otherwise. However there is a compliation error in the code your

Automata Fixing Read More »

Automata Fixing

Problem 31:Input:5Expected output:aababcabcdabcdetestcase 2:input:1Output:A #include void printcharecterpattern( int num) { int i,j,value=1; char ch = ‘a’; char print = ch; for(int i=1;i<=num;i++,printf("n")) { ch=print; for(j=1;j<=i;j++) printf("%c",ch++); } } int main() { int num; scanf("%d",&num); printcharecterpattern(num); } Solution in C #include<stdio.h> void printcharecterpattern( int num) { int i,j,value=1; char ch = ‘a’; char print = ch;

Automata Fixing Read More »

Automata Fixing

Problem 21:The function findMaxElement(int *arr1,int len1,int *arr2,int len2) accepts twointeger arrays arr1,arr2 of length len1,len2 respectively.It is supposed to return the largest element in both the input arrays. Another function sortArray(int *arr,int len) sorts the input array arr of length lenin ascending order and returns the sorted array. Your task is to use sortArray(int *arr,int

Automata Fixing Read More »

Automata Fixing

Problem 49 Median : Solution in C float median(int size,int *inputList) { int start_index=0; int end_index=size-1; float res=-1; if(size%2!=0) { int med_1=size/2; int med_2=(size/2)+1; res=((float)quick_select(inputList,start_index,end_index,med_1)); } else { //enter your code here res=((float)quick_select(inputList,start_index,end_index,med_1)+(float)quick_select(inputList,st art_index,end_index,med_2))/2; } return res; } Join Our Telegram Group Visit our Facebook Page Problem 50 Matrix Sum : Solution in C int

Automata Fixing Read More »

Automata Fixing

Problem 11:The function/method printFibonacci accepts an integer num, representing a number. The function/method printFibonacci prints first num numbers of fibonacci series.For example,given input 5, the function should print the string “01123”(without quotes). It compiles successfully but fails to give the desirable result for some test cases. Debug the code. void printFibonacci(int num) { long num1=0;

Automata Fixing Read More »

Automata Fixing

Problem 1 : The function/method count Digits return an integer representing the remainder when the given  number is divided by the number of digits in it.The function/method count Digits accepts an argument-num,an integer representing the given  number.The function/method countDigits compiles code successfully but fails to get the desirable result  for some test cases due to

Automata Fixing Read More »

Automata Fixing

In any program, there are three types of errors.1. Syntax Error that is for violation of grammar2. Logical Errors that is for errors occur during coding process.3. Run Time Errors that occurs when we attempt to run the ambiguous instructions. Find out the errors Explanation:Here in the 6th line ‘b’ is  used but it is

Automata Fixing Read More »

Unlocking Innovation and Diversity: Accenture HackDiva Empowers Women in Tech with Cutting-Edge Solutions – codewindow.in

Hot Topics About Hack Diva At Accenture, we believe in creating a sense of belonging for all by working together to build a culture of equality so everyone can perform at their best, advance, and thrive. 2024 marks the 20th year we celebrate International Women’s Day – an opportunity for us to have open, honest, and meaningful

Unlocking Innovation and Diversity: Accenture HackDiva Empowers Women in Tech with Cutting-Edge Solutions – codewindow.in Read More »

QA Engineer Opportunities at Siemens Company: Apply Now – codewindow.in

Hot Topics Oracle Job Title: Software Developer Last Date To Apply: Not Specified (Apply Link at the end) ASAP, will end as soon as a certain number is reached Experience Level: Candidate should have a minimum 0 – 2 years of  experience. Job Location: Bangalore Salary: Not Specified Eligible Batches: Not Disclosed Trending Today Unlocking

QA Engineer Opportunities at Siemens Company: Apply Now – codewindow.in Read More »