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

C# VISUAL BASIC


Manny Management Consulting charges P2,000 for training fee 

and P150 per person for registration fee. Create an application 

to help the accountant make a billing statement showing the 

customer's name, address, number of participants, training fee, 

registration fee and total amount due.



5. String[1] Check


by CodeChum Admin


As long as you haven't forgotten about indexing, you'll be just fine.


Instructions


Input three strings in different lines.

Print out "Same" if all of their 2nd characters are the same, else print out "Not the Same".


Input


Three lines containing a string on each.


Cry

Priest

Fry


Output


A line containing a string.


Same


3. Sum Cubes


by CodeChum Admin


The square of an integer refers to the result of multiplying the integer with itself once. While the cube of an integer refers to the result of multiplying the integer with itself twice. As long as you know that, you could easily solve this!



Instructions:


Input three integers and compute the cubes of each of them.

Check if the sum of the cubes are positive. If it is, print out "Positive", and if not, print out "Negative".


Instructions


Input three integers (negative, positive, or zero) and compute the cubes of each of them.

Check if the sum of the cubes are positive. If so, print out "Positive", and if not, print out "Negative".


Input


A line containing three integers separated by a space.


1 2 3


Output


A line containing a string.


Positive


Input The input will be three lines contain O's and X's separated by space. Output The output should be a single line containing either "Abhinav Wins" or "Anjali Wins" or "Tie". Explanation For example, if the input is O X O O X X O O X as three of O's are in vertical row print "Abhinav Wins". Sample Input 1 O X O O X X O O X Sample Output 1 Abhinav Wins Sample Input 2 O O X X X O X O O Sample Output 2 Anjali Wins
Numbers in String - 1 Given a string, write a program to return the sum and average of the digits of all numbers that appear in the string, ignoring all other characters.Input The input will be a single line containing a string.Output The output should contain the sum and average of the digits of all numbers that appear in the string. Note: Round the average value to two decimal places.Explanation For example, if the given string is "I am 25 years and 10 months old", the digits of all numbers that appear in the string are 2, 5, 1, 0. Your code should print the sum of all digits(8) and the average of all digits(2.0) in the new line. Sample Input 1 I am 25 years and 10 months old Sample Output 1 8 2.0 Sample Input 2 Tech Foundation 35567 Sample Output 2 26 5.2
Numbers in String - 1 Given a string, write a program to return the sum and average of the digits of all numbers that appear in the string, ignoring all other characters.Input The input will be a single line containing a string.Output The output should contain the sum and average of the digits of all numbers that appear in the string. Note: Round the average value to two decimal places.Explanation For example, if the given string is "I am 25 years and 10 months old", the digits of all numbers that appear in the string are 2, 5, 1, 0. Your code should print the sum of all digits(8) and the average of all digits(2.0) in the new line. Sample Input 1 I am 25 years and 10 months old Sample Output 1 8 2.0 Sample Input 2 Tech Foundation 35567 Sample Output 2 26 5.2
First Perfect Square Given two integers (M and N), write a program to print the first perfect square in a given range.Input The first line of input will contain a positive integer (M). The second line of input will contain a positive integer (N).Output The output should be a single line containing the first perfect square in a given range.Explanation For example, if the given numbers are M is 4 and N is 16, the perfect squares from 4 to 16 are 4(2 * 2), 9(3 * 3), and 16(4 * 4), as the first perfect square is 4. So the output should be 4. Sample Input 1 4 16 Sample Output 1 4 Sample Input 2 5 8 Sample Output 2 No Perfect Square
String Rotation Given two strings(S1 and S2), write a program to determine if a string S2 is a rotation of another string S1. Input The first line of the input will be a string S1. The second line of the input will be a string S2.Output If string S2 is a rotation of another string S1, print number of right rotations made by string S1 to match the string S2. Otherwise, print "No Match". Where right rotation means all elements are moving towards the right side by one place where the last element will be placed in the first place example, one right rotation of "python" is "npytho" For example, if the given strings S1 and S2 are "python" and "onpyth", The first right rotation of s1 is "npytho" which is not equal to string S2"onpyth" The second right rotation of s2 is "onpyth" which is equal to string S2 "onpyth". So output 2 Sample Input 1 python onpyth Sample Output 1 2 Sample Input 2 Python Python Sample Output 2 0

Hey, I hope you are well.

Can you explain me the conversion from for loop to while loop vice versa in Python and Java? (As well as giving the examples of Recursive Function or Fruitful Functions)


The electoral petition of 2021 was aimed at determining the winner of the 2020 election. The rule is that the winner of an election in Ghana must obtain at least 50% +1 of the valid votes cast. a. Explain the concept of function in C++

b. Declare a function called Greatest, your function should have five arguments 3 i. The two names of the presidential candidates with the most votes ii. Total number of votes for each of them. iii. Total valid votes cast.

c. Your function should declare that candidate that had at least 50%+1 of the valid votes cast as winner.

d. Explain the logic behind the code


LATEST TUTORIALS
APPROVED BY CLIENTS