Answered step by step
Verified Expert Solution
Link Copied!

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: 14 inch and 16 inch
If the user enters any integer other than 14 or 16, ask the user to choose again.
Chip:
If the user chooses 14 inch, then ask them what chip they want - three options: M3, M3 Pro, M3 Max
14 inch, M3: $1599
14 inch, M3 Pro: $1799
14 inch, M3 Max: $1999
If the user enters anything other than the three options, ask the user to choose again.
If the user chooses 16 inch, then ask them what chip they want - two options: M3 Pro, M3 Max (Note: There's no M3 option for 16 inch.)
16 inch, M3 Pro: $2499
16 inch, M3 Max: $2899
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 1: Size 14 inch with M3 chip
Choose a size (14 inch or 16 inch): 14
Choose a chip (M3, M3 Pro, M3 Max): M3
You have chosen MacBook Pro 14 inch with M3 chip.
Specifications:
8-core CPU
10-core GPU
8GB unified memory
512GB SSD storage
Price: $1599
Please use python.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

From Herds To Insights Harnessing Data Analytics For Sustainable Livestock Farming

Authors: Prof Suresh Neethirajan

1st Edition

B0CFD6K6KK, 979-8857075487

More Books

Students also viewed these Databases questions