Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Middiesex County College, Edison, New Jersey One acre of land is equivalent to 4

ID: 3594630 • Letter: M

Question

Middiesex County College, Edison, New Jersey One acre of land is equivalent to 43580 square feet. Write a C++ code that calculates the number of acres in a land of 389767 square feet. Declare appropriate variables to assign values and storevdisplay the calculated results. Use const concepts where ever possible. Display the result in 10 6 Points 4 Points spaces and 2 decimal places (7) Write C++ statement to declare variables to represent the following items (7.1) Number of children at school 7.2) A letter grade of an exam (7.3) A disease a patient is suffering from (7.4) Sum of square root of numbers 1 to 10 2 Points 2 Points (8) Write C+ code to implement each of the following actions, where each statement is independent. (8.1) if L divided by J is 4, then L is set to 100 (8.2) if L times J is 8, then L is set to 50: otherwise, J is set to 60 (8.3) if L is less than J, then J is doubled; if instead L is even, then L is doubled; 3 Points otherwise, both L and J are incremented by 1 (9) Given the following sequence of statements: (Assume all variables are already declared) else else eise if((L %J)

Explanation / Answer

       //Program for Reward Points...

#include <iostream>
#include <string>

    using namespace std;
   
    int main() {
       string Membership_Type;
       float TOTAL_MONTHLY_PURCHASES;
       float Reward_Points;
        cout<<"ENTER THE MEMBERSHIP TYPE:"<<endl;
        cin>>Membership_Type;
        cout<<"ENTER THE NO. OF TOTAL MONTHLY PURCHASES:"<<endl;
        cin>>TOTAL_MONTHLY_PURCHASES;
        if(Membership_Type=="Standard") //Checking the type of membership
        {
           if(TOTAL_MONTHLY_PURCHASES<75)
           {
               Reward_Points=5*TOTAL_MONTHLY_PURCHASES/100;
           }
               else if(TOTAL_MONTHLY_PURCHASES>=75&&TOTAL_MONTHLY_PURCHASES<=150)
           {
               Reward_Points=7.5*TOTAL_MONTHLY_PURCHASES/100;
           }
           else if(TOTAL_MONTHLY_PURCHASES>=151)
           {
               Reward_Points=10*TOTAL_MONTHLY_PURCHASES/100;
           }
        }
          if(Membership_Type=="Plus") //Checking the type of membership
        {
           if(TOTAL_MONTHLY_PURCHASES<150)
           {
               Reward_Points=6*TOTAL_MONTHLY_PURCHASES/100;
           }
   
           else if(TOTAL_MONTHLY_PURCHASES>=150)
           {
               Reward_Points=13*TOTAL_MONTHLY_PURCHASES/100;
           }
        }
         if(Membership_Type=="Premium") //Checking the type of membership
        {
           if(TOTAL_MONTHLY_PURCHASES<200)
           {
               Reward_Points=4*TOTAL_MONTHLY_PURCHASES/100;
           }
   
           else if(TOTAL_MONTHLY_PURCHASES>=200)
           {
               Reward_Points=15*TOTAL_MONTHLY_PURCHASES/100;
           }
        }
        cout<<"Membership Type: "<<Membership_Type<<endl;
        cout<<"Total Monthly Purchases: "<<TOTAL_MONTHLY_PURCHASES<<endl;
        cout<<"Reward Points Earned: "<<Reward_Points<<endl;
       return 0;
    }

//Sample Input:

//ENTER THE NO. OF TOTAL MONTHLY PURCHASES: 86

//Sample Output:

// I hope this will help you , if you find this helpful please like it.