No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
It is an assignment to create a drink machine simulator. I have a problem with number 3 sprite its not alined with the rest. And i would like to know how to add special characters to add borders around the menu and create a table. [CODE]#include <iostream> #include <string> #include … | |
Ok I was able to validate user input if the user would enter a larger number or a negative number but how do you validate if the user happens to enter a letter or word, even character i.e % # @, or if the user enters all. How do you … | |
Write a program that counts number of words in a sentence and displays the average number of letters in each word. Your program should ask the user to type a sentence (or sentences) that are 80 characters or less. If the sentence is longer than 80 characters, truncate it and … | |
[CODE]#include <iostream> #include <cstdlib> #include <math.h> #include <iomanip> using namespace std; const string FILLER = " "; int main() { int w1 = 20; int w2 = 20; int w3 = 20; int w4 = 16; //variable declarations string firstname,lastname; int marital_status; float gross_income; const float tax_rate_0 = 0.10; const … |