Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The steps are as follows: Size: Ask the user what size they want - two options: 1 4 inch and 1 6 inch If the
The steps are as follows:
Size: Ask the user what size they want two options: inch and inch
If the user enters any integer other than or ask the user to choose again.
Chip:
If the user chooses inch, then ask them what chip they want three options: M M Pro, M Max
inch, M: $
inch, M Pro: $
inch, M Max: $
If the user enters anything other than the three options, ask the user to choose again.
If the user chooses inch, then ask them what chip they want two options: M Pro, M Max Note: There's no M option for inch.
inch, M Pro: $
inch, M Max: $
If the user enters anything other than the three options, ask the user to choose again.
Print the specification and price of the MacBook Pro the user chooses.
The specification includes size, the chip, the number of CPUs, the number of GPUs, the size of unified memory, and the size of SSD storage
shown on the website.
Examples
Example : Size inch with M chip
Choose a size inch or inch:
Choose a chip M M Pro, M Max: M
You have chosen MacBook Pro inch with M chip.
Specifications:
core CPU
core GPU
unified memory
GB SSD storage
Price: $
Please use python.
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