Capgemini ADAPT 2022 Sprint 4 Book Rental A – Rent Book Form Problem Solution using HTML

Capgemini ADAPT 2022 Book Rental A Sprint 4 Solution Rent Book Form Problem Solution
Capgemini ADAPT 2022 Book Rental A Sprint 4 Solution Rent Book Form Problem Solution

In this post, we have tried to provide a solution to the problem of Capgemini ADAPT 2022 Sprint 4 Book Rental A  Problem Solution (Rent Book Form) using HTML.

Note: The solutions are provided for your reference only. During the assessment, you are requested to not use any malpractices, rather than solve all the problems on your own. We do not encourage candidates to fall into any malpractice.

Book Rental A – Rent Book Form Problem Solution:


<html>
<head>
<script>
function CheckName(){
var name = document.getElementById(“name”).value;
if(/[a-zA-Z]{5,}/.test(name))
alert(“Name ok”);
else
alert(“Minimum 5 Characters and only one special
character allowed”);
}
function CheckRent(){
var rent = document.getElementById(“tenure”).value;
if(rent>30)
alert(“We cannot rent over 30 days SORRY!!!”);
else
alert(“Allowed”);
}
function ShowRent()
{
var name= document.getElementById(“name”).value;
var days=parseInt(document.getElementById(“tenure”).value);rent_amt=100;
var qty= parseInt(document.getElementById(“total”).value);rent = 100 * days * qty;
val=confirm(“Rent for Books Selected:” + rent);
if (val==true)
alert(“Thank You for Order” + name);
}
</script>
</head>
<body>
<h2><span style=”background-color : #000080; color :
#ff6600;”>Rent Books</span></h2>
<table>
<tr>
<td>Book Name</td>
<td>
<select>
<option>HTML</option>
<option>DBMS</option>
<option>SE</option>
<option>JAVA</option>
<option>PYTHON</option>
<option>ML</option>
</select>
</td>
</tr>
<tr>
<td>User Name</td>
<td><input type=”text” id=”name”
onblur=”CheckName()”></td>
</tr>
<tr>
<td>Rent Start Date</td>
<td>
<input type=”text” id=”startdate”
placeholder=”mm/dd/yyyy”/>
</td>
</tr>
<tr>
<td>Rent Tenure</td>
<td>
<input type=”text” id=”tenure”
onblur=”CheckRent()”/>
</td>
</tr>
<tr>
<td>Number of Books Available</td>
<td><input type=”text” id=”avail-book”></td>
</tr>
<tr>
<td>Enter number of Books</td>
<td><input type=”text” id=”num-books”></td>
</tr>
<tr>
<td></td>
<td><input type=”button” onclick=”ShowRent()”
value=”Submit Query” /></td>
</tr>
</table>
</body>
</html>


BOOK RENTAL A ALL SOLUTIONS CLICK HERE

Top Companies + Batchwise Hiring Drive:


TOP COMPANIES HIRING DRIVE BATCHWISE HIRING DRIVES
1. TCS OFF-CAMPUS DRIVES 1. 2018 BATCH
2. INFOSYS OFF-CAMPUS DRIVES 2. 2019 BATCH
3. COGNIZANT OFF-CAMPUS DRIVES 3. 2020 BATCH
4. WIPRO OFF-CAMPUS DRIVES 4. 2021 BATCH
5. CAPGEMINI OFF-CAMPUS DRIVES 5. 2022 BATCH

To Stay Up-to-date, Follow us on Social Media:


1.      Join our Telegram Channel: Click Here
2.      Like us on Facebook: Click Here
3.      Follow us on Instagram: Click Here
4.      Follow us on LinkedIn: Click Here
5.      Follow us on Google News: Click Here

ADAPT Different Coding Solutions:


  1. Largest Array Solution – Click Here
  2. Batsman & Bowler Solution – Click Here
  3. Instruments Problem Solution – Click Here
  4. Check Two Person Are Same – Click Here
  5. Medicine App ADAPT Solution – Click Here
  6. String Combination Capgemini ADAPT Solution – Click Here
  7. Remove”X”inString Problem Solution – Click Here
  8. Customer and Invoice ADAPT Problem Solution – Click Here
  9. Book and Author Problem Solution – Click Here
  10. Highest Feedback Problem Solution – Click Here
  11. Registered Customer Problem Solution in Java – Click Here
  12. Product of Digits Problem Solution – Click Here
  13. Change Using Minimal Coins/Notes Solution in Java – Click Here

Capgemini ADAPT Sprint 1 (Bus Reservation Solutions):


  • 1. Capgemini ADAPT Sprint 1 Bus Reservation System – DisplayCustomerInAscendingOrder Problem Solution
  • 2. Capgemini ADAPT Sprint 1 Bus Reservation System – DisplayCustomerByFirstName Problem Solution
  • 3. Capgemini ADAPT Sprint 1 Bus Reservation System – SortByCustomerId Problem Solution
  • 4. Capgemini ADAPT Sprint 1 Solution Java | LSAByCustomerName Problem Solution
  • 5. Capgemini ADAPT Sprint 1 Case Study Solution Java | BSAByCustomerId Problem Solution

Capgemini ADAPT Sprint 2 (Bus Reservation System):


  • 1. Capgemini ADAPT Sprint 2 Case Study (Bus Reservation System) Solution | HAS-A-Relationship Solution Java
  • 2. Capgemini ADAPT Sprint 2 Case Study (Bus Reservation System) Solution OOPs-Para-Constructor Java
  • 3. Capgemini ADAPT Sprint 2 Bus Reservation System (CRUDOperations) Problem Solution

ADAPT Sprint 3 Solutions – Capgemini (Toy Rental A):


Online Shopping A Solutions Using Java:


  • 1. Capgemini ADAPT 2022 Online Shopping A – Display Products Solution using JAVA – Click Here
  • 2. Capgemini ADAPT 2022 Online Shopping A – Products by Category Solution using JAVA – Click Here
  • 3. Capgemini ADAPT 2022 Online Shopping A – Customer Array Solution using JAVA – Click Here
  • 4. Capgemini ADAPT 2022 Online Shopping A – Search Customers by Name Solution using JAVA – Click Here
  • 5. Capgemini ADAPT 2022 Online Shopping A – Search Customers by City Solution using JAVA – Click Here
  • 6. Online Shopping A – Customer & Rentress Class Solution | Capgemini ADAPT 2022 Solutions – Click Here