User Profile
Collapse
-
I am sorry I have misled anyone. I am not very good with computers. I only have to take one computer programming class. I am not looking for an answer I am looking for help. I thought if I posted the question instead of me trying to explain it, that would give somewhere a better idea. In order for ME to complete my assignment, I would like to know what function, keyword or whatever I would use to assign and print rnadom integers -
Random numbers
Question 1:
what statements do I use to asign random integers to the variable n. Here is one of my ranges
1 less than or equal to n less than or equal to 2
Question 2:
Also write a single statement that prints a number as random form the set 2,4,6,8,10 and more problems there to
What I am asking is what satements do I use for the above two questions -
Banners
I have to do two exercises out of my textbook which work fine but I have to display a banner before doing the exercises
//March 19, 2008
//Exercise 5.23 and 5.24
//Project 1
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
int main()
{
cout<<"Project 1"<<endl;
cout<<"name"<<e ndl;... -
Switch Operator
ok I have to do the following to a previous program
A) Modify the program loop such that a ‘SWITCH’ structure is used to call each of the FUNCTIONS which display the individual Logical Operator Truth Tables, and
B) Upon terminating the program, display a message as follows:
“Thank you for using the Logical
Operator Truth Table Display Program:
‘Your full name’ “
... -
My program isn't working I think I am using the void wrong. The compile log said this, and the rest is my program
I tried to do this as a function but I could not figure out why the void or was not working. It would not compile
/*Compiler: Default compiler
Executing g++.exe...
g++.exe "E:\COSC\Exerci ses\Banks_Asgn4 _redo.cpp" -o "E:\COSC\Exerci ses\Banks_Asgn4 _redo.exe" -g3 -I"C:\Dev-Cpp\lib\gcc\min gw32\3.4.2\incl ude"...Leave a comment:
-
i have the truth tables but what function would I use to tell the user to pick one truth table and only display that truth table i was thinking the if but not sure exactly what to do...Leave a comment:
-
thanks everybody i will be back if i have some more problems after trying itLeave a comment:
-
Have to make truth tables
ok taking computer science class anybody know what to do i am not computer literate
CoSc 111.003 Spring 2008 Assignment 4
1) Each student shall design, develop, code, test and submit an
Original computer program which uses a function or functions to display the TRUTH TABLES for the Logical And, the Logical Or, and the Logical Not operators., as defined in Section 5.8, of the text, 5Th/6Th Edition....
No activity results to display
Show More
Leave a comment: