A square matrix, that is, one having the same number of rows and columns, A matrix is called a "diagonal" matrix if its only nonzero elements are...
2. Write a C++ program that reads data from an input file called “Input.txt” and counts how many times the file contained words that are the same...
switch (opt) { case '+': return left+right; case '-': return left-right; case '*': return left*right; case '/': return left/right;...
i mean how can i write this ? ‘c’ to clear the current accumulator ‘n’ for ln ‘q’ for quit
#include <iostream> #include <cmath> #include <stdio> using namespace std; int main () { float first_num, second_num; int...
why u don`t solve it :( really i don`t know how 2 solve it :(((((
nested if ?
how can i write the hours and minutes also am,pm in if statment ?? You may not use a 24 hour clock for this problem << then how i can write it ?
is this right ? if it is wrong can u correct it so i can do the complite it :D #include <iostream> #include <cmath> using namespace std; int...
No I just want the idea how to solve it
Write a program to get a date from the user in the format day/month/year. Tip: use extra variables to read the /. The program should check the...
A baby sitter charges $1.50 per hour until 9:00 pm (while the kids are still up), $1.00 per hour between 9:00 pm and midnight, and $1.25 per hour...
thnx ;D
Write a program that takes the x-y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point...
Thnx :)
Thnx. If I want to use nsted if can u give me an example from one of them ?
Write a program to simulate hand-held electronic calculator. Your program should execute as follows: Step 1: display a prompt and wait for the...
how can i draw an arrow and oval in a simple code ?!
Separate names with a comma.