100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS1511 Assignment 2 Year 2023 Solutions + Output + Explaination R100,00
Add to cart

Other

COS1511 Assignment 2 Year 2023 Solutions + Output + Explaination

 129 views  2 purchases

Complete Solutions to COS1511 Assignment 2 for the year 2023. Includes Code, Output of run-time, and Explaination. Feel free to contact us should you have any queries

Preview 1 out of 18  pages

  • May 23, 2023
  • 18
  • 2022/2023
  • Other
  • Unknown
All documents for this subject (83)
avatar-seller
Learn2Progress
Question 1a:
Code:

#include <iostream>
using namespace std;

int main() {
int age;
float finalMark;

cout << "Enter age: ";
cin >> age;
cout << "Enter final mark for exam: ";
cin >> finalMark;

while (age >= 30 || finalMark <= 65) {
cout << "Candidate does not qualify. ";

if (age >= 30)
cout << "Age should be younger than 30. ";

if (finalMark <= 65)
cout << "Final mark should be greater than 65%. ";

cout << "Please try again." << endl;

cout << "Enter age: ";
cin >> age;
cout << "Enter final mark for exam: ";
cin >> finalMark;
}

cout << "Candidate qualifies for the internship." << endl;

return 0;
}

Output:

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Learn2Progress. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R100,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53022 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R100,00  2x  sold
  • (0)
Add to cart
Added