ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 11 May 2017 My Price 9.00

BTE 320 SPRING 17 Quiz 1

can anyone help me to explain this code please?  thanks!  codes are attached below 

 

BTE 320 SPRING 17 Quiz 1 (Exam Extra Credit)–5 PointsMarch 1st, 20171What is the output of each of the following programs or do as specified.Q#iuncelsutdieon<i1ostream>#include<string>using namespacestd;intmain(){stringlname="Cooper", fname ="John";intx = 3;boolb =false;if(x>= (23%19))cout <<"First Name:"<<fname<<endl;cout <<" Last Name:"<<lname<<endl;while(!b && x>0)cout<<lname<<","<<fname<<endl;x--;return0;}Q#iuncelsutdieon<i2ostream>#include<string>using namespacestd;charboo(){return'$';}stringkoo(strings){for(inti =s.length()-1;i>1; i-•){s[i]=boo();}returns;}intmain(){cout<< koo(koo("Hello"))<<endl;return0;}Q#iuneclsutdioen<3iostream>#include<string>using namespacestd;intboo (intz,intx,inty){for(intk=0;k<z;k++){cout<<(!k && z)<<"\t";}return(x=5);}voidkoo(inty,intx,intz){for(intj=z;j>x++;j--)cout<<boo(z,y,x);}voidfoo(intx,inty,intz){for(inti=x;i<y;i+=z)koo(i,y,z);}intmain(){strings="\n";cout<<"Start"<<endl;foo(1,2,3);cout<<s<<"End"<<endl;}Q#iuneclsutdioen<4iostream>#include<string>using namespacestd;voidfoo(){for(inti=0;i<2;i++)for(intj=0;j<2;j++)for(intk=0;k<2;k++)cout<<i<<"\t"<<j<<"\t"<<k<<endl;}intmain(){strings="\n";cout<<"Start"<<endl;foo();cout<<s<<"End"<<endl;}

Attachments:

Answers

(11)
Status NEW Posted 11 May 2017 12:05 AM My Price 9.00

-----------

Not Rated(0)