Entries by Munene david

1.How to make a function in C that accepts one input number

1.How to make a function in C that accepts one input number and returns a double number. The themes for the functions should be : -Squares the number and returns the result. For example, if 12.1 was entered then 146.41 would be returned. -Provide both your C code and an example call to the C […]

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

how would i create a function in C that accepts one input number

how would i create a function in C that accepts one input number and returns a double number. The themes for the functions should be one of the following:  Calculates 3.14 times of the square of input number. For example, if 2 is input then 12.56 should be returned. (e.g. 3.14*2*2 = 12.56)  […]

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Hello. I have found java code that I am trying to compile and get

Hello. I have found java code that I am trying to compile and get to run, however it is giving me the error “No main class found”. I know I need to include a main class, but I do not know where. Can anyone help? I am copy/paste my code below: package stateinfo; import java.util.Scanner; […]

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Write short program that uses a for loop to populate an array

Write short program that uses a for loop to populate an array. The array can store up to 10 integers. Modify the code slightly to create bug that would prevent the code from compiling or even better from running correctly. Be sure to describe what the code is designed to do. The following code needs […]

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"