Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge.
A Tourist Attraction Calculation System Silver Express Theme Park (SETP) …
Code: #include <iostream> using namespace std; int main(void) { int choice; cout<<"\n Silver Express Theme Park Pvt. Ltd."; cout<<"\n==========================="; cout<<"\n 1.Regular Adult"; cout<<"\n 2. Student"; cout<<"\n 3.Family Ticket"; cout<<"\n EnterRead more
Code:
#include <iostream> using namespace std; int main(void) { int choice; cout<<"\n Silver Express Theme Park Pvt. Ltd."; cout<<"\n==========================="; cout<<"\n 1.Regular Adult"; cout<<"\n 2. Student"; cout<<"\n 3.Family Ticket"; cout<<"\n Enter the type of ticket which you want: "; cin>>choice; //input taking if(choice==1){ //adult tickets total amount calculation int count; cout<<"Enter no.of persons:"; cin>> count; if(count>0) cout<<"Total amount due is :"<< count*30; else cout<<"no.of persons must be greater than zero"; } else if(choice==2){ //student tickets total amount calculation int count; cout<<"Enter no.of persons:"; cin>> count; if(count>0) cout<<"Total amount due is :"<< count*25; else cout<<"no.of persons must be greater than zero"; } else if(choice==3){ //family tickets total amount calculation int count; cout<<"Number of additional children in the group(more than 2):"; cin>> count; if(count>0) cout<<"Total amount due is :"<< (count*15)+75; else cout<<"no.of persons must be greater than zero"; } else{ //invalid option cout<<"Invalid Option"; } }
See lessStrong Artificial Intelligence is MCQ
The correct option to the question 'Strong Artificial Intelligence is mcq' is (c) the embodiment of human intellectual capabilities within a computer.
The correct option to the question ‘Strong Artificial Intelligence is mcq’ is (c) the embodiment of human intellectual capabilities within a computer.
See lessAdvances in the field of Computer Vision make which of the following possible?
The correct option to the question 'Advances in the field of Computer Vision make which of the following possible' is (a) Detecting cancerous moles in skin images.
The correct option to the question ‘Advances in the field of Computer Vision make which of the following possible’ is (a) Detecting cancerous moles in skin images.
See lessWhich of these is NOT a current application of AI? …
The correct option to the question 'Which of these is NOT a current application of AI' is (a) Making precise patient diagnosis and prescribing independent treatment.
The correct option to the question ‘Which of these is NOT a current application of AI’ is (a) Making precise patient diagnosis and prescribing independent treatment.
See lessWhich of the following is an attribute of Strong or Generalized AI?
The correct answer to the question 'Which of the following is an attribute of Strong or Generalized AI' is (c) Perform independent tasks.
The correct answer to the question ‘Which of the following is an attribute of Strong or Generalized AI’ is (c) Perform independent tasks.
See lessWhich of the following is NOT a good way to define AI?
The correct answer to the question 'Which of the following is NOT a good way to define AI' is (a) AI is all about machines replacing human intelligence.
The correct answer to the question ‘Which of the following is NOT a good way to define AI’ is (a) AI is all about machines replacing human intelligence.
See lessWhich of the following function is used to find the first occurrence of a given string in another string?
Correct option to the question 'Which of the following function is used to find the first occurrence of a given string in another string' is (b) strstr().
Correct option to the question ‘Which of the following function is used to find the first occurrence of a given string in another string’ is (b) strstr().
See lessWrite a C program to print a multiplication table of the numbers from 1 to 10 using function.
#include <stdio.h> void table() { int j,i,pr; printf("Multiplication table of number starting from 1 to 10 : \n"); for(i=1;i<=10;i++) { for(j=1;j<=10;j++) { pr = i*j; printf("%d x %d = %d\t", i, j, pr); printf("\n"); } printf("\n"); } } void main() { table(); }
Write a function to print a table of the numbers from 1 to 10, their squares, and their cubes.
#include <stdio.h>void table(){int x;printf("\nNumber\tSquare\tCube\n");printf("=========================\n");for(x=1; x<=10; x++)printf("%d\t%d\t%d\n", x, x*x, x*x*x); }void main(){table();}
A contractor orders, say, 30 cubic yards of premixed concrete …
#include <iostream> #include <cmath> using namespace std; int main() { double premix_concrete, thickness, length_ratio, width_ratio; //Inputs cout<<"Enter the amount of premixed concrete (in cubic yards) ordered : "; cin>>premix_concrete; cout<<"Enter the thickness of tRead more