How can you know which program to use for,do while,if else,if,while statements for
Write a program in C++ that ask the user to type a value and check whether it is prime or not.
Write a C++ program that prints on the screen following diamond shape with given series of numbers.
, defined a class Account to implement basic bank account functionalities. Redefine the Account class to update the deposit, withdraw and display Account information operations. Overload the + and - operators to perform the deposit and withdraw operations, respectively. Overload the + and - operators such that the value that will be used to increase (or decrease) the Account balance can be on the left or right of the operator. Example: savings + 123.45 (or 123.45 + savings), savings – 123.45 (or 123.45 – savings) where savings is an Account object. Overload the insertion operator to display Account information. Overload < and == operators. An Account is considered lower than another when the balance is lower, and equal when Accounts have the same account number. Write a main() method instantiating two Account objects and test (demonstrate) that all the overloaded operators work correctly. The withdrawal operation should be tested at least two times for a successful and unsuccessful withdrawal.
Write a program to find the table of numbers using a while loop. Your program should ask the
size of the table. That size defines the rows and columns. Sample output:
Enter size: 6
1 2 3 4 5 6
------------------------------------------
1* 1 2 3 4 5 6
2* 2 4 6 8 10 12
3* 3 6 9 12 15 18
4* 4 8 12 16 20 24
5* 5 10 15 20 25 30
6* 6 12 18 24 30 36
Write a C++ program that converts a decimal number to a binary, octal, and
hexadecimal equivalents. First, the program will ask to fix a range for the lower and
upper limit in which the conversion is required. The lower limit should not be less than
0 and greater than the upper limit. For example, if you enter a negative number or
greater than the upper limit, then the program should print a message for the invalid
input and will ask you again to enter a decimal number within the range. If you
correctly specify the upper and lower limits, then the program will print a table of the
binary, octal and hexadecimal equivalents of the decimal numbers in the range of
lower limit through upper limit.
Specific grading criteria: In this program you should use all the loops (e.g., while,
do-while and for loop) each of them only one time. The output mentioned below is just
an example; more clear and well- presented output will improve your points.
Create a c++ program with functions to read a file name start.txt.the string read from the file should be false and replaced with true and a message output "the system have started"to a file called system.txt. then a login screen should appear to prompt the user to enter an admin login only one admin should be entered and then prompt to create another user for regular login after successfully login a class.txt file should be saved and all user name and password along with random session id created.
Program that receives the current temperature as input. If the temperature is 80 degrees or more, output a message telling the user to go swimming, otherwise, if the temperature is 50 degrees or more, output a message to go running, otherwise stay inside.
Write a C++ program that asks the user to enter a number N .After that, print N lines using asterisk (*) in a
triangle shape as shown below;
By using nested loop
Write a C++ menu driven in one a complete program which is consists/Have function, array, pointer and structure with at least more than three data members with their appropriate data types. Finally, all activity should be saved into word file. [all information should be filled from user]
Your program should do in the menu drive.
1. Return the number of frequency/count the duplication items from your program
2. Display the items as reverse order