Code Monkey home page Code Monkey logo

Zhou Yao's Projects

clickable-number-images icon clickable-number-images

An application that displays images in Image/Button controls. The application should perform the following actions: • When the user clicks the 1 image, the application will display the word One in a message box. • When the user clicks the 2 image, the application will display the word Two in a message box. • When the user clicks the 3 image, the application will display the word Three in a message box. • When the user clicks the 4 image, the application will display the word Four in a message box. • When the user clicks the 5 image, the application will display the word Five in a message box.

driver-s-license-exam icon driver-s-license-exam

The local driver’s license office has asked you to create an application that grades the written portion of the driver’s license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 1.B 2.D 3.A 4.A 5.C 6.A 7.B 8.A 9.C 10.D 11.B 12.C 13.D 14.A 15.D 16.C 17.C 18.B 19.D 20.A Your program should store these correct answers in an array. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another array. After the student’s answers have been read from the file, the program should display a message indicating whether the student passed or failed the exam. A student must correctly answer 15 questions to pass. It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions.

joe-s-automotive icon joe-s-automotive

Joe’s Automotive performs the following routine maintenance services: • Oil change - $26 • Lube job - $18 • Radiator flush - $30 • Transmission flush - $80 • Inspection - $15 • Muffler replacement - $100 • Tire rotation - $20 Joe also performs other nonroutine services and charges for parts and labor ($20 per hour). Create an application that displays the total for a customer’s visit to Joe’s. The application should have the following value-returning methods: • OilLubeCharges – Returns the total charges for an oil change and/or a lube job, if any. • FlushCharges – Returns the total charges for a radiator flush and/or a transmission flush, if any. • MiscCharges – Returns the total charges for an inspection, muffler replacement, and/or a tire replacement, if any. • OtherCharges – Returns the total charges for other services (parts and labor, if any) • TaxCharges – Returns the amount of sales tax, if any. Sales tax is 6% and is charged only on parts. • TotalCharges – Returns the total charges.

tip-tax-and-total icon tip-tax-and-total

Create an application that lets the user enter the food charge for a meal at a restaurant. When a button is clicked, the application should calculate and display the amount of a 15 percent tip, 7 percent sales tax, and the total of all three amounts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.