Question: Can you update this code that it will reject non-numeric input (for inch and cm input) and negative number input.... show that illegal input #include
Can you update this code that it will reject non-numeric input (for inch and cm input) and negative number input.... show that "illegal input"
#include
int main(int argc,char* argv[]){ double inches; double centimeters; char select; do{ select=menuSelect(); if(select=='E'){ cout<<"Enter number of inches : "; cin>>inches; centimeters=inches*2.54; cout<
Step by Step Solution
There are 3 Steps involved in it
Certainly Below is an updated version of the code This version includes input validation to ensure t... View full answer
Get step-by-step solutions from verified subject matter experts
