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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started