Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

5. Float Galore

by CodeChum Admin

We've been dealing with integers too much, it's time for float to shine!


Instructions:

  1. Input five float numbers.
  2. Print out the float numbers in one line, separated by spaces, and make sure you only print up to 1 decimal place.
  3. Add the first four float numbers and check if their sum is greater than the fifth float number. Print out "Yes" if they are.

Input


1. First float number

2. Second float number

3. Third float number

4. Fourth float number

5. Fifth float number

Output

The first five lines will contain message prompts to input the five float numbers.

The next line contains the inputted float numbers.

The last line contains "Yes" if the condition is true.

Enter·the·first·number:·1.1
Enter·the·second·number:·1.2
Enter·the·third·number:·1.3
Enter·the·fourth·number:·1.4
Enter·the·fifth·number:·1.1
1.1·1.2·1.3·1.4·1.1
Yes

. Are Integers Created Equally?

by CodeChum Admin


It's time to find out if something is true or false. Let's test your capabilities by creating a program that checks if two integers are equal!




Instructions:


Input two integers in one line.

Print the two integers in one line, and separate them with a space.

Print a string message "Equal" on a new line, if both inputted integers are equal.

Input


1. First integer


2. Second integer


Output


The first two lines will contain message prompts to input the two integers.

The next line will contain the inputted integers.

The last line will contain a string which is the result, if the condition were true.


Enter·the·first·integer:·5

Enter·the·second·integer:·5

5·5

Equal


Input the gender of 10 students in the form of m, M or f, F. Display how many students are male and female. Use for loop and while loop.

Convert a ten digit number to a string following the rules

Andy has the word W and he wants to print the unique characters in the word in the order of their occurrence.write a program to help Andy print the unique characters as described above.


NOTE : consider lower and upper case letters as different


Input

The input is a single line containing the word W.


Output

The output should be a single line containing space separated characters.


Explanation

In the example, the word is MATHEMATICS

The unique characters in the given word are M, A, T, H, E, I, C, S, in the order of occurrence.so the output should be M A T H E I C S.


Sample Input1

MATHEMATICS

Sample Output1

M A T H E I C S


Sample Input2

banana

Sample Output2

b a n


Write a program to print a parallelogram pattern with * characters. The size N represents the length (the number of * characters in each line)& breadth ( the number of lines) of the parallelogram.

The slope of the parallelogram T represents the number of extra spaces a line should have in the beginning compared to its next line. The last line of the pattern does not have any spaces in the beginning.


Explanation:

Given N=3 and T=2

Each line should have 3 star(*) characters.

The last line should have 0 spaces at the beginning.

Each line has 2 extra spaces characters when compared to its next line.


Sample Input1

2

2

Sample Output1

  **
**


Sample Input2

3

2

Sample Output2

    ***
  ***
***

program to check whether a no is palindrome or not using friend function.

Program to print fibonacci series using classes and objects

Write a program to print a parallelogram pattern with * characters. The size N represents the length (the number of * characters in each line)& breadth ( the number of lines) of the parallelogram.

The slope of the parallelogram T represents the number of extra spaces a line should have in the beginning compared to its next line. The last line of the pattern does not have any spaces in the beginning.


Explanation:

Given N=3 and T=2, each line should have 3 star(*) characters.

The last line should have 0 spaces at the beginning.

Each line has 2 extra spaces characters when compared to its next line.


Sample Input1

2

2

Sample Output1

 **
**

Sample Input2

3

2

Sample Output2

  ***
 ***
***

: Write a program to overload operators in the same program by writing suitable operator friend 

functions for following expression:

O7=((O1>=O2) +(O3 && O4) *(O5<O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class 

“overloading”, and this class is having one integer data member]


LATEST TUTORIALS
APPROVED BY CLIENTS