Program that satisfies requirements of programming project

Assignment Help Programming Languages
Reference no: EM13677630

Required Setup and Tools

  • Standard computer lab with Pelles C and Microsoft Visio installed
  • Textbook

 Recommended Procedures:

Write a program that satisfies the requirements of Programming Project 2 of Hanly, and that uses the following modifications and tips:

  • Use the COLOR_CODES string array.
  • Instead of restricting the user input to "no caps", use the string library function strlwr() to change the input to all lower case.
  • If the user input is the word "purple", replace it with the word "violet".
  • If the user input is the word "grey", replace it with "gray".
  • Instead of printing the resistance value in kilo-ohms, if the resistance value is less than 1000 ohms, print the resistance in ohms; if the resistance value is less than 1000000 (1 million) ohms, print the resistance in kilo-ohms; otherwise, print the resistance value in Mega-ohms.
  • You may want to refer to the Lab Assignment Task 3 from Unit 4 (Resistor classification lab).
  • Start with the skeleton program provided below. Fill in the header in the usual manner. 

Build your program and fix any errors. Test your program with a variety of resistor color codes, making sure you test resistances below 1k ohm, between 1k ohm and 1M ohm, and above 1M ohm. Make sure you test using both the words "violet" and "purple", as well as "gray" and "grey". Make sure you test using upper- and lowercase color names.

Reference no: EM13677630

Questions Cloud

Find what current is needed : A 30 centimeter long solenoid consists of 5300 turns of wire wound uniformly. Find what current is needed to produce an 8.3 mT magnetic field inside the solenoid
Obtain the magnitude of magnetic field in the space : A 17 centimeter long solenoid has 4700 turns of wire. Inside this solenoid is a second one, also 17 centimeter long but with 2200 turns of wire. Obtain the magnitude of magnetic field in the space between the two solenoids
Obtain the magnitude of the magnetic field : Two long parallel wires each carry 2.7 Amp in the similar direction, with their centers 1.7 centimeter apart. Obtain the magnitude of the magnetic field halfway between the wires
Find what the magnitude of force exerted on this particle : A particle with a charge of -1.75 x 10-8 C is moving with an instantaneous velocity of magnitude 44.5 km/s in the xy-plane at an angle of 55o counterclockwise from the +x axis. Find the magnitude of the force exerted on this particle by a magnetic fi..
Program that satisfies requirements of programming project : Write a program that satisfies the requirements of Programming Project 2 of Hanly, and that uses the following modifications and tips -Use the COLOR_CODES string array.
Find what angle should the wire make : Find what angle should the wire make with the magnetic field therefore that the wire experiences a force per unit length of 1.20 N/m
Obtain the direction of the magnetic force on wire : A 7.70 centimeter length of straight wire runs horizontally along a north-south line. Obtain the direction of the magnetic force on wire
Find how large a magnetic field is needed : Find how large a magnetic field is needed to keep singly ionized helium atoms (4He) with kinetic energy 210 eV within the chamber
Determine what must be the tension in wire : Two wires are anchored at both ends. Wire 1 has a mass of 147 gram and a length of 9.2 meter. Determine what must be the tension in Wire 1 if its third harmonic is to equal the first overtone of Wire 2

Reviews

Write a Review

Programming Languages Questions & Answers

  Write class to track name and population

Write down class called City to track name and population. Use name as key, and give a function which compares two cities, and points out greater.

  Write standalone program with recursive method string

Write a standalone program "TransformCharacters.java" with a recursive method String string changeCharacters(String string) that takes as an argument a string.

  Create nested menus interface for a check-in hotel

Create a nested menus interface for a check-in and check-out hotel reservation system that can be used internationally. Use numbers to select a menu item.

  Provide a brief history of the language

Provide a brief history of the language (1-2 slides) including standards if any. What need does this language fill that others do not and discuss the language in terms of the paradigms described in Chapters 1-5 of our textbook. Provide code sample..

  Program to compute risk of weight-related health problems

A quantity known as the body mass (BMI) is used to calculate the risk of weight-related health problems. Write a program that accepts weight and height and then displays the BMI value and Status.

  Program to read from an input file

Write a program to read from an input file for 15 students, that contains each individual student ID, the course code, letter grade, and credit hours for five courses.

  Write a method mincat that takes two strings s and t and

write a method mincat that takes two strings s and t and returns a new string. the returned string contains the

  Develop an encryption program

Your employer, SGA (Secretive government Agency) wants you to develop an encryption program. After doing some research you have two candidate algorithms.

  Create e-r diagram for sell and buy of antiques

Create E-R diagram for following situation (state any assumptions you believe you have to make to develop diagram): XYZ Antiques buys and sells one-of-a kind antiques of all kinds

  Create application to enter five-digit credit card number

Create an application that allows the user to enter a five-digit credit card number; assume that the fifth digit is the check digit.

  Write program to store people-s name-phone numbers in array

Write down the program which has the array of at least ten string objects which hold people's name and phone numbers.

  Develop html5 pages themed on manchester

Design and develop three HTML5 pages themed on Manchester. The pages should be optimised for delivery on a tablet.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd