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

Write a program that prompts the user to input an integer



between 0 to 35. It the number is less than or equal to 9, the



program should output the number; otherwise, it should output



A for 10, B for 11, C for 12, …, and Z for 35. (hint: use the cast



operator, (char)(), for numbers >+ 10.

Create 3 arrays that will hold 5 employee information:


Name


Address


Email


For example: empName[0], empAddress[0], empEmail[0] should belong to the same employee.


-----------------------------------------------------------------------------------------------------------------------------------------------------


We will output the employee's information by using int variable as index.


The user will select what index will be printed on the console so you need to use the java.util.scanner.

Create 3 arrays that will hold 5 employee information:


Name


Address


Email


For example: empName[0], empAddress[0], empEmail[0] should belong to the same employee.


-----------------------------------------------------------------------------------------------------------------------------------------------------


We will output the employee's information by using int variable as index.


The user will select what index will be printed on the console so you need to use the java.util.scanner.

Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong".


It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.


Now, will you take on this task?


Input

A line containing four one-letter strings separated by a space.

c·O·D·y

Output

A line containing a string.

Correct




There are different kinds of numbers, but among them all, the most commonly used numbers in our daily lives are those positive ones. So, I only want you to count all the positive numbers from the 4 inputted values and print out the result.


Go and search for the positive ones among these four!


Input

A line containing four numbers (may contain decimal places) separated by a space.

2·-4·3.6·1

Output

A line containing the total number of positive integers.

3





Format the multiplication table exercise we did in class to include headers. All numbers and lines should be generated with loops. All columns are 4 characters wide, just like in class. The final output should look like this: 


This program will read a bunch of numbers from an external file (numbers.txt) and calculate their total and average. In addition, the total will be multiplied by an integer that is supplied by the user.

 

** IMPORTANT: The numbers are included in your starter code as a separate file (numbers.txt). Don't touch that file! All of your code should be placed in code.cpp, as usual. **

 

Input:

After all numbers are read, what number would you like to multiply the total by?  [user types: 2]

 

Output:

Total = 1717

Average = 50.5

Total * 2 = 3434


Choose one device that you own and use - a laptop, tablet or smartphone.


Calculate the total costs of ownership (TCO) for the selected device including:


Purchasing costs of hardware


Purchasing costs or software subscription fee


Operating costs (hours spent on managing IT, e.g. upgrades, fixes, troubleshooting, searching for new software, learning with new programs, providing IT support to others)


Downtime costs (lost hours due to inoperable or inaccessible computer, internet connection, viruses, etc.)


When convering amount of time to money, consider average hourly gross wage 200 CZK (around 7 EUR).


Calculate overall TCO and annual TCO.

We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate where among the 5-digit integer is the largest one. There are only 4 possible cases for this mission:

  • if the largest digit is the first digit, print "Leftmost"
  • if the largest digit is the third digit, print "Middle"
  • if the largest digit is the last digit, print "Rightmost"
  • if none of the above is correct, print "Unknown"

Now, show me how far you've understood your lessons!

Input

A line containing a five-digit integer.

14632

Output

A line containing a string.

Middle






Friend and Enemy

A group of F friends went to a haunted house.Each member was given a shirt with a number on it ranging from 1 to F. As they entered the haunted house, one of them was kidnapped and an enemy joined them.But unfortunately, the enemy didn't wear the shirt with the same number as the kidnapped one, instead wore the same as some other person.Find the numbers on the shirts of the enemy and the kidnapped person.


Input

The input is a single line containing space-separated positive integers from 1 to F.


Output

The output should be a single line containing the shirt numbers of the enemy and kidnapped person separated by a space.


Explanation

The given array is 3 1 5 2 1.

In the range from 1 to 5, the number 1 has occured twice and 4 is the missing number. So, 1 belongs to the enemy's shirt, and 4 belongs to kidnapped.Hence, the output should be 1 4.


Sample Input1

3 1 5 2 1

Sample Output1

1 4


Sample Input2

1 2 2 4

Sample Output2

2 3


LATEST TUTORIALS
APPROVED BY CLIENTS