Questions: 5 831

Answers by our Experts: 5 728

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 tha takes the temprature of a patient in fahrenheit as input and prints "normal" if the temtature is equal to 98.6


The possible denominations of currency notes are 100, 50, 20 and 10. The amount A to be withdrawn is given as input. Write a program to break the amount into minimum number of bank notes.


Input


The first line of input is an integer A


Output


The output should be a string representing number of 100, 50, 20, 10 notes possible.


Explanation


if amor


no


am


9 if amo


18


We've had enough about numbers, so why don’t we try evaluating characters now?

If you know how to identify what the vowel letters are, and you know how to count up to 5, then you’re good to go!


Instructions:

  1. Using a do…while() loop, continuously scan for characters (one per line) and print it out afterwards. Remember to place a space before the character's placeholder when scanning so that the newline characters will be ignored and the correct values will be scanned.
  2. The loop shall terminate due to either of the following reasons:
  3. The inputted character is a vowel
  4. The number of inputted characters has already reached 5.
  5. For all of the test cases, it is guaranteed that if the number of inputted characters is less than 5, then there must be a vowel from among the inputted characters. Also, it is guaranteed that all the characters are in lowercase.

arr1 = ["january","february","march","april","may","june"]

arr2 = ["july","august","septmber","october","november","december"] print first 3 array items


Write a function called area_circumference_generator that takes a radius of a circle as a function parameter and calculates its circumference and area. Then returns these two results as a tuple and prints the results using tuple unpacking in the function call accorrding to the given format.

[Must use tuple packing & unpacking]

Create a database console application to perform the following applications.




a) Define a dictionary to store details for library books consisting of book id or title author name, year of publication and publisher.




b) Show how the information can be stored in a SQLite or MySQL database named books, retrieved by book id or author name, update using any book id or title and deleted using book id or title.




c) Handle all exceptions and validate data entry.

Is It You, Cody?




by CodeChum Admin





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

Develop a program that takes as input a series of positive integers and outputs, starting from the second input, whether each input is larger than, less than or equal to the largest integer entered until that input. The program should terminate if a negative integer is provided.


In the example below, 3 is the first input. When the second input, 4, is entered, the program outputs “GREATER THAN 3” since 4 > 3, and waits for the next input. For the next input, 5, the program outputs “GREATER THAN 4” since 5 > 4 (the largest integer entered until that point). This continues until -1 is entered.


Eg:

Input:

3

4

5

6

1

6

-1

Output:

GREATER THAN 3

GREATER THAN 4

GREATER THAN 5

LESS THAN 6

EQUAL TO 6



ACT3: Inheritance


INSTRUCTIONS


1. Choose your own category

2. Look for subcategories with similarities or shared attributes (atleast 3 subcategories)

3. Map inheritance on paper, list properties and methods

4. Define PHP classes

5. Inherit, extend, and override properties and methods

6. Create instances to test


Category Ideas: Animals, Clothing, Foods, Furniture, Musical Instruments.




Encapsulate the following Python code from Section 7.5 in a function named my_sqrt that takes a as a parameter, chooses a starting value for x, and returns an estimate of the square root of a.



while True:


y = (x + a/x) / 2.0


if y == x:


break


x = y


LATEST TUTORIALS
APPROVED BY CLIENTS