model coding user risk: low
Comprehensive HTML5 Scientific Calculator Creator
Create a comprehensive scientific calculator using HTML5, CSS3, and JavaScript that mimics professional calculators, implementing basic arithmetic, advanced scientific functions, m…
PROMPT
Create a comprehensive scientific calculator with HTML5, CSS3 and JavaScript that mimics professional calculators. Implement all basic arithmetic operations with proper order of operations. Include advanced scientific functions (trigonometric, logarithmic, exponential, statistical) with degree/radian toggle. Add memory operations (M+, M-, MR, MC) with visual indicators. Maintain a scrollable calculation history log that can be cleared or saved. Implement full keyboard support with appropriate key mappings and shortcuts. Add robust error handling for division by zero, invalid operations, and overflow conditions with helpful error messages. Create a responsive design that transforms between standard and scientific layouts based on screen size or orientation. Include multiple theme options (classic, modern, high contrast). Add optional sound feedback for button presses with volume control. Implement copy/paste functionality for results and expressions.
EXPECTED OUTPUT
- Format
- code
SUCCESS CRITERIA
- Implement basic arithmetic operations with order of operations
- Include advanced scientific functions with degree/radian toggle
- Add memory operations with visual indicators
- Maintain scrollable calculation history log
- Implement full keyboard support
- Add robust error handling
- Create responsive design for layouts
- Include multiple theme options
- Add optional sound feedback
- Implement copy/paste functionality
FAILURE MODES
- May omit some advanced scientific functions
- May lack full keyboard mappings
- May have incomplete error handling for all cases
- May not fully implement responsive layout changes
- May miss sound feedback or theme toggles
CAVEATS
- Missing context
-
- Exact list of all required scientific/statistical functions.
- Detailed UI layouts for standard vs. scientific modes.
- Specific keyboard shortcuts and key mappings.
- Output format (e.g., single HTML file, separate files, deployed demo).
- Browser compatibility requirements.
- Accessibility features (e.g., ARIA labels).
- Ambiguities
-
- Does not specify exact 'basic arithmetic operations' or their precedence handling details.
- 'Advanced scientific functions (trigonometric, logarithmic, exponential, statistical)' lacks precise list (e.g., sin/cos/tan? mean/stddev?).
- Unclear differences between 'standard and scientific layouts'.
- 'Saved' history log mechanism ambiguous (localStorage? file?).
- Keyboard 'appropriate key mappings and shortcuts' not enumerated.
- Overflow conditions and exact error messages undefined.
QUALITY
- OVERALL
- 0.70
- CLARITY
- 0.95
- SPECIFICITY
- 0.75
- REUSABILITY
- 0.20
- COMPLETENESS
- 0.75
IMPROVEMENT SUGGESTIONS
- Specify functions: 'Trigonometric: sin, cos, tan, asin, acos, atan (deg/rad toggle); Log: log10, ln; Exp: exp, sqrt, pow, factorial; Stats: sum, mean, stddev, nCr, nPr.'
- Add: 'Provide complete code as a single self-contained HTML file with inline CSS/JS.'
- Detail layouts: 'Standard: basic ops only; Scientific: adds trig/log/etc. buttons; switch via media queries at 768px.'
- List shortcuts: '0-9, ., +, -, *, /, =/Enter, Backspace, Esc (clear), etc.'
- Clarify history: 'Use localStorage for persistence; add export to JSON.'
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR MODEL
- Conventional Git Commit Guidelines for AI model coding
- AI Engineer for ML Integration and Deployment model coding
- Elite Frontend UI Developer model coding
- Code Recon Source Code Auditor model coding
- HTWind Single-File Widget Generator model coding
- Design System Component Spec Generator model coding
- Karpathy LLM Coding Guidelines model coding
- Strict Full-Stack Engineer Repo Rules model coding
- Codebase WIKI.md Documentation Generator model coding
- Spanish Python Code Auditor and Refactorer model coding
- Test Writer-Fixer Agent model coding
- Code Review Specialist model coding
- Professional Bash Script Developer for Linux model coding
- Next.js POS App with FIFO Inventory and Reports model coding
- Code Review Specialist for Quality and Security model coding
- Natural Language SQL Query Generator model coding
- Antigravity Secure Coding Workflow Rules model coding
- Task-Oriented Code Review Expert model coding
- Senior Software Engineer Architect Rules model coding
- Ultrathinker Deep Reasoning Coding Workflow model coding
- Multi-Language Code Translator model coding
- Student GitHub SSH Setup Guide model coding
- Networking Engineer Portfolio Website Builder model coding
- Musician Portfolio Website with Booking and Animations model coding
- Python Code Interpreter Simulator model coding