Projectname celsius 3 anne spent xpesos for shoes

  • No School
  • AA 1
  • 5

This preview shows page 1 - 5 out of 5 pages.

ProjectName: celsius 3. Anne spent x_pesos for shoes. This was Php14 less than twice she spent for a blouse. Given the value of the shoes by the user, create a program that will display the price of the blouse. projectName: blouse
Image of page 1

Subscribe to view the full document.

Sample: Source Code: //Roxanne A Pagaduan /*Assessment Task: Prelim Laboratory Activity No 1 Creating Program using cout function*/ #include <iostream> using namespace std; main() { cout<<"Hello World!"<< endl; cout<<"Hello IT11FA1"<< endl; cout<<"Welcome to T.I.P :)"<< endl; } Sample Output:
Image of page 2
ANSWER: 1. Source code: #include <iostream> using namespace std; main () { float dollar, peso; cout <<"Enter dollar value: "; cin >> dollar; cout<<endl; peso = dollar * 46.75; cout <<"Dollar in peso value is " <<peso <<" P"; } Sample Output:
Image of page 3

Subscribe to view the full document.

2. Source code: #include <iostream> using namespace std; main () { float celsius, fahrenheit; cout << "Enter Fahrenheit value: "; cin >> fahrenheit; cout<<endl; celsius = (fahrenheit - 32) * 5 / 9; cout << "Fahrenheit value in Celsius is " << celsius; } Sample Output:
Image of page 4
3. Source code: #include <iostream> using namespace std; main () { int shoes, blouse; cout <<"Enter Shoe Value: "; cin>> shoes; system("CLS"); blouse = (shoes + 14)/2; cout <<"Anne spent " <<shoes <<" for the shoes." <<endl; cout <<"While the blouse only costs " <<blouse <<"."; } Sample Output:
Image of page 5
  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes