ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 25 Apr 2017 My Price 8.00

CS 1136 Laboratory Lesson #9b1CS 1136 Laboratory Lesson

language is c++

it has part 1, part 2 and part 4

 

on part 2, The processing in this program must be performed in functions. The main should only drive the work by calling the functions that actually do the work. You need to have the main function and, at least, 2 additional functions. Depending on how you write your functions you many need to pass parameters by reference

 

on part 4, we have to use several function in addition to main function.  The main will call the other functions.

due today at 11.59 pm

 

CS 1136 Laboratory Lesson #9b1CS 1136 Laboratory Lesson #9bLoops and FilesImportant InformationThis is your 9thlab lesson for the semester and will use the following guidelines.Late submissions will get 0 points. If you save it as a draft and do not actually click on submit you will get0 points. If you submit an empty file you will get 0 points.If you submit something other than thesource files (for either the text files required or for the C++ source) you will get 0 points. Any othercondition that results in incorrect or incomplete submissions will be graded as is and no changes afterthe due date will be allowed.Anything you submit after the due date will be ignored.Submissions must be made via eLearning. You can make multiple submissions and the final version yousubmit – before the deadline – will be used.Note that there is an optional exercise. You can get up to 20 extra points for the optional exercise.Part 1: Fun with output and loopsThere are two files you can review. One covers nested loops – fileCS 1136 Laboratory Lesson 9b nestedloop review.pdf, and the other covers file input and output – fileCS 1136 Laboratory Lesson 9b filereview.pdf.Problem descriptionWrite a program calledLab9b_Exercise1.cpp.The main function should consist of a processing loopthat will call an input function that reads in an integer value between 0 and 10. If the function returnsback a value between 1 and 10 the main function should call a display function that will output thatnumber of $ sign characters. If the input function returns back a 0 the loop should stop processing,otherwise the program should continue the loop and read in the next input value.The input function reads in the input value and verifies that it is between 0 and 10. If it is not in thisrange you need to display an error message and prompt again for the input value. This must be done ina loop. You won’t exit the input loop until the application n user enters in a number between 0 and 10inclusive.The display $ function will be called from main if the input value was between 1 and 10 inclusive. Thefunction should then output that may $ characters on one line. You must use a loop to do this. Youcannot just use 10 different cout statements. See the sample output below for examples.Name the file Lab9b_Exercise1.cpp.

Answers

(11)
Status NEW Posted 25 Apr 2017 04:04 AM My Price 8.00

-----------

Not Rated(0)