Question

All scores entered into the program must be validated. In order to do this, the program needs to know the range of point available, from zero to the maximum possible score (MaxScore). To do this, implement the forms load-event handler. It should use an input box to get the MaxScore (i.e. total points available) value from the user. This MaxScore value must be validated, using a separate function, as an integer that is greater than zero before being accepted. The value of MaxScore must be stored in a class variable. The program must use a labeled text box that allows the user to enter scores, one-at-a-time. The scores entered must be stored in a list box. A button labeled (with something like) Record Score must take the score that the user entered in the text box (above) and enters that value into a list box that is initially empty. This allows the user to enter a list of scores of arbitrary length The action performed by the Record Score buttons click-event handler must only allow scores between 0 and MaxScore with a step size of 0.5: 10, 0.5, 1, 1.5, ..., MaxScore). That is, the value must be tested for validity. This validity testing must be performed using one or more procedures or functions; a scores validity cannot be tested directly within the Record Score buttons click- event handler. A second button labeled with something like Analyze Scores must perform all of the statistical analyses indicated above. Each statistic must be placed in its own output label that has a border style set to make it show and have a fixed size. The output in these labels must be displayed to three decimal places, except where fewer decimal places can be displayed with no loss of precision Each statistic must be calculated using its own function that does the work. Note that these functions must not directly alter the content of any output label. Rather they should generate and return the desired numeric value, which is displayed (with the appropriate formatting) in the appropriate output label by the Analyze Scores buttons click-event handler. Every type of loop must be used in the calculations performed in the various statistics functions, including: For...Next, Do While...Loop, Do Until...Loop, Do...Loop While..., and Do...Loop Until.... The statistics functions must implement

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi I have much knowledge in Ionic and angularjs (Note: you are not mentioned any technologies)

below code define price range and validations and CSS code it will be helpful to you please feel free add content what you want.

1. HTML CODE: this will display the content

<div ng-app="demoApp" ng-controller="demoController">
    <div mobiscroll-form="settings" class="md-slide-range" style="display:none">
        <div class="mbsc-form-group-inset">
            <label class="md-slider">
                <span class="md-val md-val-left">$10</span>
                <input class="md-price-start" type="range" ng-model="minPrice" min="10" max="600"  data-tooltip="true">
                <input class="md-price-end" type="range" ng-model="maxPrice"  min="10" max="600" />
                <span class="md-val md-val-right">$600</span>
            </label>
        </div>
        <div class="md-text mbsc-padding">
            <h4>Price Range</h4>
            <div class="md-range-text"> from <span class="md-text-start">${{minPrice}}</span> to <span class="md-text-end">${{maxPrice}}</span></div>
        </div>


    </div>
</div>

2.CSS CODE:

.md-slide-range {
    padding-top: 4em;
}

.md-slide-range .mbsc-form-group-inset {
    position: relative;
}

.md-slide-range .md-slider.mbsc-slider,
.md-slide-range .md-slider .mbsc-slider {
    padding: 0 3em;
}

.md-slide-range .md-val {
    position: absolute;
    top: 50%;
    margin-top: -.571428em;
    font-size: 14px;
}

.md-slide-range .md-val-left {
    left: 12px;
}

.md-slide-range .md-val-right {
    right: 6px;
}

.md-slide-range .md-text {
    text-align: center;
}

.md-slide-range .md-range-text {
    font-size: 14px;
}

.md-slide-range.mbsc-ios .mbsc-slider {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.md-slide-range .mbsc-slider-tooltip:before {
    content: '$';
}

3.JS CODE:

angular
    .module('demoApp', ['mobiscroll-form', 'mobiscroll-slider'])
    .controller('demoController', ['$scope', function ($scope) {

        $scope.settings = {
            theme: 'ios'
        };

        $scope.minPrice = 100;
        $scope.maxPrice = 500;

    }]);

Thanks,

Suneel Kumar

Add a comment
Know the answer?
Add Answer to:
All scores entered into the program must be validated. In order to do this, the program...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a program that allows the user to enter a series of exam scores. The number...

    Write a program that allows the user to enter a series of exam scores. The number of scores the user can enter is not fixed; they can enter any number of scores they want. The exam scores can be either integers or floats. Then, once the user has entered all the scores they want, your program will calculate and print the average of those scores. After printing the average, the program should terminate. You need to use a while loop...

  • must be visual basic code please include any properties that have to be changed. rcises-3.pdf -...

    must be visual basic code please include any properties that have to be changed. rcises-3.pdf - Adobe Acrobat Reader DC View Window Help Tools Extra exerases-3.pdf X 14 Extra exercises tor Murach's Visual Basie 2015 Extra 8-1 Display a test scores array In this exercise, you'll enhance the Score Caleulator form of extra exercise 4-2 so it saves the scores the user enters in an array and then lets the user display the sorted scores in a dialog box. Elle-a...

  • Write a C# code for a Sales Calculator: Note: You cannot use the foreach loop in any part of this...

    Write a C# code for a Sales Calculator: Note: You cannot use the foreach loop in any part of this program! sales.txt file: 1189.55, 1207.00, 1348.27, 1456.88, 1198.34, 1128.55, 1172.37, 1498.55, 1163.29 The application should have controls described as follows: • A button that reads Get Sales. If the user clicks this button, the application should call a method named ProcesSalesFile. ProcessSalesFile Method: accepts no arguments and does not return anything The ProcessSalesFile Method will do the following: o Open...

  • Write a C# code for a Sales Calculator: Note: You cannot use the foreach loop in...

    Write a C# code for a Sales Calculator: Note: You cannot use the foreach loop in any part of this program! sales.txt file: 1189.55, 1207.00, 1348.27, 1456.88, 1198.34, 1128.55, 1172.37, 1498.55, 1163.29 The application should have controls described as follows: • A button that reads Get Sales. If the user clicks this button, the application should call a method named ProcesSalesFile. ProcessSalesFile Method: accepts no arguments and does not return anything The ProcessSalesFile Method will do the following: o Open...

  • Write a Python program that asks the user to type in their three quiz scores (scores...

    Write a Python program that asks the user to type in their three quiz scores (scores between 0 and 100) and displays two averages. The program should be written so one function gets the user to input a score, another function takes the three scores and returns the average of them. And another function takes the three scores and averages the two highest scores (in other words, drops the lowest). Each of these functions should do the computation and return...

  • Project 3 At a diving competition, the scores for one dive are determined by a panel...

    Project 3 At a diving competition, the scores for one dive are determined by a panel of judges. The final score is calculated by: * adding together all scores EXCEPT the highest and lowest scores * that sum is then multiplied by 1.2 * that product is then multiplied by 0.6 You are to write a Python program which: * allows the user to enter 6 scores provided by the judges * the scores are to be placed in a...

  • [JAVA/chapter 7] Assignment: Write a program to process scores for a set of students. Arrays and...

    [JAVA/chapter 7] Assignment: Write a program to process scores for a set of students. Arrays and methods must be used for this program. Process: •Read the number of students in a class. Make sure that the user enters 1 or more students. •Create an array with the number of students entered by the user. •Then, read the name and the test score for each student. •Calculate the best or highest score. •Then, Calculate letter grades based on the following criteria:...

  • //* 1. Create a function called findMe() to handle the //* "Click Me" button's on click event. //...

    //* 1. Create a function called findMe() to handle the //* "Click Me" button's on click event. //* 2. In the findMe() function, use input boxes "First Number" and //* "Second Number" to receive user input. //* 3. Output the bigger number to the form text box "output" //* 4. function creation - //* Use button to handle the event - //* Use text boxes for input and output - //* Insert your JavaScript answer for Question 3 from next...

  • Must be done in C# please! Thanks! In this assignment you will create a program named...

    Must be done in C# please! Thanks! In this assignment you will create a program named Test Scores that displays the average of all tests; average midterm score; average final score; and displays the midterm or final score of a particular student. Create a class level two dimensional integer array named Grades initialized with the following data: 897 242 301 987 116 450 865 128 992 109 88 75 94 70 90 87 81 79 97 79 78 80 92...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT