A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are:
Write a program which converts infix expression entered by the user into postfix expression.
Requirements:
Implement this using arrays
Make functions
No global decelerations
Run test in main
Input numbers from the user and find the sum of all those input numbers until the user inputs zero. In other means, the loop should end when the user enters 0. Finally, display the sum of all those numbers entered by the user.
Take input of your registration number(8-digits) in the University. Write a program to print all the prime numbers digits in your registration number
Pass your marks of CA-1(28), CA-2(27), and CA-3(0) of course INT102 to the function with header high (float *, float *, float*). Write a function that should return the highest CA marks.
Write a menu-driven program that asks the user to select a favorite color from the given colors. Keep asking the user three times for selecting the color from the list of the available colors. Do this with the help of a suitable loop and switch statement. Finally, you have to display the three favorite colors of the user.
Write a C++ program to execute the following the logic:
Create a class named with MagicNumber, having one data member like No and having different member function to perform the unique task. All the member functions are must be as argument based function.
GetNo(),PrintNo(int),FactNo(int),PatternNo(int),PrimeNo(int),SquareNo(int).
• GetNo function will get the any positive number from user.
• If no is >10 than call the SquareNo function and find the square of that no.
• If no >5 and <10 than call FactNo function and find the factorial of that no.
• If no<5 then call the PatternNo function and display any pattern based on that no.
• If given number is odd than call the PrimeNo function and check given no is prime or not.
Write a Program: Daily Supplement Cost
Your horse has to have 1 ounce of probiotic supplement a day. You can buy it per
pound, as a 10 lb pail at a 10% discount, or as a 20 lb pail at a 15% discount. Your
the goal is to produce formatted output showing the daily cost for each buying
option. You should ask the user to enter the price per lb.
your output should look similar to this:
Enter price per lb: $18.50
Buying option 1 lb 5 lb 10 lb
Cost per day ($) 1.16 1.04 0.98
how to make plagiarism detection software in c++.(i want code)
mini project of C++ Doctor Appointment System using (fuctions, arrays,structure)
Doctor's appointment - simulates the appointment system of any hospital.
Admin:
Add a Doctor Information
Delete or Modify a Doctor Information
Confirm an appointment
Calculate Charges
User:
Book an appointment
Search a Doctor by their name or specialization
Get invoices