Write the Class Student which represent the student Object considering that the students has ID, Name and email as attributes and you need to suggest one method.
Print out all numbers from 1 to 100 that is divisible by 3 using a for loop just like the last problem, but this time, with each number only separated by the space like that of the sample output.
Write an executable C++ program to display name of your department using the input and output operation.
Write a C++ program to display your name and matriculation number.
Note: Your full name and matriculation number must be on separate line.
Write pseudo-code of program that finds “Prime Numbers” in the given range. First, ask the user to enter two
numbers M and N. Then, find prime numbers in the range M
→
N. Display all the prime numbers on the
screen. by using nested loop
Write a program that takes character array as an input and count the number of capital character in it.
Write a program that simulates picking a card from a deck of 52 cards. Your
program should display the rank (Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King) and
suit (Clubs, Diamonds, Hearts, Spades) of the card.
Write a program that prompts the user to enter the number of items and each item’s
name and price, and finally displays the name and price of the item with the lowest
price and the item with the second-lowest price.
by CodeChum Admin
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·1Output
A line containing the total number of positive integers.
3by CodeChum Admin
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:
Now, show me how far you've understood your lessons!
Input
A line containing a five-digit integer.
14632Output
A line containing a string.
Middle