C++ visual studio needed as soon as possible

May 12th, 2015
KateS
Category:
Computer Science
Price: $40 USD

Question description

1.  Write a complete program to input a series of test grades from a file named test.txt and report the number of student grades, the number of AS, BS, CS, DS, and FS, the percent below average (DS and FS) and the percent above average (AS and BS).

For the file  test.txt as follows:
  Section-001

  A  C  F  F  D  B  B  C  C  C  A  C  C  B  B  C  D

  Section-005

  C  F  F  D  B  F  C  C  C  A  C  A  B  B  A  D

Output should be:
  33 student grades

  A: 5  B: 7  C: 12  D: 4  F: 5

  Above average: 36.36%

  Below average: 27.27%

2.  Write a complete program to input a series of currency types and amounts from the keyboard (‘D’ for US Dollars or ‘P’ for Mexican Pesos).  The input loop should be in main( ) and continue until the sentinel code ‘Q’ is entered to quit. 

The program should also have a single function named ‘converter’ that receives two parameters (currency type and amount) and prints the original type and amount and the value in the other currency. 

Entering ‘Q’ value should NOT generate any output.  If any code other than D, P or Q is entered, an “Illegal currency type” message should display

One US Dollar equals 13.11 Mexican Pesos.
Example traces: 
Enter currency type (D for US Dollars, P for Mexican Pesos, or Q to quit):  D
Enter an amount:  4.55
$4.55 in US Dollars equals 59.65 Mexican Pesos

Enter currency type (D for US Dollars, P for Mexican Pesos, or Q to quit):  P
Enter an amount:  1000
1000 Mexican Pesos equals $76.28 in US Dollars

Enter currency type (D for US Dollars, P for Mexican Pesos, or Q to quit):  M
Illegal currency type
Enter currency type (D for US Dollars, P for Mexican Pesos, or Q to quit):  Q


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Cornell University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
Five Star Tutor
Dec 2nd, 2016
" Outstanding Job!!!! "
SjSurvivor143
Nov 16th, 2016
" Thanks for the help. "
Joemoe
Nov 3rd, 2016
" <3 it, thanks for saving me time. "
tinytim47
Oct 25th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
pmallory
Oct 20th, 2016
" Totally impressed with results!! :-) "
mixedballz
Oct 11th, 2016
" excellent work as always thanks for the help "
kiln82
Sep 28th, 2016
" awesome work thanks "
darnay
Sep 19th, 2016
" The best tutor out there!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1823 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors