Please Write this code and make it work, with the prompts its giving in the // notes
Fantastic news! We've Found the answer you've been seeking!
Question:
Please Write this code and make it work, with the prompts its giving in the // notes
Transcribed Image Text:
#include <iostream> #include <windows.h> //Lab 7.cpp // This is a solution for lab6.cpp II // Enter input validation as demonstrated in lesson 9 for: // 1. Input validation for the number of students (range from 1 to 38) // 2. Input validation for the scores entered... // // Enter your name: // using namespace std; int main() [variable dictionary int score 0, counter = 0, numberofstudents = 0; double average 0, total scores = 0; char ans 'y'; cout<<"\n Continue with program Y/N "; cin >> ans; cout<<"\n\n How many students are in the class. enter from 1 to 30 students "; cin>> number of students; cout<<"\n\n"; // Enter while loop for input validation of number of students for (int k 1; k <= numberofstudents; k++) { cout<<"\n\n Enter scores for student "<< k<< endl; while (ans 'y' or ans == 'y') { cout << "Enter an integer from 1 to 100. cin >>score; // Enter while loop for invalid entry of scores } if( score >= and score <= 100) } counter ++; total scores + score; cout<<"\n Continue entering scores Y/N "; cin >> ans; #include <iostream> #include <windows.h> //Lab 7.cpp // This is a solution for lab6.cpp II // Enter input validation as demonstrated in lesson 9 for: // 1. Input validation for the number of students (range from 1 to 38) // 2. Input validation for the scores entered... // // Enter your name: // using namespace std; int main() [variable dictionary int score 0, counter = 0, numberofstudents = 0; double average 0, total scores = 0; char ans 'y'; cout<<"\n Continue with program Y/N "; cin >> ans; cout<<"\n\n How many students are in the class. enter from 1 to 30 students "; cin>> number of students; cout<<"\n\n"; // Enter while loop for input validation of number of students for (int k 1; k <= numberofstudents; k++) { cout<<"\n\n Enter scores for student "<< k<< endl; while (ans 'y' or ans == 'y') { cout << "Enter an integer from 1 to 100. cin >>score; // Enter while loop for invalid entry of scores } if( score >= and score <= 100) } counter ++; total scores + score; cout<<"\n Continue entering scores Y/N "; cin >> ans;
Expert Answer:
Answer rating: 100% (QA)
the corrected form include iostream include windows h using name... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
This question concerns lexical grammars. (a) Tree Adjoining Grammars contain two types of elementary tree. (i) What are these trees called? [1 mark] (ii) If one were building a grammar for English...
-
What is GST?
-
Peter Drucker, a noted business observer, made the following comment in an address to management accountants: 'I am not saying that you do not need a "cop on the beat", you do . . . But your great...
-
The following information is available for Reinsch Corporation for the year ended December 31, 2020: cost of goods sold $205,000, sales revenue $350,000, other revenues and gains $50,000, and...
-
An engineer prepares a report to evaluate a project using PW and IRR. Just before submitting the report, he spills coffee on it, making the first digit of the 2-digit IRR unreadable. The second digit...
-
Jamison Kovach Supply Company manufactures paper clips and other office products. Although inexpensive, paper clips have provided the firm with a high margin of profitability. Sample size is 200....
-
Maya purchased a boat for $18,340. Its value depreciated by 15% in the first year she owned it. What was her boat worth at the end of this first year?
-
CALCULUS I TA 1. Using only the definition of the derivative as a limit, prove that if f(x)=(x-2), then f'(x)=2-x-4. (10) 2. Using only the 8-8 definition of limit, prove that lim (7-x+28)= -7....
-
Company A (lessee) has reached a lease agreement with company B (lessor) to lease a new carpet weaving machine for five years beginning January 1, Year 1. The present value of the weaving machine is...
-
Assume the GDP is $6,000, private domestic savings are $1,100, and the government budget deficit is $200. Consumption is $3,800, and the trade deficit is $100. Find: (a) Investments (I), (b)...
-
According to our three-equation model, how would an increase in direct taxes affect inflation in the short-run? In the medium-run?
-
A block of mass m = 13,8 kg is attached to the free end of a light string wrapped around a reel of radius R = 0, 4 m and mass M = 7,3 kg. The reel is a uniform disk and fixed on an axis about which...
-
Q2. a) An aluminum wire of length 10 m and having a cross sectional area 1.52x104 m is converted into 2-turn circular and is connected to a voltage of 0.115 V. If the loop is placed in, a uniform...
-
Cobalt-60 is used as a radiation source to sterilize food and consumer products. It has a half life of 5.26 years. How many grams would be left from a 1 g sample after two half lives?
-
Information graphics, also called infographics, are wildly popular, especially in online environments. Why do you think infographics continue to receive so much attention? How could infographics be...
-
Abigail (Abby) Boxer is a single mother working as a civilian accountant for the U.S. Army. Her Social Security number is 676-73-3311 and she lives at 3456 Alamo Way, San Antonio, TX 78249. Helen,...
-
Russell (age 50) and Linda (age 45) Long have brought you the following information regarding their income and expenses for the current year. Russell owns and operates a landscaping business called...
-
Carl and Jenny adopt a Russian orphan. The adoption takes 2 years and two trips to Russia and is final in 2012. They pay $6,000 in 2011 and $7,500 in 2012 of qualified adoption expenses, and have AGI...
-
When adopting resource-leveling heuristics, which of the following are relevant decision rules? a. The activities with the least slack time should have resources allocated to them first b. The...
-
Project resource constraints can involve any of the following examples? a. Poorly trained workers b. Lack of available materials for construction c. Environmental or physical constraints of the...
-
When are the resource requirements estimated? a. After the activities have been defined but before the schedule has been developed b. After the schedule has been developed but before the activities...
Study smarter with the SolutionInn App