Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'M HAVING PROBLEMS WITH QUESTION 3,4,5,6,7 PLEASE READ CAREFULLY AND FOLLOW EVERYTHING EACH QUESTION ASKS FOR. this is the SECOND time i post the same

I'M HAVING PROBLEMS WITH QUESTION 3,4,5,6,7
PLEASE READ CAREFULLY AND FOLLOW EVERYTHING EACH QUESTION ASKS FOR.
this is the SECOND time i post the same question.
SHOW A PIC OF THE CODE ITSELF.
thank you!
image text in transcribed
1. Use the disp function to print the following line to the screen. It's not necessary to create a character variable; the string can go directly in the call to disp. To be or not to be. 2. Repeat problem 1, but use fprintf instead of disp. As in problem 1, there's no need to create a character variable; the string can go directly in the fprintf statement. 3. Use the input function to prompt the user for the number of students in a class, storing the input in the variable nstudents. Use the disp function to print the value to the screen in the format shown. Here, "n" represents the number that was input. There are n students in the class. 4. Repeat problem 3, but use fprintf instead of disp. Don't convert the number to an character string; print it using the appropriate format for an integer. 5. Use the input function to prompt the user for the make of his/her car, storing the result in the variable mycar. Use the 's' argument to indicate that it's a character string, not a number, that is to be input. Use the disp function to print it to the screen in the format shown. Here, "make" represents the name of the make that was input. My car is a make. 6. Repeat problem 5, but use fprintf instead of disp. Use the appropriate format specifier to print a character string. 7. Use the input function to prompt the user for the length of a box, and another call to input to prompt for the width of the box, where the inputs will be floating point numbers (will have decimal points). Use fprintf to print the following to the screen, where "length" and "width" represent the values that were input. Print the values using 1 decimal place for both the length and width. The box is length by width

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions