Find an Online Tutor Now

58 Answered Questions for the topic c programming

10/19/20

please write this code in C without using loops , for ,if ,while and any other functions :

I want to write a c code to change a binary number to decimal and octal without using any loops and if and for and while . for exp : 00101110 and give 115 and 193and then specify the number is odd... more
C Programming

10/19/20

Im having trouble solving in C language

(1) Create three files to submit: ItemToPurchase.h - Struct definition and related function declarations ItemToPurchase.c - Related function definitions main.c - main() function Build the... more
C Programming

10/18/20

C Programming function on hash tables to get all tuples

// Traverse the hash table pointed to by "ht" and store// all the key-value tuples encountered in the hash table in the// array "tuples". The capacity of the array "tuples" is "max".// Thus, the... more
C Programming

10/13/20

6.32 LAB: Even/odd values in an array

Need help answering this lab for C programmingWrite a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with... more

09/05/20

please convert this c++ program to c :

// C++ program to implement division with large // number #include <bits/stdc++.h> using namespace std; // A function to perform division of large numbers string longDivision(string number,... more

09/04/20

please complete this code :(same variables )

hi this is my code to multiple two large numbers can you please complete it so it divides two numbers too (without changing the variables in the code and please be sure it compile correctly with... more

08/31/20

please write a C program to :

we have a list of student's firstname [80]lastname[80]student's number[11]grade (float)a program to :add a new student to the list remove a student from the list search a student by student... more

08/30/20

please complete this code :

hi this is my code to multiple two large numbers can you please complete it so it divides two numbers too (without changing the names) :#include <stdio.h>#include <stdlib.h>#include... more

08/28/20

C programming :

please write a program to multiply and divide two numbers with 50 digits.

08/28/20

C programming :

please help me write a program to get numbers until user enters "-1" then prints all the numbers in reverse order .for exp :121445123-1prints :-1 123 45 14 12PLEASE‌ use recursive functions if... more

08/25/20

c programming :

please help me write a program to get numbers until user enters "-1" then prints all the numbers in reverse order .for exp : 121445123-1prints :-1 123 45 14 12

08/25/20

c programming :

i have written this program in C to get " n" (number ) first and then get "n "strings , compare the length of all strings and print the biggest one but the program wont compile please help... more
C Programming

06/26/20

Consider the following code What does g(1, 3) evaluate to?

int g (int x, int n) { for (int i = 0; i < n; i++) { if (i % 2 == 0) { x *= i + 1; continue; } x--; if (x == 0) { break; } } return x;}
C Programming

06/26/20

For the following code What does f(7) evaluate to?

int f (int n) { int ans = 0; for (int i = 1; i < n; i++) { if (i < n/2) { ans -= i; } else { ans += i; } } return ans;}
C Programming

06/23/20

For the following code What does myFunction(5) evaluate to?

int myFunction(int n) { int x = n * 2; int y = (x + 1) % 3; return y - x;}
C Programming

05/25/20

Karel struct programming problem

#include <iostream> #include <string> using namespace std; const int MAX_ROW = 14; const int MAX_COLUMN = 14; enum Direction { NORTH, EAST, SOUTH, WEST }; struct Karel... more
C Programming

05/25/20

Problem regarding star 2n sequence

StarsWrite a program that prints a diagram of the function 2n , as follows.***************************************************************... more
C Programming

05/25/20

Problem regarding Newton Last guess and Next guess.

Square RootWrite a function named squareRootFinder to determine the square root of a number. The square root of a number can be approximated by repeated calculation using the formulaNG = 0.5(LG +... more
C Programming

05/25/20

Problem with star sequence 2n

StarsWrite a program that prints a diagram of the function 2n , as follows.***************************************************************... more
C Programming

05/25/20

ArraySum problem from c++ programming

Write an arraySum using recursion. This should gives out total sum of numbers within the array with the help of recursion!!!!!!!!!!!!!!!THIS PROGRAMMING SHOULD BE IN C++ PROGRAMMING THAT BEGINS... more
C Programming

05/25/20

Problem with palindrome sequence for c++ programming

Write a program to check whether a string is palindrome or not.This program should use recursion!!! AND THIS SHOULD BE IN C++ PROGRAMMING BEGINS WITH #include<iostream> and then using... more
C Programming

05/15/20

This question is based on constructors and accessors in c programming!!!!

Car classWrite a class named Car that has the following member variables:* an int that holds the year the car was made* a string that holds the make of the car.* an int that holds the car’s current... more
1 3

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.