CS201p Assignment Solution 1 Spring 2023 – Download PDF

CS201p Assignment Solution 1 Spring 2023

In this Post, I
have CS201p Assignment 1 Solution Spring 2023. Download CS201p Assignment 1 Solution File with single click. Download past papers from our
website. You can Download all Assignment, GDB, Quiz Solutions from
our website. If you have any trouble than Contact Us.


Imроrtаnt Nоte:

1. Рleаse
Dоn’t Make Сорy Раste, change on your choice, оtherwise, yоu get zerо mаrks.

2. Рleаse
gets ideаs from this file аnd Mаke it yоur оwn sоlutiоn.

3. If Yоu
Fоund Аny mistаke then рleаse Соrreсt Yоurself do not submit as you download.

4. Befоre
submitting Yоur Аssignment рleаse сheсk yоur аssignment requirements.

5. If
the Sоlutiоn file is соmрletely Wrоng then соmment belоw seсtiоn we will uрdаte
аs sооn аs роssible.

6. Рleаse
сheсk eасh аnd everything befоre submitting yоur аssignments.

7. If yоu
submit the sаme file then yоu get zerо mаrks & we are not responsible.

ASSIGNMENT
Solution:

Solution Code:

#include <iostream>

using namespace std;

 

// Function to calculate gross earnings

float calculateGross(float sales) {

    float commission =
0.09;

    float earnings =
700 + commission * sales;

    return earnings;

}

 

int main() {

    // Initializing
sales for each salesperson

    float sales1 =
5000;

    float sales2 =
7000;

    float sales3 =
9000;

 

    // Calculating
earnings for each salesperson

    float earnings1 =
calculateGross(sales1);

    float earnings2 =
calculateGross(sales2);

    float earnings3 =
calculateGross(sales3);

 

    // Displaying
earnings for each salesperson

    cout <<
“Earnings for Sales Person 1: ” << earnings1 << ”
PKRn”;

    cout <<
“Earnings for Sales Person 2: ” << earnings2 << ”
PKRn”;

    cout <<
“Earnings for Sales Person 3: ” << earnings3 << ”
PKRn”;

 

    // Calculating
total earnings for the week

    float
totalEarnings = earnings1 + earnings2 + earnings3;

 

    // Displaying
total earnings for the week

    cout <<
“Total Gross Earnings for the Week: ” << totalEarnings <<
” PKRn”;

 

    return 0;

}

 

OUTPUT

 

Join WhatsApp Groups

MID Term Short Notes

MID Term Past Papers

Final Term Short Notes

Download All VU Handouts


 Download Solution File:


You have to wait 20 seconds.




learn with asad,#cs201 p,#cs201 passignment2,cs201 p
assignment solution 1 spring 2023,cs201 p correct assignment 1,cs201 p complete
assignment 1 spring 2023,cs201 p assignment 1 solution spring 2023, cs201 p
assignment 1 solution 2023,cs201p assignment 1 solution 2023,cs201 p
assignment 1 solution,cs201 p assignment 1 solution spring,cs201 p 100%
assignment 1 correct solution spring 2023,cs201 p assignment solution 2023,cs201p assignment spring 2023,cs201 p spring 2023 assignment

Leave a Reply

Your email address will not be published. Required fields are marked *