Earn Higher Grades With Instant Assignment Help.Ask Question!

C Programming
(5/5)

Write out the logic to the following problems, using pseudocode. Pseudocode examples can be found in the “Writing Pseudocode” section

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Write out the logic to the following problems, using pseudocode. Pseudocode examples can be found in the “Writing Pseudocode” section of chapter 1 in the Programming Logic and Design textbook.

Example: Represent the logic of a program that allows the user to enter a value. The program divides the value by 2 and outputs the result.

Solution:

start

   input myNumber

   set myAnswer = myNumber / 2

   output myAnswer

stop

  1. Represent the logic of a program that allows the user to enter a value for one edge of a cube. The program calculates the surface area of one side of the cube, the surface area of the cube, and its volume. The program outputs all the results.
  2. Represent the logic of a program that allows the user to enter two values. The program outputs the product of the two values.
  3. Represent the logic of a program that allows the user to enter values for the width and length of a room's floor in feet. The program outputs the area of the floor in square feet.

 

 

You will write a flowchart, and C code for a program that does the following:

  1. Asks a user for a number.
  2. Multiplies that number by itself.
  3. Outputs the number and the result, using descriptive language to tell the user what they're seeing.

 

You will write a flowchart, and C code for a program that does the following:

  1. Asks a user for their age.
  2. Uses an "if" statement to determine if the user is under age 18.
  3. Has appropriate output telling the user if they can vote or not.
Attachments:
(5/5)

Expert's Answer

37 Times Downloaded

Related Questions

Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

37 Times Downloads

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
980 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
884 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
630 Answers Hire Me