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

Using C++ language... what ever help i can get. I would really like to see how s

ID: 672797 • Letter: U

Question

Using C++ language... what ever help i can get. I would really like to see how someone sets up the functions for SAT and ACT. I can not get mine to work... I dont need help doing the whole thing i just need a point in the right direction using the functions and declaring the variables in the right places... Thank you very much.

#include<iostream>
using namespace std;

void sat1(void);
void act2(void);
void gpa1(void);
void gpa2(void);

const int choice1 = 1;
const int choice2 = 2;

int main(){
   sat1();
}


void sat1(void){
int sat;
int satv;
int satm;

   cout << "SAT math? ";
   cin >> satm;
   cout << "SAT verbal? ";
   cin >> satv;

   sat = 2*(satv+satm)/24;

   cout << "therefore your score is: " << sat;
}

void act2(void){
   int act;
   int actr;
   int acte;
   int actm;
   int acts;
  
  

}

void gpa1(void){
  
}
void gpa2(void){
  
}

Explanation / Answer

C++ Code:

//(Optional: Precompiled Header stdafx.h is basically used in visual C++ IDE)
#include "StdAfx.h"
#include<iostream>
using namespace std;
void sat1(void);
void act2(void);
void gpa1(void);
void gpa2(void);
const int choice1 = 1;
const int choice2 = 2;
int main()
{
int choice;
cout<<"Information for the first applicant: do you have";
cout<<"1) SAT scores 2) ACT scores? ";

cin>>choice;
if(choice==1)
{
  sat1();
}
else if(choice==2)
{
  act2();
}
cout<<"Information for the second applicant: do you have";
cout<<"1) SAT scores 2) ACT scores? ";
int option;
cin>>option;
if(option==1)
{
  sat1();
}
else if(option==2)
{
  act2();
}
}


void sat1(void){


int sat;
int satv;
int satm;
cout << "SAT math? ";
cin >> satm;
cout << "SAT verbal? ";
cin >> satv;


gpa1();
sat = 2*(satv+satm)/24;
cout << "therefore your score is: " << sat;
}

void act2(void)
{
int act;
int actr;
int acte;
int actm;
int acts;
cout << "ACT English? ";
cin >> acte;
cout<<"ACT math? ";
cin>>actm;
cout<<"ACT reading? ";
cin>>actr;
cout<<"ACT science? ";
cin>>acts;
gpa2();
act=2*(actr+acte+actm+acts)/1.8;
cout << "therefore your score is: " << act;
}

void gpa1(void)
{
double agpa1;
double maxgpa1;
double gparesult1;
cout<<"actual GPA? ";
cin>>agpa1;
cout<<"max GPA?";
cin>>maxgpa1;
gparesult1=(agpa1/maxgpa1)*100;
}
void gpa2(void)
{
double agpa;
double maxgpa;
double gparesult;
cout<<"actual GPA? ";
cin>>agpa;
cout<<"max GPA?";
cin>>maxgpa;
gparesult=(agpa/maxgpa)*100;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote