Questions: 11 448

Answers by our Experts: 10 707

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 to input number of days from the user and convert to it years weeks and days and display the result on the screen



// days.cpp


// Author: Mr jake R. pomperada, BSCS, MAED- IT


// Date: august 15, 2018 Wednesday


// Location: Bacolod City, Negros occidental


// Website: http://www.jakerpompereda.com



write a program to input number of days from the user and convert to it years weeks and days and display the result on the screen



// days.cpp


// Author: Mr jake R. pomperada, BSCS, MAED- IT


// Date: august 15, 2018 Wednesday


// Location: Bacolod City, Negros occidental


// Website: http://www.jakerpompereda.com



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


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






WAP to create a class Time having members as hours, minutes and seconds . Initialize the object by using parameterized and copy constructor. Write the functions for addition and difference of Time objects.



Write a program that first print the student’s marks data given in the attached excel file then show the



horizontal bar chart of the grades frequency which student achieved and in the last tell us which grade



category got maximum and minimum number of students.

Create a class with two public integers and functions for reading and displaying the sum of two numbers. 


LATEST TUTORIALS
APPROVED BY CLIENTS