Question
Write a program that creates customers bills for a carpet company when the information below is given: ? The customers last name, first name ?
Write a program that creates customers bills for a carpet company when the information below is given: ? The customers last name, first name ? Length and width of the carpet in feet ? Carpet price per square foot First name and last name can be entered in any case. Length and width must be entered as integers. Carpet price per square foot can be a floating point number or an integer. The Customer ID must contain the following three parts in order. ? First initial of a capitalized first name ? First five characters of a capitalized last name (Assuming the user-entered last name is at least five-character long) ? A random two-digit number in the range 10 to 99(inclusive). The tax rate is 8.5%, and it must be stored as a constant. The tax rate must be formatted into percentage format without leading zeros. Leading zeros must be used to make sure there are at least three digits in each formatted measurement data. All charge data must be formatted into required formats with leading zeros and trailing zeroes as shown.
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