Machine Problem

Write a program that will ask the user to give five scores and then the program will compute the total score, and the average score of the five scores given by the user and display the results on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.

Program Listing

<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : July 21, 2021  Wednesday   2:17 PM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
<head>
	<title>Average Scores in AngularJS</title>
</head>
<style>
body {
	font-family: arial;
	font-size: 25px;
	font-weight: bold;
}
</style>
<script type="text/javascript" src="angular.min.js">
</script>


<div ng-app ng-init="score1=0;score2=0;score3=0;score4=0;score5=0">
	<form>
	<table border="0" cellspacing=10>
	<tr>Average Scores in AngularJS</tr>
	<tr>
	<td>Enter First Score </td>
	<td><input type="number"  ng-model="score1" ></td>
	</tr>
	<tr>
	<td>Enter Second Score </td>
	<td><input type="number" ng-model="score2" ></td>
	</tr>
	<tr>
	<td>Enter Third Score </td>
	<td><input type="number"  ng-model="score3" ></td>
	</tr>
	<tr>
	<td>Enter Fourth Score </td>
	<td><input type="number"  ng-model="score4" ></td>
	</tr>
	<tr>
	<td>Enter Fifth Score </td>
	<td><input type="number"  ng-model="score5" ></td>
	</tr>
	<table>
	</form>
	<p>The total score is {{ (score1+score2+score3+score4+score5) }}. </p>
	<p>The average score of five scores is  
	{{ ((score1+score2+score3+score4+score5)/5) | number : 0}}. </p> 
</div>
</body>
</html>

Leave a Reply

Your email address will not be published.