-
-
Logic and Design
Number Analysis Program
Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data:
• The lowest number in the array
• The highest number in the array
• The total of the numbers in the array
• The average of the numbers in the array
-
Print Sum of Digits
Write a function to print sum of the digits in a given integer n without converting it to String. For example : if n = 1234 the function should return 1+2+3+4 = 10 if n = 15 the function should return 1+5 =6 if n = 5 the function should return 5.
Generate no.between 32 to 99
Consider the following number
45*45=2025 and
20+25=45.
Write a program to generate no.between 32 to 99 that satisfy the above problem.Secure Language
Which Language is more secure - Java or C?
Flow
Number analysis program design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: the lowest number in the arraythe highest number in the array the total of the numbers in the arraythe...
Functions
1.One foot equals 12 inches. Design a function named
feetTolnches that accepts a number of feet as an argument, and returns the number of inches in that many feet. Use the function in a program that prompts the user to enter a number of feet and then displays the number of inches in that many feet.
2.Rainfall Statistics
Design a program that lets the user enter the total rainfall...Solve this Programming Task in language of preference
TASK 1: Programming Task in language of preference
Imagine a customized computer keyboard with following layout :
ERTYU1
DFGHJ2
CVBNM4
The keyboard only has above set of keys in the panel , For a given set on input word you need to output the path taken to press them , for example :
Consider the input word is : RFGM
the output...Analysis Number Design Flow chart
Number analysis program design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: the lowest number in the array,the highest number in the array and the total of the numbers in the array...
Arrays
Design a flow chart for program that displays the number of days in each month. the program should have two parllel arrays 12 element string array that is initialized with the names of the month, and 12 element integer array that is initialized the number of days in each month.
Efficient algorithm to print count and possible string outcomes of a given input string
Write an Efficient algorithm to print count and possible string outcomes of a given input string by retaining order and considering all characters during this process
Problem: given a input string as "0000" and following input scheme for the zeroes, print the possible outcomes by retaining order of the characters. input scheme: a "0" b "00" c "000" d "0000" example: "aaaa" is one string...Reverse a sting using loop in php
Hi , when I reverse a string using loop in php like
php$str="navin";
$rstr="";
$len=strlen($str);
for($i=$len-1;$i>=0;$i--)
{
$rstr.=$str[$i];
}
echo $rstr;
It work but I want to know why we use .dot(.) $rstr.=$str[$i]; over here thanks in advanceIf else in c++
Hi guys ,
in c++ programming (if) when we use "=" isntead of "==" compiler behave the same ... Do u know why compiler Behave like this ??
TnxSamba Attributes
What are the attributes of Samba?
Cass to Track Number of Instances
Design a class that will keep track of number of instances that have been instantiated. Make this class thread safe.
Case sensitive
Why the programing language are case sensitive as is not for user friendly.
Interface in C#
If the interface in C# only contains the declaration of the methods and we need to define those methods in the class, then Why we use the interface..???
Command Line Arguments
What is Command Line Arguments?What are its uses?Where we have to use this?
It looks like you are using an AD Blocker!
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Ans